Skip to content

Commit

Permalink
use ninja in java ci build (rapidsai#9933)
Browse files Browse the repository at this point in the history
  • Loading branch information
rongou authored Jan 6, 2022
1 parent 61199ea commit 7392f9f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion java/ci/Dockerfile.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ FROM gpuci/cuda:$CUDA_VERSION-devel-centos7
### Install basic requirements
RUN yum install -y centos-release-scl
RUN yum install -y devtoolset-9 epel-release
RUN yum install -y git zlib-devel maven tar wget patch
RUN yum install -y git zlib-devel maven tar wget patch ninja-build

## pre-create the CMAKE_INSTALL_PREFIX folder, set writable by any user for Jenkins
RUN mkdir /usr/local/rapids && mkdir /rapids && chmod 777 /usr/local/rapids && chmod 777 /rapids
Expand Down
14 changes: 10 additions & 4 deletions java/ci/build-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
set -ex
gcc --version

PARALLEL_LEVEL=${PARALLEL_LEVEL:-4}
SKIP_JAVA_TESTS=${SKIP_JAVA_TESTS:-true}
BUILD_CPP_TESTS=${BUILD_CPP_TESTS:-OFF}
ENABLE_CUDA_STATIC_RUNTIME=${ENABLE_CUDA_STATIC_RUNTIME:-ON}
Expand All @@ -28,6 +27,7 @@ RMM_LOGGING_LEVEL=${RMM_LOGGING_LEVEL:-OFF}
ENABLE_NVTX=${ENABLE_NVTX:-ON}
ENABLE_GDS=${ENABLE_GDS:-OFF}
OUT=${OUT:-out}
CMAKE_GENERATOR=${CMAKE_GENERATOR:-Ninja}

SIGN_FILE=$1
#Set absolute path for OUT_PATH
Expand All @@ -54,16 +54,22 @@ export LIBCUDF_KERNEL_CACHE_PATH=/rapids
rm -rf "$WORKSPACE/cpp/build"
mkdir -p "$WORKSPACE/cpp/build"
cd "$WORKSPACE/cpp/build"
cmake .. -DUSE_NVTX=$ENABLE_NVTX \
cmake .. -G"${CMAKE_GENERATOR}" \
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
-DUSE_NVTX=$ENABLE_NVTX \
-DCUDF_USE_ARROW_STATIC=ON \
-DCUDF_ENABLE_ARROW_S3=OFF \
-DBUILD_TESTS=$BUILD_CPP_TESTS \
-DPER_THREAD_DEFAULT_STREAM=$ENABLE_PTDS \
-DRMM_LOGGING_LEVEL=$RMM_LOGGING_LEVEL \
-DBUILD_SHARED_LIBS=OFF

make -j$PARALLEL_LEVEL
make install DESTDIR=$INSTALL_PREFIX
if [[ -z "${PARALLEL_LEVEL}" ]]; then
cmake --build .
else
cmake --build . --parallel $PARALLEL_LEVEL
fi
cmake --install .

###### Build cudf jar ######
BUILD_ARG="-Dmaven.repo.local=\"$WORKSPACE/.m2\"\
Expand Down

0 comments on commit 7392f9f

Please sign in to comment.