User Tools

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 opteron275.

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

hostname
sleep 30 ;

Example 2: Use opteron250 OR opteron2356

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

hostname
sleep 30 ;

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information