Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleMPI Hybrid job example
linenumberstrue
collapsetrue
#!/bin/bash
#SBATCH --job-name=test-hybrid
#SBATCH --qos=np
#SBATCH --ntasks=128
#SBATCH --cpus-per-task=4
#SBATCH --time=10:00
#SBATCH --output=test-hybrid.%j.out
#SBATCH --error=test-hybrid.%j.out

export OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK:-1}
srun my_mpi_openmp_app

...

Code Block
languagebash
titleMPI MPMD job example with heterogeneous geometry
linenumberstrue
collapsetrue
#!/bin/bash
#SBATCH --job-name=test-het
#SBATCH --qos=np
#SBATCH --nodes=3
#SBATCH --hint=nomultithread
#SBATCH --time=10:00
#SBATCH --output=test-het.%j.out
#SBATCH --error=test-het.%j.out

srun -N1 -n 64 -c 2 executable1 : -N2 -n 64 -c 4 executable2

...