-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: add compile notes of amrex on Frontier
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | ||
-DCMAKE_INSTALL_PREFIX=${HOME}/local \ | ||
-DCMAKE_PREFIX_PATH='/opt/rocm-5.3.0/lib/cmake/AMDDeviceLibs;/opt/rocm-5.3.0/lib/cmake/amd_comgr;/opt/rocm-5.3.0/lib/cmake/hip;/opt/rocm-5.3.0/lib/cmake/hiprand;/opt/rocm-5.3.0/lib/cmake/hsa-runtime64;/opt/rocm-5.3.0/lib/cmake/rocprim;/opt/rocm/lib/cmake/rocrand' \ | ||
-DAMReX_GPU_BACKEND=HIP \ | ||
-DAMReX_AMD_ARCH=gfx90a \ | ||
-DAMReX_FORTRAN=OFF \ | ||
-DAMReX_FORTRAN_INTERFACES=OFF \ | ||
-DAMReX_OMP=OFF \ | ||
-DAMReX_PARTICLES=ON \ | ||
-DAMReX_PRECISION=DOUBLE \ | ||
.. | ||
# -DCMAKE_CXX_COMPILER=${ROCM_PATH}/bin/amdclang++ \ | ||
# -DCMAKE_C_COMPILER=${ROCM_PATH}/bin/amdclang \ |
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,8 @@ | ||
export MPICH_GPU_SUPPORT_ENABLED=1 | ||
export AMREX_AMD_ARCH=gfx90a | ||
export CC=$(which cc) | ||
export CXX=$(which CC) | ||
export FC=$(which ftn) | ||
export CFLAGS="-I${ROCM_PATH}/include" | ||
export CXXFLAGS="-I${ROCM_PATH}/include -Wno-pass-failed" | ||
export LDFLAGS="-L${ROCM_PATH}/lib -lamdhip64 ${PE_MPICH_GTL_DIR_amd_gfx90a} -lmpi_gtl_hsa" |
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,17 @@ | ||
module purge | ||
module load craype-x86-trento | ||
module load libfabric/1.15.2.0 | ||
module load craype-network-ofi | ||
module load perftools-base/22.12.0 | ||
module load xpmem/2.6.2-2.5_2.22__gd067c3f.shasta | ||
module load cray-pmi/6.1.8 | ||
module load DefApps/default | ||
module load ccache/4.5.1 | ||
module load cmake/3.23.2 | ||
module load craype-accel-amd-gfx90a | ||
#module load rocm/5.2.0 | ||
module load rocm/5.3.0 | ||
module load craype/2.7.19 | ||
module load cray-dsmml/0.2.2 | ||
module load cray-libsci/22.12.1.1 | ||
module load PrgEnv-gnu/8.3.3 |