Go to the documentation of this file.
18 #include <tbb/concurrent_hash_map.h>
32 typedef tbb::concurrent_hash_map<std::string, unsigned int>
CHM;
71 "Decide if the local random generator is to be used" };
74 this,
"SleepFraction", 0.0,
75 "Fraction of time, between 0 and 1, when an algorithm is actually sleeping instead of crunching" };
Gaudi::Property< std::vector< std::string > > m_inpKeys
Gaudi::Property< unsigned int > m_rwRepetitions
Gaudi::Property< bool > m_loader
CPUCruncher & operator=(const CPUCruncher &)
the assignement operator is disabled
StatusCode initialize() override
Its initialization.
const std::string & name() const override
The identifying name of the algorithm object.
void declareRuntimeRequestedOutputs()
The CPU intensive function.
Alias for backward compatibility.
Gaudi::Property< bool > m_invertCFD
CPUCruncher(const CPUCruncher &)
the copy constructor is disabled
Gaudi::Property< double > m_var_runtime
CPUCruncher()
the default constructor is disabled
Gaudi::Property< unsigned int > m_failNEvents
Gaudi::Property< std::vector< std::string > > m_outKeys
double get_runtime() const
StatusCode execute() override
the execution of the algorithm
StatusCode finalize() override
the finalization of the algorithm
Gaudi::Property< bool > m_local_rndm_gen
tbb::concurrent_hash_map< std::string, unsigned int > CHM
std::vector< DataObjectHandle< DataObject > * > m_inputHandles
bool isClonable() const override
static CHM m_name_ncopies_map
Gaudi::Property< double > m_avg_runtime
virtual ~CPUCruncher()
virtual & protected desctrustor
SmartIF< ICPUCrunchSvc > m_crunchSvc
std::vector< DataObjectHandle< DataObject > * > m_outputHandles
Gaudi::Property< double > m_sleepFraction
Gaudi::Property< int > m_nParallel