4

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?

2

1 Answer 1

6

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.

1
  • 1
    I am getting this error: "sbatch: error: Batch job submission failed: Multiple partition job request not supported when a partition is set in the association" Nov 29, 2022 at 12:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.