Only use MPI if explicitly enabled
Running with MPI on a regular workstation will probably not increase performance, so this should be disabled as default.
This commit is contained in:
@@ -97,8 +97,13 @@ include (UseOptimization)
|
|||||||
# dependencies, in case they alter the list of warnings
|
# dependencies, in case they alter the list of warnings
|
||||||
include (UseWarnings)
|
include (UseWarnings)
|
||||||
|
|
||||||
|
# parallel computing must be explicitly enabled
|
||||||
|
option (USE_MPI "Use Message Passing Interface for parallel computing" OFF)
|
||||||
|
if (NOT USE_MPI)
|
||||||
|
set (CMAKE_DISABLE_FIND_PACKAGE_MPI TRUE)
|
||||||
|
endif (NOT USE_MPI)
|
||||||
|
|
||||||
### --- begin opm-core specific --- ###
|
### --- begin opm-core specific --- ###
|
||||||
# parallel programming
|
|
||||||
include (UseOpenMP)
|
include (UseOpenMP)
|
||||||
find_openmp (${project})
|
find_openmp (${project})
|
||||||
### --- end opm-core specific --- ###
|
### --- end opm-core specific --- ###
|
||||||
|
|||||||
Reference in New Issue
Block a user