Skip to content

Commit

Permalink
fix cmake vars for mam, compose
Browse files Browse the repository at this point in the history
  • Loading branch information
oksanaguba committed Jan 21, 2025
1 parent 63371af commit 4bbd63f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion components/eamxx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,12 @@ set(NetCDF_Fortran_PATH ${DEFAULT_NetCDF_Fortran_PATH} CACHE FILEPATH "Path to n
set(NetCDF_C_PATH ${DEFAULT_NetCDF_C_PATH} CACHE FILEPATH "Path to netcdf C installation")
set(SCREAM_MACHINE ${DEFAULT_SCREAM_MACHINE} CACHE STRING "The CIME/SCREAM name for the current machine")
option(SCREAM_MPI_ON_DEVICE "Whether to use device pointers for MPI calls" ON)
option(SCREAM_ENABLE_MAM "Whether to enable MAM aerosol support" OFF)

option(SCREAM_ENABLE_MAM "Whether to enable MAM aerosol support" ON)
if (Kokkos_ENABLE_SYCL)
option(SCREAM_ENABLE_MAM "Whether to enable MAM aerosol support" OFF)
endif()

set(SCREAM_SMALL_KERNELS ${DEFAULT_SMALL_KERNELS} CACHE STRING "Use small, non-monolothic kokkos kernels for ALL components that support them")
set(SCREAM_P3_SMALL_KERNELS ${SCREAM_SMALL_KERNELS} CACHE STRING "Use small, non-monolothic kokkos kernels for P3 only")
set(SCREAM_SHOC_SMALL_KERNELS ${SCREAM_SMALL_KERNELS} CACHE STRING "Use small, non-monolothic kokkos kernels for SHOC only")
Expand Down
8 changes: 6 additions & 2 deletions components/eamxx/src/dynamics/homme/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ set(BUILD_HOMME_PREQX_KOKKOS OFF CACHE BOOL "")
set(BUILD_HOMME_PESE OFF CACHE BOOL "")
set(BUILD_HOMME_SWIM OFF CACHE BOOL "")
set(BUILD_HOMME_PRIM OFF CACHE BOOL "")
#set(HOMME_ENABLE_COMPOSE ON CACHE BOOL "")
set(HOMME_ENABLE_COMPOSE OFF CACHE BOOL "")

set(HOMME_ENABLE_COMPOSE ON CACHE BOOL "")
if (Kokkos_ENABLE_SYCL)
set(HOMME_ENABLE_COMPOSE OFF CACHE BOOL "")
endif()

set(BUILD_HOMME_TOOL OFF CACHE BOOL "")

if (NOT Kokkos_ENABLE_SERIAL)
Expand Down

0 comments on commit 4bbd63f

Please sign in to comment.