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?
Asked
Active
Viewed 5.6k times
34
Jeff Schaller
- 66,199
- 35
- 114
- 250
Amir
- 949
- 1
- 7
- 12
1 Answers
49
I figured it out. You need to use -w node0xx or --nodelist=node0xx.
Amir
- 949
- 1
- 7
- 12
-
2You 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 Apr 29 '20 at 12:18
-
[Here is the link](https://slurm.schedmd.com/sbatch.html#OPT_nodelistand) to the documentation for `sbatch` on the `-w` flag. – qwerty Jul 06 '23 at 17:41