Skip to content

Commit

Permalink
Set OpenMP threads manually on Perlmutter nodes (#4857)
Browse files Browse the repository at this point in the history
  • Loading branch information
n01r authored Apr 15, 2024
1 parent 5e95faf commit 12349a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tools/machines/perlmutter-nersc/perlmutter_cpu.sbatch
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ INPUTS=inputs_small
export SRUN_CPUS_PER_TASK=16 # 8 cores per chiplet, 2x SMP
export OMP_PLACES=threads
export OMP_PROC_BIND=spread
export OMP_NUM_THREADS=${SRUN_CPUS_PER_TASK}

srun --cpu-bind=cores \
${EXE} ${INPUTS} \
Expand Down
1 change: 1 addition & 0 deletions Tools/machines/perlmutter-nersc/perlmutter_gpu.sbatch
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export MPICH_OFI_NIC_POLICY=GPU
# threads for OpenMP and threaded compressors per MPI rank
# note: 16 avoids hyperthreading (32 virtual cores, 16 physical)
export SRUN_CPUS_PER_TASK=16
export OMP_NUM_THREADS=${SRUN_CPUS_PER_TASK}

# GPU-aware MPI optimizations
GPU_AWARE_MPI="amrex.use_gpu_aware_mpi=1"
Expand Down

0 comments on commit 12349a8

Please sign in to comment.