Skip to content

Commit

Permalink
Add ability to customize DOCKER_GPU_OPTS env variable to handle weird…
Browse files Browse the repository at this point in the history
… handling of multiple GPUs by Docker (#1576)

Signed-off-by: Navin Kumar <navink@nvidia.com>
  • Loading branch information
NVnavkumar authored Nov 21, 2023
1 parent 592e007 commit 0eec2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/run-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $DOCKER_CMD build $DOCKER_BUILD_EXTRA_ARGS -f $REPODIR/ci/Dockerfile \
$REPODIR/build

if [[ "$DOCKER_CMD" == "docker" ]]; then
DOCKER_GPU_OPTS="--gpus all"
DOCKER_GPU_OPTS=${DOCKER_GPU_OPTS:-"--gpus all"}
fi

if (( $# == 0 )); then
Expand Down

0 comments on commit 0eec2c6

Please sign in to comment.