...
Codeblock | ||||
---|---|---|---|---|
| ||||
#!/bin/bash #SBATCH --nodes=2 #SBATCH --partition=cpu-clx:test module load openmpi/gcc/5.0.3 export SLURM_CPU_BIND=none export OMP_NUM_THREADS=24 mpirun -np 8 --map-by ppr:4:node:pe=24 ./hello.bin |
Using srun
MPI only
test
Codeblock | ||||
---|---|---|---|---|
| ||||
#!/bin/bash #SBATCH --nodes=2 #SBATCH --partition=cpu-clx:test srun --ntasks-per-node=96 ./hello.bin |
MPI, OpenMP
...
Codeblock | ||
---|---|---|
| ||
#!/bin/bash
#SBATCH --nodes=2
#SBATCH --partition=cpu-clx:test
export OMP_PROC_BIND=spread
export OMP_NUM_THREADS=24
srun --ntasks-per-node=4 --cpus-per-task=48 ./hello.bin |