Sie befinden sich im Service: RWTH High Performance Computing (Linux)

Slurm environmental variables

Slurm environmental variables

Kurzinformation

Slurm Variable Name
Description
Example Value
LSF equivalent
$SLURM_JOB_IDJob ID123456$LSB_JOBID
$SLURM_ARRAY_JOB_IDJob ID if part of Array job123456 

$SLURM_ARRAY_TASK_ID

Job Index within Array job1$LSB_JOBINDEX
$SLURM_JOB_NAMEJob NameMyBatchJob$LSB_JOBNAME
$SLURM_SUBMIT_DIRSubmit Directory/home/ab123456 
$SLURM_JOB_NODELISTNodes assigned to jobncm[0001,0004,0074-0080]$LSB_HOSTS
$SLURM_SUBMIT_HOSTSubmitting hostlogin18-1.hpc.itc.rwth-aachen.de 

$SLURM_JOB_NUM_NODES

$SLURM_NNODES

Number of nodes used by job4$LSB_HOSTS
$SLURM_JOB_CPUS_PER_NODENumber of cores per node8,8,8,6$LSB_MCPU_HOSTS
$SLURM_TASKS_PER_NODENumber of tasks per node1,1,1,1 
$SLURM_MEM_PER_CPUMemory per CPU in MB3000 
$SLURM_NTASKSTotal number of tasks for job48$LSB_DJOB_NUMPROC
$SLURM_NPROCSTotal number of processes for job48 

Please make sure you specify    #SBATCH --ntasks=<#>     in your batch script, otherwise  $SLURM_NTASKS   will not be set and be unavailable during execution!

zuletzt geändert am 28.11.2022

Wie hat Ihnen dieser Inhalt geholfen?

Creative Commons Lizenzvertrag
Dieses Werk ist lizenziert unter einer Creative Commons Namensnennung - Weitergabe unter gleichen Bedingungen 3.0 Deutschland Lizenz