Skip to content

Commit

Permalink
Updates the libraries for GNU-GPU on Frontier
Browse files Browse the repository at this point in the history
- Uses `-L/opt/cray/pe/gcc//11.2.0/snos/lib64/ -lgfortran` instead of
  `-L/opt/cray/pe/gcc-libs -lgfortran` as the lib in `/opt/cray/pe/gcc-libs`
  corresponds to GCC 12.2.0, while we are using GCC 11.2.0.
- Adds missing `-L/opt/rocm-5.4.0/lib -lhsa-runtime64`

[BFB]
  • Loading branch information
Gautam Bisht committed Apr 17, 2024
1 parent de85394 commit 61dc8c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cime_config/machines/cmake_macros/gnugpu_frontier.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ string(APPEND SPIO_CMAKE_OPTS " -DPIO_ENABLE_TOOLS:BOOL=OFF")

set(E3SM_LINK_WITH_FORTRAN "TRUE")
string(APPEND CMAKE_CXX_FLAGS " -I$ENV{MPICH_DIR}/include --offload-arch=gfx90a")
string(APPEND CMAKE_EXE_LINKER_FLAGS " -L/opt/cray/pe/gcc-libs -lgfortran -L$ENV{MPICH_DIR}/lib -lmpi -L$ENV{CRAY_MPICH_ROOTDIR}/gtl/lib -lmpi_gtl_hsa ")
string(APPEND CMAKE_EXE_LINKER_FLAGS " -L/opt/cray/pe/gcc/11.2.0/snos/lib64/ -lgfortran -L/opt/rocm-5.4.0/lib -lhsa-runtime64 -L$ENV{MPICH_DIR}/lib -lmpi -L$ENV{CRAY_MPICH_ROOTDIR}/gtl/lib -lmpi_gtl_hsa ")

string(APPEND KOKKOS_OPTIONS " -DKokkos_ENABLE_HIP=On -DKokkos_ARCH_ZEN3=On -DKokkos_ARCH_VEGA90A=On -DKokkos_ENABLE_OPENMP=Off")

Expand Down

0 comments on commit 61dc8c0

Please sign in to comment.