Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
additional SHM required for Deep RL
Browse files Browse the repository at this point in the history
  • Loading branch information
lcodeca committed Aug 10, 2020
1 parent d3c2132 commit fd5ea7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker-cmd-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ LEARN_DIR=""
COMMAND=""
EXP=""
DETACH=false
SHM_SIZE="10g"

function print_help {
echo "Parameters:"
Expand All @@ -43,6 +44,7 @@ function print_help {
echo " DETACH: ($DETACH) [--detach]"
echo " DEVELOPMENT dir \"$DEVEL_DIR\" [-d, --devel]"
echo " LEARNING dir \"$LEARN_DIR\" [-l, --learn]"
echo " SHM_SIZE \"$SHM_SIZE\" [--shm-size]"
}

for arg in "$@"
Expand Down Expand Up @@ -93,6 +95,9 @@ do
-l=*|--learn=*)
LEARN_DIR="${arg#*=}"
;;
--shm-size=*)
SHM_SIZE="${arg#*=}"
;;
*)
# unknown option
echo "Unknown option \"$arg\""
Expand Down Expand Up @@ -149,7 +154,7 @@ if [[ "$RUN" = true ]]; then
--volume $XAUTHORITY:/home/alice/.Xauthority \
--volume /tmp/.X11-unix:/tmp/.X11-unix \
--privileged $MOUNT_DEVEL $MOUNT_LEARN \
--shm-size 256m $GPU_OPT $CONT_NAME \
--shm-size $SHM_SIZE $GPU_OPT $CONT_NAME \
-it $DETACH --rm $IMAGE_NAME:latest"
echo "$OPTIRUN_OPT docker run $RUN_OPT $COMMAND"

Expand Down

0 comments on commit fd5ea7a

Please sign in to comment.