-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile updates for Frontier, warning fixes
- Loading branch information
Ben Prather
committed
Sep 6, 2023
1 parent
5c1bbc7
commit ac048d6
Showing
8 changed files
with
1,040 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ make_args | |
# Executables | ||
*.host* | ||
*.cuda* | ||
*.rocm* | ||
*.hip* | ||
*.sycl* | ||
*.exe | ||
*.out | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
# Config for OLCF Frontier | ||
|
||
if [[ $HOST == *".frontier.olcf.ornl.gov" ]] | ||
then | ||
HOST_ARCH=ZEN3 | ||
DEVICE_ARCH=VEGA90A | ||
|
||
MPI_EXE=srun | ||
NPROC=64 | ||
|
||
if [[ $ARGS == *"hip"* ]]; then | ||
# HIP compile for AMD GPUs | ||
|
||
if [[ $ARGS == *"cray"* ]]; then | ||
module load PrgEnv-cray | ||
module load craype-accel-amd-gfx90a | ||
module load amd-mixed | ||
else | ||
module load PrgEnv-amd | ||
module load craype-accel-amd-gfx90a | ||
fi | ||
|
||
module load cray-hdf5-parallel | ||
|
||
if [[ $ARGS == *"hipcc"* ]]; then | ||
# TODO LINK MPI RIGHT | ||
CXX_NATIVE=hipcc | ||
C_NATIVE=hipcc | ||
export CXXFLAGS="-I$CRAY_HDF5_PARALLEL_PREFIX/include -L$CRAY_HDF5_PARALLEL_PREFIX/lib -l:libhdf5_parallel.a" | ||
#export PATH="$CRAY_HDF5_PARALLEL_PREFIX/bin:$PATH" | ||
else | ||
CXX_NATIVE=CC | ||
C_NATIVE=cc | ||
export CXXFLAGS="-noopenmp -mllvm -amdgpu-function-calls=false $CXXFLAGS" | ||
fi | ||
|
||
# Runtime | ||
MPI_NUM_PROCS=8 | ||
MPI_EXTRA_ARGS="-c1 --gpus-per-node=8 --gpu-bind=closest" | ||
export MPICH_GPU_SUPPORT_ENABLED=1 | ||
|
||
# Old workaround, for non-GPU MPI only! | ||
#export MPICH_SMP_SINGLE_COPY_MODE=NONE | ||
else | ||
# CPU Compile | ||
# TODO -c etc etc | ||
MPI_NUM_PROCS=1 | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters