13Parallel::ExecutionMode
15 using namespace Parallel;
18 storageModes.begin(), storageModes.end(),
19 [](
const std::pair<std::string, Parallel::StorageMode> &item) { return item.second == StorageMode::Cloned; }))
20 return getCorrespondingExecutionMode(StorageMode::Cloned);
22 if (std::all_of(storageModes.begin(), storageModes.end(),
23 [](
const std::pair<std::string, Parallel::StorageMode> &item) {
24 return item.second == StorageMode::MasterOnly;
26 return getCorrespondingExecutionMode(StorageMode::MasterOnly);
27 return ExecutionMode::Invalid;
Parallel::ExecutionMode getParallelExecutionMode(const std::map< std::string, Parallel::StorageMode > &storageModes) const override
Get correct execution mode based on input storage modes for an MPI run.