User Tools

Site Tools


node_local_scheduling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
node_local_scheduling [2018/11/28 09:54]
baumg001
node_local_scheduling [2019/06/13 14:46] (current)
meesters [Running on several hosts]
Line 162: Line 162:
 #SBATCH -p parallel ​ # for Mogon II #SBATCH -p parallel ​ # for Mogon II
 #SBATCH --nodes=3 # appropriate number of Nodes #SBATCH --nodes=3 # appropriate number of Nodes
-#SBATCH -n 192    # example value for Mogon I, see below+#SBATCH -n 24    # example value for Mogon I, see below
 #SBATCH -t 300 #SBATCH -t 300
-#SBATCH --cpus-per-task=8 # we assume an application which scales to 8 threads, but +#SBATCH -c=8 # we assume an application which scales to 8 threads, but 
-                          # -c / --cpus-per-task ​could also be ommited (default is =1) +             ​# -c / --cpus-per-task ​cat be ommited (default is =1) 
-                          # or set to a different value.+             ​# or set to a different value.
 #SBATCH -o <your logfile prefix>​_%j.log #SBATCH -o <your logfile prefix>​_%j.log
  
Line 181: Line 181:
 </​file>​ </​file>​
  
-The number of tasks given by ''​-n'' ​should be the number of CPUs * the number of nodes. However, bear in mind that the a-nodes of Mogon I have 1 FPU per 2 CPU Module and the z-nodes of Mogon II have 20 CPUs, each with hyptherthreading enables. Which number you best assume ​to be the number of cores is application depended and should best be determined experimentally.+<WRAP center round info 95%> 
 +The number of tasks (given by ''​-n''​) times the number of cpus per task (given by ''​-c''​) needs to be equal the number of nodes (given by ''​-N''​) times number ​of CPUs per nodes (to be inferred from ''​scontrol show node <​nodename>''​ or in the [[nodes|wiki]].) Or (in pseudo bash)): 
 + 
 +<code bash> 
 +# ensure 
 +((SLURM_CPUS_PER_TASK * SLURM_NTASKS)) -eq $((SLURM_CPUS_ON_NODE * SLURM_CPUS_ON_NODE)) 
 +</​code>​ 
 +</​WRAP>​
  
 ====== SLURM multiprog for uneven arrays ====== ====== SLURM multiprog for uneven arrays ======
node_local_scheduling.1543395280.txt.gz · Last modified: 2018/11/28 09:54 by baumg001