![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
#include <IThreadNumberManager.h>
Public Member Functions | |
| virtual void | setNumberOfThreads (Size nb)=0 |
| sets the number max of threads that can be used | |
| virtual Size | getNumberOfThreads () const =0 |
| returns the current max number of threads of the scheduler | |
| virtual bool | isGumNumberOfThreadsOverriden () const =0 |
| indicates whether the user set herself the number of threads | |
Definition at line 55 of file IThreadNumberManager.h.
|
pure virtual |
returns the current max number of threads of the scheduler
Implemented in gum::learning::CorrectedMutualInformation, gum::learning::IndependenceTest, gum::learning::KNML, gum::learning::ParamEstimator, gum::learning::PseudoCount, gum::learning::Score, and gum::ThreadNumberManager.
|
pure virtual |
indicates whether the user set herself the number of threads
Implemented in gum::learning::CorrectedMutualInformation, gum::learning::IndependenceTest, gum::learning::KNML, gum::learning::ParamEstimator, gum::learning::PseudoCount, gum::learning::Score, and gum::ThreadNumberManager.
|
pure virtual |
sets the number max of threads that can be used
| nb | the number max of threads to be used. If this number is set to 0, then it is defaulted to aGrUM's max number of threads |
Implemented in gum::learning::CorrectedMutualInformation, gum::learning::IBNLearner, gum::learning::IndependenceTest, gum::learning::KNML, gum::learning::ParamEstimator, gum::learning::PseudoCount, gum::learning::RecordCounter, gum::learning::Score, gum::ScheduledInference, gum::SchedulerParallel, and gum::ThreadNumberManager.