Utopia 2
Framework for studying models of complex & adaptive systems.
|
Static information on the status of parallel execution. More...
#include <parallel.hh>
Public Types | |
enum | Setting { enabled , disabled } |
Possible settings for parallel execution. More... | |
Static Public Member Functions | |
static void | init (const DataIO::Config &cfg) |
Initialize parallel features based on configuration setting. | |
static void | set (const Setting value) |
Choose a setting for parallel execution at runtime. | |
static bool | is_enabled () |
Query if parallel execution is currently enabled. | |
static bool | is_applied () |
Actually check if parallel features are applied at runtime. | |
Static Private Member Functions | |
static std::shared_ptr< spdlog::logger > | get_logger () |
Fetch the core logger. | |
Static Private Attributes | |
static bool | _enabled = false |
Runtime setting for parallel execution. | |
Static information on the status of parallel execution.
|
inlinestaticprivate |
Fetch the core logger.
runtime_error | If logger does not exist |
|
inlinestatic |
Initialize parallel features based on configuration setting.
cfg | Parameter space config node |
Actually check if parallel features are applied at runtime.
Query if parallel execution is currently enabled.
Choose a setting for parallel execution at runtime.
This setting may be changed at any time during runtime. However, algorithms currently running will continue with the policy they have been started with.
Runtime setting for parallel execution.