Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
languagebash
titleHyperthreading active, 80/192 Processes per Node will be started
collapsetrue
#!/bin/bash
#SBATCH -N 4

module load gcc/9.2.0 openmpi/gcc.9/3.1.5

cpus_per_node=${SLURM_JOB_CPUS_PER_NODE%\(*}
export OMP_NUM_THREADS=$(($cpus_per_node*$SLURM_JOB_NUM_NODES)) 

mpirun 
mpirun -ppn cpus_per_node ./yourexe


Codeblock
languagebash
titleHyperthreading disabled, 96 processes per node are started.
collapsetrue
#!/bin/bash
#SBATCH -N 4
#SBATCH --tasks-per-node 96

module load gcc/9.2.0 openmpi/gcc.9/3.1.5

tasks_per_node=${SLURM_TASKS_PER_NODE%\(*}
export OMP_NUM_THREADS=$(($tasks
mpirun -ppn tasks_per_node*$SLURM_JOB_NUM_NODES))

mpirun ./yourexe