Site Tools


howtouseslurm_002

This is an old revision of the document!


Nodes can have features assigned to them by the Slurm administrator. Users can specify which of these features are required by their job using the constraint option. Only nodes having features matching the job constraints will be used to satisfy the request.

Example 1: Use E5-2680 v4 CPU ( this cpu available on ant007 and ant008 )

:~> cat test_constraints01.batch
#!/bin/bash -l
#SBATCH --partition=test
#SBATCH --constraint=xeon2680v4
#SBATCH --ntasks=1
#SBATCH --mem 2G

hostname
sleep 30 ;

Example 2: Use E5-2680 v4 CPU OR i9-7900X CPU ( E5-2680 v4 is available on ant007 and ant008 and i9-7900X is available on ant6nn)

:~> cat test_constraints02.batch
#!/bin/bash -l
#SBATCH --partition=test
#SBATCH --constraint=xeon2680v4|i790x
#SBATCH --ntasks=1
#SBATCH --mem 2G

hostname
sleep 30 ;

Available constrains :

constrain name nodes
i790x ant6nn
gtx1080ti ant6nn
xeon2680v4 ant007, ant008
xeon2670v0 ant009
xeon4890v2 ant010
xeon2680v3 ant101, ant102
howtouseslurm_002.1573999694.txt.gz · Last modified: 2023/08/01 06:38 (external edit)