[slurm-users] Counting total number of cores specified in the sbatch file

Mahmood Naderan mahmood.nt at gmail.com
Sat Jun 8 09:46:36 UTC 2019


Hi,
A genetic program uses -num_threads in command line for parallel run. I use
the following directives in slurm batch file

#SBATCH --ntasks-per-node=6
#SBATCH --nodes=2
#SBATCH --mem-per-cpu=2G

for 12 processes and 24GB of memory. Is there any slurm variable that
counts all threads from the directives? So, I can use

-num_threads $SLURM_COUNT

where SLURM_COUNT is 12. Any idea?

Regards,
Mahmood
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20190608/d519dd8f/attachment.html>


More information about the slurm-users mailing list