Skip to content

Commit

Permalink
Merge pull request #168 from jedwards4b/fix/nvhpc_derecho
Browse files Browse the repository at this point in the history
fix build using nvhpc on derecho
  • Loading branch information
jedwards4b authored Apr 25, 2024
2 parents 056c80f + fc67b1c commit 2ff978f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions machines/cmake_macros/derecho.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ set(MPI_SERIAL_PATH "$ENV{NCAR_ROOT_MPI_SERIAL}")
set(NETCDF_PATH "$ENV{NETCDF}")
set(PIO_FILESYSTEM_HINTS "lustre")
set(PNETCDF_PATH "$ENV{PNETCDF}")
if(DEFINED ENV{PIO})
set(PIO_LIBDIR "$ENV{PIO}/lib")
set(PIO_INCDIR "$ENV{PIO}/include")
endif()
# If we want to use cray-libsci instead of mkl uncomment this line as well as the module in config_machines.xml
string(REPLACE "-mkl=cluster" "" SLIBS "${SLIBS}")
string(APPEND CPPDEFS " -DHAVE_GETTID")
2 changes: 1 addition & 1 deletion machines/cmake_macros/nvhpc_derecho.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ if (COMP_NAME STREQUAL mpi-serial)
string(APPEND CFLAGS " -std=c89 ")
endif()
if (NOT DEBUG)
string(APPEND FFLAGS " -target=zen3")
string(APPEND FFLAGS " -tp=zen3")
endif()
message("GPU_TYPE is ${GPU_TYPE} GPU_OFFLOAD is ${GPU_OFFLOAD}")

0 comments on commit 2ff978f

Please sign in to comment.