Cook Book: Selecting Queues

Available Partitions

You can get a list of available partitions by typing scontrol show partitions. Then you can select the partition within your job script by adding the following to it

#!/bin/bash
...
#SBATCH -p <PARTITION>
...

or by adding it to your submit command

$ sbatch -p   job_script.sh

GPUs

The gpu queue is subject to access control. To submit jobs to the gpu-queue set the partition parameter to 'gpu'. The following example will use 2 gpus, splitting up into 2 jobs (one gpu per job)

#!/bin/bash
...
#SBATCH -p gpu
#SBATCH --gres=gpu:2

srun --gres=gpu:1 $CMD
srun --gres=gpu:1 $CMD

...
Topic revision: r5 - 03 May 2016, ChristianSalzmann
 
  • Printable version of this topic (p) Printable version of this topic (p)