Skip to content

Commit

Permalink
Updated cmake for new persistent collective comm.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesoehner committed May 29, 2024
1 parent 3081561 commit d77f389
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ include(OpenMP)
include(options)
# include mpi module
include(mpi)
# include persistent communication module
include(persistent)
# include module for clang sanitizers
include(clang-sanitizers)
# ccache
Expand Down
10 changes: 10 additions & 0 deletions cmake/modules/persistent.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# persistent communication
option(ENABLE_PERSISTENT "Enable Persistent" OFF)
if(ENABLE_PERSISTENT)
message(STATUS "Persistent Communication Enabled")
# possibly add a check for a MPI version of at least 4.0
find_package(MPI REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_PERSISTENT")
else()
message(STATUS "Persistent Disabled")
endif()

This comment has been minimized.

Copy link
@cniethammer

cniethammer May 29, 2024

Contributor

As this is related to MPI, I suggest moving this into https://github.com/ls1mardyn/ls1-mardyn/blob/master/cmake/modules/mpi.cmake making the option only available in case MPI is enabled.

0 comments on commit d77f389

Please sign in to comment.