Skip to content

Commit

Permalink
[run_docker] Update gpu flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lmark1 committed Jan 4, 2024
1 parent d5e1d3a commit 32249cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,16 @@ fi

# Check if using GPU
gpu_enabled="--gpus all"
if [ "$distro" == "focal-nogpu" ]; then
gpu_enabled=""
fi
run_args="$gpu_enabled $run_args"

docker run \
$run_args \
-it \
--network host \
--privileged \
$gpu_enabled \
--volume=$XSOCK:$XSOCK:rw \
--volume=$XAUTH:$XAUTH:rw \
--env="XAUTHORITY=${XAUTH}" \
Expand Down

0 comments on commit 32249cd

Please sign in to comment.