-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated cmake for new persistent collective comm.
- Loading branch information
1 parent
3081561
commit d77f389
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Sorry, something went wrong. |
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.