[slurm-users] Why is --cpu_bind not an option for sbatch? Why only srun?

54 views
Skip to first unread message

David Henkemeyer

unread,
Mar 31, 2022, 2:15:19 PM3/31/22
to Slurm User Community List
We noticed that we can pass --cpu_bind into an srun commandline, but not sbatch.  Why is that?

Thanks
David

Brian Andrus

unread,
Mar 31, 2022, 2:40:30 PM3/31/22
to slurm...@lists.schedmd.com
If I were to hazard a guess, I would say that srun actually runs things
whereas sbatch submits and runs a batch command.
How would sbatch get 'hostname' to run on a particular cpu?
Within sbatch, you could do that by using srun to run 'hostname'.
So it is the execution step that is where you would do that and those
are subsets of sbatch.

Brian Andrus
Reply all
Reply to author
Forward
0 new messages