Reputation: 4571
When using the parameter -p
you can define the partition for your job.
In my case a job can run in different partitions, so I do want to restrict my job to only a given partition.
If my job can perfectly run in partitions "p1" and "p3", how can I configure the sbatch
command to allow more than one partition?
Upvotes: 7
Views: 6602
Reputation: 59180
The --partition
option accepts a list of partition. So in your case you would write
#SBATCH --partition=p1,p3
The job will start in the partition that offers the resources the earliest.
Upvotes: 15