Skip to content

Commit a4e1857

Browse files
committed
Add jemalloc support
1 parent caec9e2 commit a4e1857

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ ecbuild_add_executable (
160160
SOURCES StandAlone_FV3_Dycore.F90
161161
LIBS ${this} OpenMP::OpenMP_Fortran)
162162

163+
find_package (JeMalloc)
164+
if(JeMalloc_FOUND)
165+
message(STATUS "JeMalloc found, using for StandAlone_FV3_Dycore.x")
166+
target_link_libraries (StandAlone_FV3_Dycore.x JeMalloc::JeMalloc)
167+
endif()
168+
163169
ecbuild_add_executable (
164170
TARGET rs_scale.x
165171
SOURCES rs_scale.F90

0 commit comments

Comments
 (0)