Added out-of-the-box support for MPI (though not enabled by default). Previously the user had to pass mpicxx explicitly as the cmake compiler in order to compile MPI code, but this was bad practice and it's better to let cmake handle the include and compilation flags.
This commit is contained in:
@@ -70,14 +70,6 @@ endif ()
|
||||
|
||||
add_definitions(-DAC_DEFAULT_CONFIG="${CMAKE_SOURCE_DIR}/config/astaroth.conf")
|
||||
|
||||
if (MULTIGPU_ENABLED) # Deprecated
|
||||
add_definitions(-DAC_MULTIGPU_ENABLED=1)
|
||||
endif ()
|
||||
|
||||
if (MPI_ENABLED)
|
||||
add_definitions(-DAC_MPI_ENABLED=1)
|
||||
endif()
|
||||
|
||||
## Includes
|
||||
include_directories(include) # Library headers
|
||||
include_directories(src/common) # Common headers
|
||||
|
Reference in New Issue
Block a user