[CI] Test federated learning plugin in the CI (#8325)
This commit is contained in:
committed by
GitHub
parent
97a5b088a5
commit
2faa744aba
@@ -6,7 +6,7 @@ set -x
|
||||
if [ "$#" -lt 1 ]
|
||||
then
|
||||
echo "Usage: $0 [container to build]"
|
||||
return 1
|
||||
exit 1
|
||||
fi
|
||||
container=$1
|
||||
|
||||
@@ -17,18 +17,21 @@ echo "--- Build container ${container}"
|
||||
BUILD_ARGS=""
|
||||
|
||||
case "${container}" in
|
||||
cpu)
|
||||
;;
|
||||
|
||||
gpu|rmm)
|
||||
BUILD_ARGS="$BUILD_ARGS --build-arg CUDA_VERSION_ARG=$CUDA_VERSION"
|
||||
BUILD_ARGS="$BUILD_ARGS --build-arg RAPIDS_VERSION_ARG=$RAPIDS_VERSION"
|
||||
;;
|
||||
|
||||
jvm_gpu_build)
|
||||
gpu_build_centos7|jvm_gpu_build)
|
||||
BUILD_ARGS="$BUILD_ARGS --build-arg CUDA_VERSION_ARG=$CUDA_VERSION"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unrecognized container ID: ${container}"
|
||||
return 2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -14,7 +14,8 @@ $command_wrapper rm -fv dmlc-core/include/dmlc/build_config_default.h
|
||||
# the configured header build/dmlc/build_config.h instead of
|
||||
# include/dmlc/build_config_default.h.
|
||||
echo "--- Build libxgboost from the source"
|
||||
$command_wrapper tests/ci_build/build_via_cmake.sh -DPLUGIN_DENSE_PARSER=ON
|
||||
$command_wrapper tests/ci_build/build_via_cmake.sh -DCMAKE_PREFIX_PATH=/opt/grpc \
|
||||
-DPLUGIN_DENSE_PARSER=ON -DPLUGIN_FEDERATED=ON
|
||||
echo "--- Run Google Test"
|
||||
$command_wrapper bash -c "cd build && ctest --extra-verbose"
|
||||
echo "--- Stash XGBoost CLI executable"
|
||||
|
||||
@@ -20,10 +20,10 @@ command_wrapper="tests/ci_build/ci_build.sh gpu_build_centos7 docker --build-arg
|
||||
|
||||
echo "--- Build libxgboost from the source"
|
||||
$command_wrapper tests/ci_build/prune_libnccl.sh
|
||||
$command_wrapper tests/ci_build/build_via_cmake.sh -DUSE_CUDA=ON -DUSE_NCCL=ON \
|
||||
-DUSE_OPENMP=ON -DHIDE_CXX_SYMBOLS=ON -DUSE_NCCL_LIB_PATH=ON \
|
||||
-DNCCL_INCLUDE_DIR=/usr/include -DNCCL_LIBRARY=/workspace/libnccl_static.a \
|
||||
${arch_flag}
|
||||
$command_wrapper tests/ci_build/build_via_cmake.sh -DCMAKE_PREFIX_PATH=/opt/grpc \
|
||||
-DUSE_CUDA=ON -DUSE_NCCL=ON -DUSE_OPENMP=ON -DHIDE_CXX_SYMBOLS=ON -DPLUGIN_FEDERATED=ON \
|
||||
-DUSE_NCCL_LIB_PATH=ON -DNCCL_INCLUDE_DIR=/usr/include \
|
||||
-DNCCL_LIBRARY=/workspace/libnccl_static.a ${arch_flag}
|
||||
echo "--- Build binary wheel"
|
||||
$command_wrapper bash -c \
|
||||
"cd python-package && rm -rf dist/* && python setup.py bdist_wheel --universal"
|
||||
|
||||
@@ -17,6 +17,7 @@ steps:
|
||||
- label: ":docker: Build containers"
|
||||
commands:
|
||||
- "tests/buildkite/build-containers.sh gpu"
|
||||
- "tests/buildkite/build-containers.sh gpu_build_centos7"
|
||||
- "tests/buildkite/build-containers.sh jvm_gpu_build"
|
||||
key: build-containers
|
||||
agents:
|
||||
|
||||
@@ -13,7 +13,9 @@ steps:
|
||||
#### -------- CONTAINER BUILD --------
|
||||
- label: ":docker: Build containers"
|
||||
commands:
|
||||
- "tests/buildkite/build-containers.sh cpu"
|
||||
- "tests/buildkite/build-containers.sh gpu"
|
||||
- "tests/buildkite/build-containers.sh gpu_build_centos7"
|
||||
- "tests/buildkite/build-containers.sh rmm"
|
||||
key: build-containers
|
||||
agents:
|
||||
|
||||
Reference in New Issue
Block a user