Configuration for MultiProcess infrastructure.
This class offers user-accessible configuration of the MultiProcess infrastructure. Since the rest of the MultiProcess classes are only accessible at compile time, a separate class is needed to set configuration. Currently, the only configurable part is the number of workers to be deployed.
The default number of workers is set using 'std::thread::hardware_concurrency()'. To change it, use 'Config::setDefaultNWorkers()' to set it to a different value before creation of a new JobManager instance. Note that it cannot be set to zero and also cannot be changed after JobManager has been instantiated.
Use Config::getDefaultNWorkers() to access the current value.
Static Public Member Functions | |
static unsigned int | getDefaultNWorkers () |
static void | setDefaultNWorkers (unsigned int N_workers) |
Static Private Attributes | |
static unsigned int | defaultNWorkers_ = std::thread::hardware_concurrency() |
#include <RooFit/MultiProcess/Config.h>
|
static |
Definition at line 50 of file Config.cxx.
Definition at line 39 of file Config.cxx.
|
staticprivate |