From 37213a936cbeca4358910ffb7e44878b44db0cde Mon Sep 17 00:00:00 2001 From: Maxim Moraru Date: Wed, 25 Sep 2024 12:42:04 -0600 Subject: [PATCH] add cmake option for neigh collectives --- src/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 54a226c55383..39472f9f27b8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -11,6 +11,8 @@ # the public, perform publicly and display publicly, and to permit others to do so. #========================================================================================= +# set(WITH_NEIGHBORHOOD_COLLECTIVES OFF CACHE BOOL "Build with Neighborhood collectives") + # Configure config.hpp set(PROBLEM_GENERATOR "") # TODO: Figure out what to put here if (ENABLE_MPI) @@ -320,6 +322,10 @@ if (PARTHENON_ENABLE_ASCENT) endif() endif() +if(WITH_NEIGHBORHOOD_COLLECTIVES) + ADD_DEFINITIONS(-DUSE_NEIGHBORHOOD_COLLECTIVES) +endif() + lint_target(parthenon) target_include_directories(parthenon PUBLIC