User Tools

Site Tools


salloc

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
salloc [2014/04/24 13:48]
root
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**.
  
 <code> <code>
Line 8: Line 10:
 srun -n 5 hostname srun -n 5 hostname
 </code> </code>
 +
 +The first srun will run ten copies of hostname. The second will run 5 (with the 10 cores allocated using salloc).
  
 Note: I couldn't get **salloc** to run a script even though the documentation says it will. Note: I couldn't get **salloc** to run a script even though the documentation says it will.
  
salloc.1398361731.txt.gz ยท Last modified: 2014/04/24 13:48 by root