Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compiler flags to perlmutter cmake to enable use of mlcorrection #2770

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/eamxx/cmake/machine-files/pm-cpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ if ("${PROJECT_NAME}" STREQUAL "E3SM")
else()
set(CMAKE_Fortran_FLAGS "-fallow-argument-mismatch" CACHE STRING "" FORCE) # only works with gnu v10 and above
endif()

option (SCREAM_ENABLE_ML_CORRECTION "Whether to enable ML correction parametrization" ON)
3 changes: 3 additions & 0 deletions components/eamxx/cmake/machine-files/pm-gpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ include (${EKAT_MACH_FILES_PATH}/mpi/srun.cmake)

#option(Kokkos_ARCH_AMPERE80 "" ON)
set(CMAKE_CXX_FLAGS "-DTHRUST_IGNORE_CUB_VERSION_CHECK" CACHE STRING "" FORCE)
execute_process(COMMAND conda activate /global/common/software/m4492/fv3net-shared)

#message(STATUS "pm-gpu CMAKE_CXX_COMPILER_ID=${CMAKE_CXX_COMPILER_ID} CMAKE_Fortran_COMPILER_VERSION=${CMAKE_Fortran_COMPILER_VERSION}")
if ("${PROJECT_NAME}" STREQUAL "E3SM")
Expand All @@ -31,3 +32,5 @@ if ("${PROJECT_NAME}" STREQUAL "E3SM")
else()
set(CMAKE_Fortran_FLAGS "-fallow-argument-mismatch" CACHE STRING "" FORCE) # only works with gnu v10 and above
endif()

option (SCREAM_ENABLE_ML_CORRECTION "Whether to enable ML correction parametrization" ON)