39

Our nodes are named node001 ... node0xx in our cluster. I wonder, is it possible to submit a job to a specific node using Slurm's sbatch command? If so, can someone post an example code for that?

1 Answer 1

55

I figured it out. You need to use -w node0xx or --nodelist=node0xx.

2
  • 2
    You need to provide the partition too lest you want to get a "requested node not in this partition" error as some nodes can be in several partitions (in my case we have a node that's in the fat and the fat_short partitions).
    – runlevel0
    Commented Apr 29, 2020 at 12:18
  • 1
    Here is the link to the documentation for sbatch on the -w flag.
    – qwerty
    Commented Jul 6, 2023 at 17:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .