You are here: Foswiki>Cluster Web>CookBookSelectQueues (03 May 2016, SalzmannUserTopic)Edit Attach

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: r1 - 03 May 2016, SalzmannUserTopic - This page was cached on 01 Feb 2025 - 05:52.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback