MCDS
Evan's favorite commands
[edit | edit source]I need N GPUs in an interactive session for D days!
[edit | edit source]Note: only use as many GPUs as you truly need Run: <syntaxhighlight lang="bash"> srun --pty --gres=gpu:N --time=D-00:00:00 --partition=babel-shared bash </syntaxhighlight>
I need a process to continue while my laptop is shut!
[edit | edit source]Run:<syntaxhighlight lang="bash"> screen -R <screen_name> </syntaxhighlight>This opens a new "screen." A screen is an interactive bash that will continue to process even while you don't have it open!
- To leave a screen, press CTRL+A then D.
- To scroll around within a screen, press CTRL+ESC then scroll around.
- To back to "normal" press ESC.
See all active screens:<syntaxhighlight lang="bash"> screen -ls </syntaxhighlight>To rejoin a screen that you left:<syntaxhighlight lang="bash"> screen -r <screen_name> </syntaxhighlight>
I need to know how much GPU RAM is used and by who?
[edit | edit source]Run:<syntaxhighlight lang="bash"> nvidia-smi </syntaxhighlight>