[slurm-users] Specify number of cores only?

Renfro, Michael Renfro at tntech.edu
Wed Jul 10 21:26:01 UTC 2019


ntasks=N as an argument to sbatch or srun? Should work as long as you don’t have exclusive node settings. From our setup:

[renfro at login ~]$ hpcshell --ntasks=16 # hpcshell is a shell function for 'srun --partition=interactive $@ --pty bash -i'
[renfro at gpunode001(job 202002) ~]$ srun hostname | sort | uniq -c
     12 gpunode001
      4 gpunode002
[renfro at gpunode001(job 202002) ~]$

> On Jul 10, 2019, at 3:48 PM, HELLMERS Joe <Joe.HELLMERS at 3ds.com> wrote:
> 
> Is there a way to instruct SBATCH to submit a job with a certain number of cores without specifying anything else?  I don’t care which nodes or sockets they run on.  They would only use on thread per core.



More information about the slurm-users mailing list