This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
salloc [2014/04/23 23:06] root created |
salloc [2014/04/24 13:50] (current) root |
||
---|---|---|---|
Line 2: | Line 2: | ||
Make a slurm allocation and run a program. The allocation is given up when the program ends. | Make a slurm allocation and run a program. The allocation is given up when the program ends. | ||
+ | |||
+ | If you don't specify a program it will run bash, which won't end until you type **exit**. | ||
< | < | ||
Line 8: | Line 10: | ||
srun -n 5 hostname | srun -n 5 hostname | ||
</ | </ | ||
+ | |||
+ | The first srun will run ten copies of hostname. The second will run 5 (with the 10 cores allocated using salloc). | ||
+ | |||
+ | Note: I couldn' | ||