Skip to content

Commit

Permalink
Fix build w/NVHPC on Chicoma
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Prather committed Sep 25, 2023
1 parent a88c313 commit 43a3250
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions machines/chicoma.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ if [[ "$HOST" == "ch-fe"* || "$HOST" == "nid00"* ]]; then
export CRAY_CPU_TARGET="x86-64"
if [[ "$ARGS" == *"cuda"* ]]; then
DEVICE_ARCH="AMPERE80"
# Runtime
MPI_NUM_PROCS=4
if [[ "$ARGS" == *"gnu"* ]]; then
module load PrgEnv-gnu cpe-cuda cuda
module load PrgEnv-gnu
elif [[ "$ARGS" == *"intel"* ]]; then
module load PrgEnv-intel
elif [[ "$ARGS" == *"nvc++"* ]]; then
Expand All @@ -23,9 +21,10 @@ if [[ "$HOST" == "ch-fe"* || "$HOST" == "nid00"* ]]; then
else
module load PrgEnv-nvhpc
fi
module load cpe-cuda cuda craype-accel-nvidia80
# GPU runtime opts
MPI_NUM_PROCS=4
MPI_EXTRA_ARGS="--cpu-bind=mask_cpu:0x0*16,0x1*16,0x2*16,0x3*16 $SOURCE_DIR/bin/select-gpu"
MPI_EXTRA_ARGS="--cpu-bind=mask_cpu:0x0*16,0x1*16,0x2*16,0x3*16 $SOURCE_DIR/bin/select_gpu_chicoma"
unset OMP_NUM_THREADS
unset OMP_PROC_BIND
unset OMP_PLACES
Expand All @@ -35,6 +34,7 @@ if [[ "$HOST" == "ch-fe"* || "$HOST" == "nid00"* ]]; then
module load cray-hdf5-parallel cmake
# System HDF5 can't use compression
EXTRA_FLAGS="-DPARTHENON_DISABLE_HDF5_COMPRESSION=ON $EXTRA_FLAGS"
export MPICH_GPU_SUPPORT_ENABLED=1

# Runtime opts
MPI_EXE=srun
Expand Down
1 change: 1 addition & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ fi
# Load environment from the same files as the compile process
HOST=$(hostname -f)
ARGS=$(cat $KHARMA_DIR/make_args)
SOURCE_DIR=$(dirname "$(readlink -f "$0")")
for machine in $KHARMA_DIR/machines/*.sh
do
source $machine
Expand Down

0 comments on commit 43a3250

Please sign in to comment.