Skip to content

Commit

Permalink
Try removing --privileged flag
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Nov 17, 2024
1 parent 11b0427 commit 49eaec1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions ops/pipeline/test-cpp-gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ case "${arg}" in
python3 ops/docker_run.py --container-id xgb-ci.gpu --use-gpus \
-- nvidia-smi
python3 ops/docker_run.py --container-id xgb-ci.gpu --use-gpus \
--run-args='--privileged' \
-- build/testxgboost
;;

Expand All @@ -26,7 +25,6 @@ case "${arg}" in
python3 ops/docker_run.py --container-id xgb-ci.gpu --use-gpus \
-- nvidia-smi
python3 ops/docker_run.py --container-id xgb-ci.gpu --use-gpus \
--run-args='--privileged' \
-- build/testxgboost --use-rmm-pool
;;

Expand All @@ -35,7 +33,7 @@ case "${arg}" in
python3 ops/docker_run.py --container-id xgb-ci.gpu --use-gpus \
-- nvidia-smi
python3 ops/docker_run.py --container-id xgb-ci.gpu --use-gpus \
--run-args='--shm-size=4g --privileged' \
--run-args='--shm-size=4g' \
-- build/testxgboost --gtest_filter=*MGPU*
;;

Expand Down
2 changes: 1 addition & 1 deletion ops/pipeline/test-jvm-gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ set -x
python3 ops/docker_run.py --container-id xgb-ci.jvm_gpu_build --use-gpus \
-- nvidia-smi
python3 ops/docker_run.py --container-id xgb-ci.jvm_gpu_build --use-gpus \
--run-args "-e SCALA_VERSION=${SCALA_VERSION} -e USE_CUDA=1 -e SKIP_NATIVE_BUILD=1 --privileged" \
--run-args "-e SCALA_VERSION=${SCALA_VERSION} -e USE_CUDA=1 -e SKIP_NATIVE_BUILD=1" \
-- ops/pipeline/build-test-jvm-packages-impl.sh
3 changes: 1 addition & 2 deletions ops/pipeline/test-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ case "$suite" in
python3 ops/docker_run.py --container-id "${container_id}" --use-gpus \
-- nvidia-smi
python3 ops/docker_run.py --container-id "${container_id}" --use-gpus \
--run-args='--privileged' \
-- bash test-python-wrapper.sh gpu_test
;;

Expand All @@ -56,7 +55,7 @@ case "$suite" in
python3 ops/docker_run.py --container-id "${container_id}" --use-gpus \
-- nvidia-smi
python3 ops/docker_run.py --container-id "${container_id}" --use-gpus \
--run-args='--shm-size=4g --privileged' \
--run-args='--shm-size=4g' \
-- bash test-python-wrapper.sh gpu_test
;;

Expand Down

0 comments on commit 49eaec1

Please sign in to comment.