...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
#!/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 # Ensure OpenMP correct pinning export OMP_NUM_THREADS=${SLURMPLACES=threads srun -c $SLURM_CPUS_PER_TASK:-1} srun my_mpi_openmp_app |
Tip |
---|
See |
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
#!/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
# Needed to avoid occasional job hang at exit
export SLURM_MPI_TYPE=none
# Ensure OpenMP correct pinning
export OMP_PLACES=threads
srun -N1 -n 64 -c 2 executable1 : -N2 -n 64 -c 4 executable2 |
...