-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "Update JNI build to support nvcomp4 (#2217)" This reverts commit 0bbefc0. * Version * Apply and remove patches to CUDF as part of the build Signed-off-by: Robert (Bobby) Evans <bobby@apache.org> * Better checking if git is dirty * Some review comments * Get submodule sync to work Signed-off-by: Robert (Bobby) Evans <bobby@apache.org> --------- Signed-off-by: Robert (Bobby) Evans <bobby@apache.org> Co-authored-by: Gera Shegalov <gera@apache.org>
- Loading branch information
1 parent
0f5f627
commit 9d3e7f0
Showing
6 changed files
with
1,056 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# Run a command in a Docker container with devtoolset | ||
|
||
set -e | ||
|
||
BASE_DIR=$( git rev-parse --show-toplevel ) | ||
|
||
PATCH_DIR=${PATCH_DIR:-$(realpath "$BASE_DIR/patches/")} | ||
|
||
CUDF_DIR=${CUDF_DIR:-$(realpath "$BASE_DIR/thirdparty/cudf/")} | ||
|
||
pushd "$CUDF_DIR" | ||
if [ -n "$(git status --porcelain --untracked-files=no)" ] ; then | ||
echo "Error: CUDF repository has uncommitted changes. No patches will be applied..." | ||
exit 1 | ||
fi | ||
|
||
find "$PATCH_DIR" -maxdepth 1 -type f -print0 | sort -zV | while IFS= read -r -d '' file; do | ||
echo "patching with: $file" | ||
patch --no-backup-if-mismatch -f -t --reject-file=- -p1 -i "$file" | ||
done | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# Run a command in a Docker container with devtoolset | ||
|
||
set -e | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
PATCH_DIR=${PATCH_DIR:-$(realpath "$SCRIPT_DIR/../patches/")} | ||
|
||
CUDF_DIR=${CUDF_DIR:-$(realpath "$SCRIPT_DIR/../thirdparty/cudf/")} | ||
|
||
|
||
pushd "$CUDF_DIR" | ||
if [ -n "$(git status --porcelain --untracked-files=no)" ] ; then | ||
#only try to remove patches if it looks like something was changed | ||
find "$PATCH_DIR" -maxdepth 1 -type f -print0 | sort -zV -r | while IFS= read -r -d '' file; do | ||
echo "patching with: $file" | ||
patch -R --no-backup-if-mismatch --reject-file=- -f -t -p1 -i "$file" | ||
done | ||
fi | ||
|
||
# Check for modifications | ||
if [ -n "$(git status --porcelain --untracked-files=no)" ] ; then | ||
echo "Error: CUDF repository has uncommitted changes. You might want to clean in manually if you know that is expected" | ||
exit 1 | ||
fi | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.