Skip to content

Commit

Permalink
Merge branch 'bishtgautam/machines/frontier-gnugpu' (PR #6352)
Browse files Browse the repository at this point in the history
Updates the libraries for GNU-GPU on Frontier

* 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

[No-baseline on Frontier]
  • Loading branch information
grnydawn committed Apr 23, 2024
2 parents a92b279 + 61dc8c0 commit 35b65ce
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 35b65ce

Please sign in to comment.