Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooFit::MultiProcess::Config Class Reference

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.

Definition at line 19 of file Config.h.

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>

Member Function Documentation

◆ getDefaultNWorkers()

unsigned int RooFit::MultiProcess::Config::getDefaultNWorkers ( )
static

Definition at line 50 of file Config.cxx.

◆ setDefaultNWorkers()

void RooFit::MultiProcess::Config::setDefaultNWorkers ( unsigned int  N_workers)
static

Definition at line 39 of file Config.cxx.

Member Data Documentation

◆ defaultNWorkers_

unsigned int RooFit::MultiProcess::Config::defaultNWorkers_ = std::thread::hardware_concurrency()
staticprivate

Definition at line 24 of file Config.h.

  • roofit/multiprocess/inc/RooFit/MultiProcess/Config.h
  • roofit/multiprocess/src/Config.cxx