From 61dc8c0adcaf7f1a50d52949d96943e2a63d5cc5 Mon Sep 17 00:00:00 2001 From: Gautam Bisht Date: Wed, 17 Apr 2024 16:26:22 -0400 Subject: [PATCH] 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` [BFB] --- cime_config/machines/cmake_macros/gnugpu_frontier.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cime_config/machines/cmake_macros/gnugpu_frontier.cmake b/cime_config/machines/cmake_macros/gnugpu_frontier.cmake index dbbe7ba2b2e9..174f8207d0d0 100644 --- a/cime_config/machines/cmake_macros/gnugpu_frontier.cmake +++ b/cime_config/machines/cmake_macros/gnugpu_frontier.cmake @@ -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")