User Tools

Site Tools


slurm:ai

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
slurm:ai [2021/06/25 14:41] – [Infrastructure] kauffmanslurm:ai [2021/06/25 14:51] grzenda
Line 176: Line 176:
 ==== Interactive ==== ==== Interactive ====
   - ''%%srun --pty bash%%'' run an interactive job   - ''%%srun --pty bash%%'' run an interactive job
-  - ''%%unset XDG_RUNTIME_DIR%%'' jupyter tries to use the value of this environment variable to store some files, by defaut it is set to '' and that causes errors when trying to run juypter notebook.+  - ''%%unset XDG_RUNTIME_DIR%%'' jupyter tries to use the value of this environment variable to store some files, by defaut it is set to ''<nowiki>''</nowiki>'' and that causes errors when trying to run juypter notebook.
   - ''%%export NODEIP=$(hostname -i)%%'' get the ip address of the node you are using   - ''%%export NODEIP=$(hostname -i)%%'' get the ip address of the node you are using
   - ''%%export NODEPORT=$(( $RANDOM + 1024 ))%%'' get a random port above 1024   - ''%%export NODEPORT=$(( $RANDOM + 1024 ))%%'' get a random port above 1024
   - ''%%echo $NODEIP:$NODEPORT%%'' echo the env var values to use later   - ''%%echo $NODEIP:$NODEPORT%%'' echo the env var values to use later
-  - ''%%jupyter-notebook --ip=$NODEIP --port=$NODEPORT --no-browser%%' start the jupyter notebook+  - ''%%jupyter-notebook --ip=$NODEIP --port=$NODEPORT --no-browser%%'' start the jupyter notebook
   - Make a new ssh connection with a tunnel to access your notebook   - Make a new ssh connection with a tunnel to access your notebook
   - ''%%ssh -N -L 8888:$NODEIP:$NODEPORT user@fe01.ai.cs.uchicago.edu%%'' using the values not variables   - ''%%ssh -N -L 8888:$NODEIP:$NODEPORT user@fe01.ai.cs.uchicago.edu%%'' using the values not variables
/var/lib/dokuwiki/data/pages/slurm/ai.txt · Last modified: 2022/04/04 10:58 by chaochunh

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki