Skip to content

Commit

Permalink
Add --privileged flag
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Jan 30, 2025
1 parent 59c4980 commit af500b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ops/pipeline/test-cpp-gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,21 @@ case "${suite}" in
gpu)
echo "--- Run Google Tests, using a single GPU"
python3 ops/docker_run.py --image-uri ${IMAGE_URI} --use-gpus \
--run-args='--privileged' \
-- build/testxgboost
;;

gpu-rmm)
echo "--- Run Google Tests, using a single GPU, RMM enabled"
python3 ops/docker_run.py --image-uri ${IMAGE_URI} --use-gpus \
--run-args='--privileged' \
-- build/testxgboost --use-rmm-pool
;;

mgpu)
echo "--- Run Google Tests, using multiple GPUs"
python3 ops/docker_run.py --image-uri ${IMAGE_URI} --use-gpus \
--run-args='--shm-size=4g' \
--run-args='--shm-size=4g --privileged' \
-- build/testxgboost --gtest_filter=*MGPU*
;;

Expand Down

0 comments on commit af500b3

Please sign in to comment.