How to assign one node among specific nodes in slurm?

I want to submit a job using one node among a specific nodelist. Suppose, nodes 151-154 are my specific node. So, Here is my script:

#!/bin/sh
#SBATCH --job-name=k89a1
#SBATCH --nodes=1
#SBATCH --time=60-00:00:00
#SBATCH --gres=gpu:1
#SBATCH --cpus-per-task=1
#SBATCH --error=job.%J.err
#SBATCH --output=job.%J.out
#SBATCH --nodelist=node[151-154]

However, sbatch: error: invalid number of nodes (-N 2-1)

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like