...
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
#!/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 ./yourexe |
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
#!/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_per_node*$SLURM_JOB_NUM_NODES))
mpirun ./yourexe |