Skip to content

Commit 139f609

Browse files
committed
Merge branch 'brhillman/eamxx/enable-build-on-ghost' into master (PR E3SM-Project#7427)
Add cmake config for ghost [BFB]
2 parents 273d27a + ac26922 commit 139f609

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
include(${CMAKE_CURRENT_LIST_DIR}/common.cmake)
2+
common_setup()
3+
4+
set(EKAT_MACH_FILES_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../../externals/ekat/cmake/machine-files)
5+
6+
# Get AMD arch settings
7+
include(${EKAT_MACH_FILES_PATH}/kokkos/intel-skx.cmake)
8+
9+
# Add OpenMP settings in standalone mode OR e3sm with compile_threaded=ON
10+
if (NOT "${PROJECT_NAME}" STREQUAL "E3SM" OR compile_threaded)
11+
include(${EKAT_MACH_FILES_PATH}/kokkos/openmp.cmake)
12+
endif()
13+
14+
# Use srun for standalone testing
15+
include(${EKAT_MACH_FILES_PATH}/mpi/srun.cmake)

0 commit comments

Comments
 (0)