Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
compute_slurm [2019/02/13 15:36]
ktm5j
compute_slurm [2019/06/17 14:05] (current)
ktm5j
Line 114: Line 114:
 </​code>​ </​code>​
  
 +==== Partitions ====
 +
 +Slurm refers to job queues as //​partitions//​. ​ These queues can have unique constraints such as compute nodes, max runtime, resource limits, etc.  There is a ''​%%main%%''​ queue, which will make use of all non-GPU compute nodes.
 +
 +Partition is indicated by ''​%%-p partname%%''​ or ''​%%--partition partname%%''​.
 +
 +To specify a partition with ''​%%sbatch%%''​ file:
 +
 +<​code>​
 +#SBATCH --partition=gpu
 +</​code>​
 +
 +Or from the command line with ''​%%srun%%''​
 +
 +<​code>​
 +-p gpu
 +</​code>​
 +
 +An example running the command ''​%%hostname%%''​ on the //intel// partition, this will run on any node in the partition:
 +
 +<​code>​
 +srun -p intel hostname
 +</​code>​
  
 ==== GPUs ==== ==== GPUs ====
Line 143: Line 166:
  
 The ''​%%-i%%''​ argument tells ''​%%bash%%''​ to run as interactive. ​ The ''​%%-l%%''​ arg instructs bash that this is a login shell, this, along with the final ''​%%-%%''​ are important to reset environment variables that otherwise might cause issues using [[linux_environment_modules|Environment Modules]] The ''​%%-i%%''​ argument tells ''​%%bash%%''​ to run as interactive. ​ The ''​%%-l%%''​ arg instructs bash that this is a login shell, this, along with the final ''​%%-%%''​ are important to reset environment variables that otherwise might cause issues using [[linux_environment_modules|Environment Modules]]
 +
 +===== Reservations =====
 +
 +Reservations for specific resources or nodes can be made by submitting a request to <​cshelpdesk@virginia.edu>​. ​ For more information about using reservations,​ see the main article on [[compute_slurm_reservations|SLURM Reservations]]
 +
  • compute_slurm.1550072181.txt.gz
  • Last modified: 2019/02/13 15:36
  • by ktm5j