ATLAS Offline Software
Loading...
Searching...
No Matches
SharedHiveEvtQueueConsumer Class Referencefinalabstract

#include <SharedHiveEvtQueueConsumer.h>

Inheritance diagram for SharedHiveEvtQueueConsumer:
Collaboration diagram for SharedHiveEvtQueueConsumer:

Public Member Functions

 SharedHiveEvtQueueConsumer (const std::string &type, const std::string &name, const IInterface *parent)
virtual ~SharedHiveEvtQueueConsumer () override
virtual StatusCode initialize () override
virtual StatusCode finalize () override
virtual int makePool ATLAS_NOT_THREAD_SAFE (int maxevt, int nprocs, const std::string &topdir) override
virtual StatusCode exec ATLAS_NOT_THREAD_SAFE () override
virtual StatusCode wait_once ATLAS_NOT_THREAD_SAFE (pid_t &pid) override
virtual void reportSubprocessStatuses () override
virtual void subProcessLogs (std::vector< std::string > &) override
virtual std::unique_ptr< AthenaInterprocess::ScheduledWorkbootstrap_func () override
virtual std::unique_ptr< AthenaInterprocess::ScheduledWorkexec_func () override
virtual std::unique_ptr< AthenaInterprocess::ScheduledWorkfin_func () override
virtual AthenaMP::AllWorkerOutputs_ptr generateOutputReport () override
virtual void useFdsRegistry (std::shared_ptr< AthenaInterprocess::FdsRegistry >) override
virtual void setRandString (const std::string &randStr) override
virtual void setMaxEvt (int maxEvt) override
virtual void setMPRunStop (const AthenaInterprocess::IMPRunStop *runStop) override
virtual void killChildren () override
virtual std::unique_ptr< ScheduledWork > operator () ATLAS_NOT_THREAD_SAFE(const ScheduledWork &)=0

Protected Types

enum  ESRange_Status {
  ESRANGE_SUCCESS , ESRANGE_NOTFOUND , ESRANGE_SEEKFAILED , ESRANGE_PROCFAILED ,
  ESRANGE_FILENOTMADE , ESRANGE_BADINPFILE
}
enum  Func_Flag { FUNC_BOOTSTRAP , FUNC_EXEC , FUNC_FIN }

Protected Member Functions

int mapAsyncFlag ATLAS_NOT_THREAD_SAFE (Func_Flag flag, pid_t pid=0)
int redirectLog (const std::string &rundir, bool addTimeStamp=true)
int updateIoReg (const std::string &rundir)
std::string fmterror (int errnum)
int reopenFds ()
int handleSavedPfc (const std::filesystem::path &dest_path)
void waitForSignal ()
IEvtSelector * evtSelector ()

Protected Attributes

int m_nprocs {-1}
 Number of workers spawned by the master process.
int m_maxEvt {-1}
 Maximum number of events assigned to the job.
std::string m_subprocTopDir
 Top run directory for subprocesses.
std::string m_subprocDirPrefix
 For ex. "worker__".
std::string m_evtSelName
 Name of the event selector.
AthenaInterprocess::ProcessGroupm_processGroup {nullptr}
const AthenaInterprocess::IMPRunStopm_mpRunStop {nullptr}
ServiceHandle< IEventProcessor > m_evtProcessor
ServiceHandle< IAppMgrUI > m_appMgr
ServiceHandle< IFileMgr > m_fileMgr
ServiceHandle< IIoComponentMgr > m_ioMgr
SmartIF< IEvtSelector > m_evtSelector
std::string m_fileMgrLog
std::shared_ptr< AthenaInterprocess::FdsRegistrym_fdsRegistry
std::string m_randStr
Gaudi::Property< bool > m_isPileup {this, "IsPileup", false, "Flag for configuring PileUpEventLoopMgr"}

Private Member Functions

StatusCode initHive ()
int decodeProcessResult ATLAS_NOT_THREAD_SAFE (const AthenaInterprocess::ProcessResult *presult, bool doFinalize)
int reopenFd (int fd, const std::string &name)

Private Attributes

Gaudi::Property< int > m_nEventsBeforeFork
Gaudi::Property< bool > m_debug
Gaudi::Property< bool > m_useSharedWriter
int m_rankId {-1}
ServiceHandle< IChronoStatSvc > m_chronoStatSvc
SmartIF< IDataSharem_dataShare
SmartIF< IEvtSelectorSeekm_evtSelSeek
IEvtSelector::Context * m_evtContext {}
AthenaInterprocess::SharedQueuem_sharedEventQueue {}
std::unique_ptr< AthenaInterprocess::SharedQueuem_sharedRankQueue
std::map< pid_t, int > m_nProcessedEvents
std::queue< pid_tm_finQueue
SmartIF< IScheduler > m_schedulerSvc

Detailed Description

Definition at line 22 of file SharedHiveEvtQueueConsumer.h.

Member Enumeration Documentation

◆ ESRange_Status

enum AthenaMPToolBase::ESRange_Status
protectedinherited
Enumerator
ESRANGE_SUCCESS 
ESRANGE_NOTFOUND 
ESRANGE_SEEKFAILED 
ESRANGE_PROCFAILED 
ESRANGE_FILENOTMADE 
ESRANGE_BADINPFILE 

Definition at line 58 of file AthenaMPToolBase.h.

◆ Func_Flag

enum AthenaMPToolBase::Func_Flag
protectedinherited
Enumerator
FUNC_BOOTSTRAP 
FUNC_EXEC 
FUNC_FIN 

Definition at line 67 of file AthenaMPToolBase.h.

Constructor & Destructor Documentation

◆ SharedHiveEvtQueueConsumer()

SharedHiveEvtQueueConsumer::SharedHiveEvtQueueConsumer ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 42 of file SharedHiveEvtQueueConsumer.cxx.

45 : AthenaMPToolBase(type,name,parent)
46 , m_chronoStatSvc("ChronoStatSvc", name)
47{
48 m_subprocDirPrefix = "worker_";
49}
std::string m_subprocDirPrefix
For ex. "worker__".
ServiceHandle< IChronoStatSvc > m_chronoStatSvc

◆ ~SharedHiveEvtQueueConsumer()

SharedHiveEvtQueueConsumer::~SharedHiveEvtQueueConsumer ( )
overridevirtual

Definition at line 53 of file SharedHiveEvtQueueConsumer.cxx.

54{
55}

Member Function Documentation

◆ ATLAS_NOT_THREAD_SAFE() [1/5]

int mapAsyncFlag AthenaMPToolBase::ATLAS_NOT_THREAD_SAFE ( Func_Flag flag,
pid_t pid = 0 )
protectedinherited

◆ ATLAS_NOT_THREAD_SAFE() [2/5]

virtual StatusCode exec SharedHiveEvtQueueConsumer::ATLAS_NOT_THREAD_SAFE ( )
overridevirtual

◆ ATLAS_NOT_THREAD_SAFE() [3/5]

int decodeProcessResult SharedHiveEvtQueueConsumer::ATLAS_NOT_THREAD_SAFE ( const AthenaInterprocess::ProcessResult * presult,
bool doFinalize )
private

◆ ATLAS_NOT_THREAD_SAFE() [4/5]

virtual int makePool SharedHiveEvtQueueConsumer::ATLAS_NOT_THREAD_SAFE ( int maxevt,
int nprocs,
const std::string & topdir )
overridevirtual

◆ ATLAS_NOT_THREAD_SAFE() [5/5]

virtual StatusCode wait_once SharedHiveEvtQueueConsumer::ATLAS_NOT_THREAD_SAFE ( pid_t & pid)
overridevirtual

Reimplemented from AthenaMPToolBase.

◆ bootstrap_func()

std::unique_ptr< AthenaInterprocess::ScheduledWork > SharedHiveEvtQueueConsumer::bootstrap_func ( )
overridevirtual

Implements AthenaMPToolBase.

Definition at line 224 of file SharedHiveEvtQueueConsumer.cxx.

225{
226 if (m_debug) {
227 ATH_MSG_INFO("Bootstrap worker PID " << getpid() << " - waiting for SIGUSR1");
228 sigset_t mask, oldmask;
229
231
232 sigemptyset (&mask);
233 sigaddset (&mask, SIGUSR1);
234
235 sigprocmask (SIG_BLOCK, &mask, &oldmask);
237 sigsuspend (&oldmask);
238 sigprocmask (SIG_UNBLOCK, &mask, NULL);
239 }
240
241 std::unique_ptr<AthenaInterprocess::ScheduledWork> outwork(new AthenaInterprocess::ScheduledWork);
242 outwork->data = CxxUtils::xmalloc(sizeof(int));
243 *(int*)(outwork->data) = 1; // Error code: for now use 0 success, 1 failure
244 outwork->size = sizeof(int);
245
246 // ...
247 // (possible) TODO: extend outwork with some error message, which will be eventually
248 // reported in the master proces
249 // ...
250
251 // ________________________ Get IncidentSvc and fire PostFork ________________________
252 SmartIF<IIncidentSvc> p_incidentSvc(serviceLocator()->service("IncidentSvc"));
253 if (!p_incidentSvc) {
254 ATH_MSG_ERROR("Unable to retrieve IncidentSvc");
255 return outwork;
256 }
257 p_incidentSvc->fireIncident(Incident(name(),"PostFork"));
258
259
260 // ________________________ Get RankID ________________________
261 //
262 if(!m_sharedRankQueue->receive_basic<int>(m_rankId)) {
263 ATH_MSG_ERROR("Unable to get rank ID!");
264 return outwork;
265 }
266 std::ostringstream workindex;
267 workindex<<m_rankId;
268
269 // ________________________ Worker dir: mkdir ________________________
270 std::filesystem::path worker_rundir(m_subprocTopDir);
271 worker_rundir /= std::filesystem::path(m_subprocDirPrefix+workindex.str());
272 // TODO: this "worker_" can be made configurable too
273
274 if(mkdir(worker_rundir.string().c_str(),S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH)==-1) {
275 ATH_MSG_ERROR("Unable to make worker run directory: " << worker_rundir.string() << ". " << fmterror(errno));
276 return outwork;
277 }
278
279 // ________________________ Redirect logs ________________________
280 if(redirectLog(worker_rundir.string()))
281 return outwork;
282
283 ATH_MSG_INFO("Logs redirected in the AthenaMP event worker PID=" << getpid());
284
285 // ________________________ Update Io Registry ____________________________
286 if(updateIoReg(worker_rundir.string()))
287 return outwork;
288
289 ATH_MSG_INFO("Io registry updated in the AthenaMP event worker PID=" << getpid());
290
291 // ________________________ SimParams & DigiParams & PDGTABLE.MeV ____________________________
292 std::filesystem::path abs_worker_rundir = std::filesystem::absolute(worker_rundir);
293 if(std::filesystem::is_regular_file("SimParams.db"))
294 COPY_FILE_HACK("SimParams.db", abs_worker_rundir.string()+"/SimParams.db");
295 if(std::filesystem::is_regular_file("DigitParams.db"))
296 COPY_FILE_HACK("DigitParams.db", abs_worker_rundir.string()+"/DigitParams.db");
297 if(std::filesystem::is_regular_file("PDGTABLE.MeV"))
298 COPY_FILE_HACK("PDGTABLE.MeV", abs_worker_rundir.string()+"/PDGTABLE.MeV");
299
300 // _______________________ Handle saved PFC (if any) ______________________
301 if(handleSavedPfc(abs_worker_rundir))
302 return outwork;
303
304 // ________________________ reopen descriptors ____________________________
305 if(reopenFds())
306 return outwork;
307
308 ATH_MSG_INFO("File descriptors re-opened in the AthenaMP event worker PID=" << getpid());
309
310 // ________________________ Make Shared Writer Client ________________________
311
313 SmartIF<IProperty> propertyServer(m_dataShare);
314 if (!propertyServer || propertyServer->setProperty("MakeStreamingToolClient", m_rankId + 1).isFailure()) {
315 ATH_MSG_ERROR("Could not change AthenaPoolSharedIOCnvSvc MakeClient Property");
316 return outwork;
317 } else {
318 ATH_MSG_DEBUG("Successfully made the conversion service a share client");
319 }
320 }
321
322 // ________________________ I/O reinit ________________________
323 ATH_CHECK( m_ioMgr->io_reinitialize(), outwork );
324
325 // ________________________ Event selector restart ________________________
326 SmartIF<IService> evtSelSvc(m_evtSelector);
327 ATH_CHECK( evtSelSvc.isValid(), outwork );
328 ATH_CHECK( evtSelSvc->start(), outwork );
329
330 // ________________________ Worker dir: chdir ________________________
331 if(chdir(worker_rundir.string().c_str())==-1) {
332 ATH_MSG_ERROR("Failed to chdir to " << worker_rundir.string());
333 return outwork;
334 }
335
336 // ___________________ Fire UpdateAfterFork incident _________________
337 p_incidentSvc->fireIncident(AthenaInterprocess::UpdateAfterFork(m_rankId,getpid(),name()));
338
339 // Declare success and return
340 *(int*)(outwork->data) = 0;
341 return outwork;
342}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
#define sigemptyset(x)
Definition SealSignal.h:82
#define sigaddset(x, y)
Definition SealSignal.h:84
int sigset_t
Definition SealSignal.h:80
std::string m_subprocTopDir
Top run directory for subprocesses.
int handleSavedPfc(const std::filesystem::path &dest_path)
int updateIoReg(const std::string &rundir)
SmartIF< IEvtSelector > m_evtSelector
int redirectLog(const std::string &rundir, bool addTimeStamp=true)
ServiceHandle< IIoComponentMgr > m_ioMgr
std::string fmterror(int errnum)
Gaudi::Property< bool > m_useSharedWriter
std::unique_ptr< AthenaInterprocess::SharedQueue > m_sharedRankQueue
#define COPY_FILE_HACK(_src, _dest)
void * xmalloc(size_t size)
Trapping version of malloc.
Definition xmalloc.cxx:31
mkdir(path, recursive=True)

◆ evtSelector()

IEvtSelector * AthenaMPToolBase::evtSelector ( )
inlineprotectedinherited

Definition at line 83 of file AthenaMPToolBase.h.

83{ return m_evtSelector; }

◆ exec_func()

std::unique_ptr< AthenaInterprocess::ScheduledWork > SharedHiveEvtQueueConsumer::exec_func ( )
overridevirtual

Implements AthenaMPToolBase.

Definition at line 346 of file SharedHiveEvtQueueConsumer.cxx.

347{
348 ATH_MSG_INFO("Exec function in the AthenaMP worker PID=" << getpid());
349
350 bool all_ok(true);
351
352 if (!initHive().isSuccess()) {
353 ATH_MSG_FATAL("unable to initialize Hive");
354 all_ok = false;
355 }
356
357 // Get the value of SkipEvent
358 int skipEvents(0);
359 SmartIF<IProperty> propertyServer(m_evtSelector);
360 if(propertyServer==0) {
361 ATH_MSG_ERROR("Unable to cast event selector to IProperty");
362 all_ok = false;
363 }
364 else {
365 std::string propertyName("SkipEvents");
366 IntegerProperty skipEventsProp(std::move(propertyName),skipEvents);
367 if(propertyServer->getProperty(&skipEventsProp).isFailure()) {
368 ATH_MSG_INFO("Event Selector does not have SkipEvents property");
369 }
370 else {
371 skipEvents = skipEventsProp.value();
372 }
373 }
374
375 IHybridProcessorHelper* hybridHelper = dynamic_cast<IHybridProcessorHelper*>(m_evtProcessor.get());
376 if(!hybridHelper) {
377 ATH_MSG_FATAL("Failed to acquire IHybridProcessorHelper interface");
378 all_ok = false;
379 return std::unique_ptr<AthenaInterprocess::ScheduledWork>();
380 }
381 // Reset the application return code.
382 hybridHelper->resetAppReturnCode();
383
384 int finishedEvts =0;
385 int createdEvts =0;
386 long intmask = pow(0x100,sizeof(int))-1; // Mask for decoding event number from the value posted to the queue
387 long evtnumAndChunk(0);
388// unsigned evtCounter(0);
389 int evtnum(0), chunkSize(1);
390
391 ATH_MSG_INFO("Starting loop on events");
392
393 StatusCode sc(StatusCode::SUCCESS);
394
395 while(!m_sharedEventQueue->try_receive_basic<long>(evtnumAndChunk)) {
396 ATH_MSG_DEBUG("Event queue is empty");
397 usleep(1000);
398 }
399 bool loop_ended = (evtnumAndChunk<0);
400 if(!loop_ended) {
401 ATH_MSG_DEBUG("Received value from the queue 0x" << std::hex << evtnumAndChunk << std::dec);
402 chunkSize = evtnumAndChunk >> (sizeof(int)*8);
403 evtnum = evtnumAndChunk & intmask;
404 ATH_MSG_INFO("Received from the queue: event num=" << evtnum << " chunk size=" << chunkSize);
405 hybridHelper->setCurrentEventNum(++evtnum);
406 }
407
408 bool no_more_events = false;
409
410 while(!loop_ended) {
411 ATH_MSG_DEBUG(" -> createdEvts: " << createdEvts);
412
413 if(!hybridHelper->terminateLoop() // No scheduled loop termination
414 && !no_more_events // We are not yet done getting events
415 && m_schedulerSvc->freeSlots()>0) { // There are still free slots in the scheduler
416 ATH_MSG_DEBUG("createdEvts: " << createdEvts << ", freeslots: " << m_schedulerSvc->freeSlots());
417
418 auto ctx = m_evtProcessor->createEventContext();
419 if(!ctx.valid()) {
420 sc = StatusCode::FAILURE;
421 }
422 else {
423 sc = m_evtProcessor->executeEvent(std::move(ctx));
424 }
425
426 if (sc.isFailure()) {
427 ATH_MSG_ERROR("Terminating event processing loop due to errors");
428 loop_ended = true;
429 }
430 else {
431 ++createdEvts;
432 if(--chunkSize==0) {
433 // Fetch next chunk
434 while(!m_sharedEventQueue->try_receive_basic<long>(evtnumAndChunk)) {
435 ATH_MSG_DEBUG("Event queue is empty");
436 usleep(1000);
437 }
438 if(evtnumAndChunk<0) {
439 no_more_events = true;
440 evtnumAndChunk *= -1;
441 ATH_MSG_DEBUG("No more events are expected. The total number of events for this job = " << evtnumAndChunk);
442 }
443 else {
444 ATH_MSG_DEBUG("Received value from the queue 0x" << std::hex << evtnumAndChunk << std::dec);
445 chunkSize = evtnumAndChunk >> (sizeof(int)*8);
446 evtnum = evtnumAndChunk & intmask;
447 ATH_MSG_INFO("Received from the queue: event num=" << evtnum << " chunk size=" << chunkSize);
448 }
449 }
450 // Advance to the next event
451 if(!no_more_events) {
452 hybridHelper->setCurrentEventNum(++evtnum);
453 }
454 }
455 }
456 else {
457 // all the events were created but not all finished or the slots were
458 // all busy: the scheduler should finish its job
459 ATH_MSG_DEBUG("Draining the scheduler");
460
461 // Pull out of the scheduler the finished events
462 int ir = hybridHelper->drainScheduler(finishedEvts,true);
463 if(ir < 0) {
464 // some sort of error draining scheduler;
465 loop_ended = true;
466 sc = StatusCode::FAILURE;
467 }
468 else if(ir == 0) {
469 // no more events in scheduler
470 if(no_more_events) {
471 // We are done
472 loop_ended = true;
473 sc = StatusCode::SUCCESS;
474 }
475 }
476 else {
477 // keep going!
478 }
479 }
480 } // end main loop on finished events
481
482 if(all_ok) {
483 if(m_evtProcessor->executeRun(0).isFailure()) {
484 ATH_MSG_ERROR("Could not finalize the Run");
485 all_ok=false;
486 } else {
487 if(m_evtSelSeek->seek(*m_evtContext, evtnumAndChunk+skipEvents).isFailure()) {
488 ATH_MSG_DEBUG("Seek past maxevt to " << evtnumAndChunk+skipEvents << " returned failure. As expected...");
489 }
490 }
491 }
492
493 std::unique_ptr<AthenaInterprocess::ScheduledWork> outwork(new AthenaInterprocess::ScheduledWork);
494
495 // Return value: "ERRCODE|Func_Flag|NEvt"
496 int outsize = 2*sizeof(int)+sizeof(AthenaMPToolBase::Func_Flag);
497 void* outdata = CxxUtils::xmalloc(outsize);
498 *(int*)(outdata) = (all_ok?0:1); // Error code: for now use 0 success, 1 failure
500 memcpy((char*)outdata+sizeof(int),&func,sizeof(func));
501 memcpy((char*)outdata+sizeof(int)+sizeof(func),&createdEvts,sizeof(int));
502
503 outwork->data = outdata;
504 outwork->size = outsize;
505 // ...
506 // (possible) TODO: extend outwork with some error message, which will be eventually
507 // reported in the master proces
508 // ...
509 return outwork;
510}
#define ATH_MSG_FATAL(x)
static Double_t sc
constexpr int pow(int base, int exp) noexcept
ServiceHandle< IEventProcessor > m_evtProcessor
virtual void resetAppReturnCode()=0
virtual bool terminateLoop()=0
virtual void setCurrentEventNum(int num)=0
virtual int drainScheduler(int &finishedEvts, bool report)=0
AthenaInterprocess::SharedQueue * m_sharedEventQueue
SmartIF< IEvtSelectorSeek > m_evtSelSeek
int ir
counter of the current depth
Definition fastadd.cxx:49
::StatusCode StatusCode
StatusCode definition for legacy code.

◆ fin_func()

std::unique_ptr< AthenaInterprocess::ScheduledWork > SharedHiveEvtQueueConsumer::fin_func ( )
overridevirtual

Implements AthenaMPToolBase.

Definition at line 515 of file SharedHiveEvtQueueConsumer.cxx.

516{
517 ATH_MSG_INFO("Fin function in the AthenaMP worker PID=" << getpid());
518
519 bool all_ok(true);
520
521 if(m_appMgr->stop().isFailure()) {
522 ATH_MSG_ERROR("Unable to stop AppMgr");
523 all_ok=false;
524 } else {
525 if(m_appMgr->finalize().isFailure()) {
526 std::cerr << "Unable to finalize AppMgr" << std::endl;
527 all_ok=false;
528 }
529 }
530
531 std::unique_ptr<AthenaInterprocess::ScheduledWork> outwork(new AthenaInterprocess::ScheduledWork);
532
533 // Return value: "ERRCODE|Func_Flag|NEvt" (Here NEvt=-1)
534 int outsize = 2*sizeof(int)+sizeof(AthenaMPToolBase::Func_Flag);
535 void* outdata = CxxUtils::xmalloc(outsize);
536 *(int*)(outdata) = (all_ok?0:1); // Error code: for now use 0 success, 1 failure
538 memcpy((char*)outdata+sizeof(int),&func,sizeof(func));
539 int nEvt = -1;
540 memcpy((char*)outdata+sizeof(int)+sizeof(func),&nEvt,sizeof(int));
541
542 outwork->data = outdata;
543 outwork->size = outsize;
544
545 return outwork;
546}
ServiceHandle< IAppMgrUI > m_appMgr

◆ finalize()

StatusCode SharedHiveEvtQueueConsumer::finalize ( )
overridevirtual

Reimplemented from AthenaMPToolBase.

Definition at line 85 of file SharedHiveEvtQueueConsumer.cxx.

86{
87 if (m_evtContext) {
88 ATH_CHECK( evtSelector()->releaseContext (m_evtContext) );
89 m_evtContext = nullptr;
90 }
91
92 return StatusCode::SUCCESS;
93}
IEvtSelector * evtSelector()

◆ fmterror()

std::string AthenaMPToolBase::fmterror ( int errnum)
protectedinherited

Definition at line 333 of file AthenaMPToolBase.cxx.

334{
335 char buf[256];
336 strerror_r(errnum, buf, sizeof(buf));
337 return std::string(buf);
338}

◆ generateOutputReport()

AthenaMP::AllWorkerOutputs_ptr AthenaMPToolBase::generateOutputReport ( )
overridevirtualinherited

Reimplemented in EvtRangeProcessor, EvtRangeScatterer, and SharedWriterTool.

Definition at line 119 of file AthenaMPToolBase.cxx.

120{
122
123 if(m_fileMgrLog.empty()) {
124 ATH_MSG_WARNING(name() << " cannot make output report because FileMgr has not been configured to write log file!");
125 }
126 else {
127 // Collect output files made by the workers
128 std::string line;
129 for(int i=0;i<m_nprocs;++i) {
130 // Get the name of FileMgr log
131 std::ostringstream workindex;
132 workindex<<i;
133 std::filesystem::path logFilePath(m_subprocTopDir);
134 logFilePath /= std::filesystem::path(m_subprocDirPrefix+workindex.str());
135 std::filesystem::path logFile(logFilePath);
136 logFile /= std::filesystem::path(m_fileMgrLog);
137 if(!(std::filesystem::exists(logFile)&&std::filesystem::is_regular_file(logFile))) {
138 ATH_MSG_WARNING(logFile.string() << " either does not exist or is not a regular file. Skipping");
139 continue;
140 }
141
142 ATH_MSG_DEBUG("FileMgr log file (" << i << ") " << logFile);
143
144 std::ifstream inpStream(logFile.string().c_str());
145 std::set<std::string> reportedFiles; // Don't report the same file twice
146 while(!inpStream.eof()) {
147 std::getline(inpStream,line);
148 if(line.find("WRITE")!=std::string::npos) {
149 // Parse the entry
150 size_t startpos(0);
151 std::vector<std::string> entries;
152 while(startpos<line.size()) {
153 while(line[startpos]==' ')
154 startpos++;
155
156 size_t endpos = line.find(' ',startpos);
157 if(endpos==std::string::npos) endpos = line.size();
158 entries.push_back(line.substr(startpos,endpos-startpos));
159 startpos=endpos+1;
160 }
161
162 // enties[0] is filename
163 std::filesystem::path filenamePath(entries[0]);
164 std::filesystem::path basename = filenamePath.filename();
165 if(reportedFiles.find(basename.string())==reportedFiles.end())
166 reportedFiles.insert(basename.string());
167 else
168 continue;
169 std::filesystem::path absolutename = basename.is_absolute() ? basename : std::filesystem::absolute(std::filesystem::path(logFilePath)/=basename);
170 AthenaMP::AllWorkerOutputsIterator it1 = jobOutputs->find(basename.string());
171 if(it1==jobOutputs->end()) {
172 (*jobOutputs)[basename.string()] = AthenaMP::SingleWorkerOutputs();
173 (*jobOutputs)[basename.string()].reserve(m_nprocs);
174 }
175
176 AthenaMP::WorkerOutput newOutput;
177 newOutput.filename = absolutename.string();
178 newOutput.technology = entries[1];
179 newOutput.description = entries[2];
180 newOutput.access_mode = entries[3];
181 newOutput.shared = (line.find("SHARED")!=std::string::npos);
182
183 (*jobOutputs)[basename.string()].emplace_back(std::move(newOutput));
184 }
185 }
186 }
187 }
188 return jobOutputs;
189}
#define ATH_MSG_WARNING(x)
std::string m_fileMgrLog
int m_nprocs
Number of workers spawned by the master process.
double entries
Definition listroot.cxx:49
std::map< std::string, SingleWorkerOutputs > AllWorkerOutputs
std::unique_ptr< AllWorkerOutputs > AllWorkerOutputs_ptr
AllWorkerOutputs::iterator AllWorkerOutputsIterator
std::vector< WorkerOutput > SingleWorkerOutputs
std::string basename(std::string name)
Definition utils.cxx:207

◆ handleSavedPfc()

int AthenaMPToolBase::handleSavedPfc ( const std::filesystem::path & dest_path)
protectedinherited

Definition at line 396 of file AthenaMPToolBase.cxx.

397{
398 if(std::filesystem::is_regular_file("PoolFileCatalog.xml.AthenaMP-saved"))
399 COPY_FILE_HACK("PoolFileCatalog.xml.AthenaMP-saved",dest_path.string()+"/PoolFileCatalog.xml");
400 return 0;
401}

◆ initHive()

StatusCode SharedHiveEvtQueueConsumer::initHive ( )
private

Definition at line 614 of file SharedHiveEvtQueueConsumer.cxx.

614 {
615
616 if (m_evtProcessor.release().isFailure()) {
617 ATH_MSG_INFO("could not release old EventProcessor ");
618 }
619
620 ISvcManager* pISM(dynamic_cast<ISvcManager*>(serviceLocator().get()));
621 if (pISM == 0) {
622 ATH_MSG_ERROR("initHive: Could not get SvcManager");
623 } else {
624 if (pISM->removeService(m_evtProcessor.name()).isFailure()) {
625 ATH_MSG_ERROR("initHive: could not remove " << m_evtProcessor.name()
626 << " from SvcManager");
627 }
628 }
629
630 m_evtProcessor = ServiceHandle<IEventProcessor>("AthenaMtesEventLoopMgr",name());
631
632 if (m_evtProcessor.retrieve().isFailure()) {
633 ATH_MSG_ERROR("could not setup " << m_evtProcessor.typeAndName());
634 return StatusCode::FAILURE;
635 }
636
637 m_schedulerSvc = serviceLocator()->service("AvalancheSchedulerSvc");
638
639 // m_whiteboard = serviceLocator()->service(m_whiteboardName);
640 // if( !m_whiteboard.isValid() ) {
641 // ATH_MSG_FATAL( "Error retrieving " << m_whiteboardName
642 // << " interface IHiveWhiteBoard." );
643 // return StatusCode::FAILURE;
644 // }
645
646 // m_schedulerSvc = serviceLocator()->service(m_schedulerName);
647 // if ( !m_schedulerSvc.isValid()){
648 // ATH_MSG_FATAL( "Error retrieving SchedulerSvc interface ISchedulerSvc." );
649 // return StatusCode::FAILURE;
650 // }
651 // // Setup algorithm resource pool
652 // m_algResourcePool = serviceLocator()->service("AlgResourcePool");
653 // if( !m_algResourcePool.isValid() ) {
654 // ATH_MSG_FATAL ("Error retrieving AlgResourcePool");
655 // return StatusCode::FAILURE;
656 // }
657
658 // sc = m_eventStore.retrieve();
659 // if( !sc.isSuccess() ) {
660 // ATH_MSG_FATAL("Error retrieving pointer to StoreGateSvc");
661 // return sc;
662 // }
663
664
665 return StatusCode::SUCCESS;
666
667}
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
Definition hcg.cxx:130

◆ initialize()

StatusCode SharedHiveEvtQueueConsumer::initialize ( )
overridevirtual

Reimplemented from AthenaMPToolBase.

Definition at line 59 of file SharedHiveEvtQueueConsumer.cxx.

60{
61 ATH_MSG_DEBUG("In initialize");
62
64
65 m_evtSelSeek = serviceLocator()->service(m_evtSelName);
66 ATH_CHECK( m_evtSelSeek.isValid() );
67 ATH_CHECK( evtSelector()->createContext (m_evtContext) );
68
69 ATH_CHECK(m_chronoStatSvc.retrieve());
70
72 m_dataShare = SmartIF<IDataShare>(serviceLocator()->service("AthenaPoolSharedIOCnvSvc"));
73 if(!m_dataShare) {
74 ATH_MSG_ERROR("Error retrieving AthenaPoolSharedIOCnvSvc");
75 return StatusCode::FAILURE;
76 }
77 }
78
79 return StatusCode::SUCCESS;
80}
std::string m_evtSelName
Name of the event selector.
virtual StatusCode initialize() override

◆ killChildren()

void AthenaMPToolBase::killChildren ( )
overridevirtualinherited

Definition at line 201 of file AthenaMPToolBase.cxx.

202{
203 for(const AthenaInterprocess::Process& child : m_processGroup->getChildren()) {
204 kill(child.getProcessID(),SIGKILL);
205 }
206}
AthenaInterprocess::ProcessGroup * m_processGroup

◆ operator()

virtual std::unique_ptr< ScheduledWork > AthenaInterprocess::IMessageDecoder::operator ( ) const &
pure virtualinherited

◆ redirectLog()

int AthenaMPToolBase::redirectLog ( const std::string & rundir,
bool addTimeStamp = true )
protectedinherited

Definition at line 269 of file AthenaMPToolBase.cxx.

270{
271 // Redirect both stdout and stderr to the same file AthenaMP.log
272 int dup2result1(0), dup2result2(0);
273
274 int newout = open(std::string(rundir+"/AthenaMP.log").c_str(),O_CREAT | O_RDWR, S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
275 if(newout==-1) {
276 ATH_MSG_ERROR("Unable to open log file in the run directory. " << fmterror(errno));
277 return -1;
278 }
279 dup2result1 = dup2(newout, STDOUT_FILENO);
280 dup2result2 = dup2(newout, STDERR_FILENO);
281 TEMP_FAILURE_RETRY(close(newout));
282 if(dup2result1==-1) {
283 ATH_MSG_ERROR("Unable to redirect standard output. " << fmterror(errno));
284 return -1;
285 }
286 if(dup2result2==-1) {
287 ATH_MSG_ERROR("Unable to redirect standard error. " << fmterror(errno));
288 return -1;
289 }
290
291 if(addTimeStamp) {
292 SmartIF<IProperty> propertyServer(msgSvc());
293 if(propertyServer==0) {
294 ATH_MSG_ERROR("Unable to cast message svc to IProperty");
295 return -1;
296 }
297
298 std::string propertyName("Format");
299 std::string oldFormat("");
300 StringProperty formatProp(propertyName,oldFormat);
301 StatusCode sc = propertyServer->getProperty(&formatProp);
302 if(sc.isFailure()) {
303 ATH_MSG_WARNING("Message Service does not have Format property");
304 }
305 else {
306 oldFormat = formatProp.value();
307 if(oldFormat.find("%t")==std::string::npos) {
308 // Add time stamps
309 std::string newFormat("%t " + oldFormat);
310 StringProperty newFormatProp(std::move(propertyName),newFormat);
311 ATH_CHECK(propertyServer->setProperty(newFormatProp), -1);
312 }
313 else {
314 ATH_MSG_DEBUG("MsgSvc format already contains timestamps. Nothing to be done");
315 }
316 }
317 }
318
319 return 0;
320}
msgSvc
Provide convenience handles for various services.
Definition StdJOSetup.py:36
@ open
Definition BinningType.h:40

◆ reopenFd()

int AthenaMPToolBase::reopenFd ( int fd,
const std::string & name )
privateinherited

Definition at line 419 of file AthenaMPToolBase.cxx.

420{
421 ATH_MSG_DEBUG("Attempting to reopen descriptor for " << name);
422 int old_openflags = fcntl(fd,F_GETFL,0);
423 switch(old_openflags & O_ACCMODE) {
424 case O_RDONLY: {
425 ATH_MSG_DEBUG("The File Access Mode is RDONLY");
426 break;
427 }
428 case O_WRONLY: {
429 ATH_MSG_DEBUG("The File Access Mode is WRONLY");
430 break;
431 }
432 case O_RDWR: {
433 ATH_MSG_DEBUG("The File Access Mode is RDWR");
434 break;
435 }
436 }
437
438 int old_descflags = fcntl(fd,F_GETFD,0);
439 off_t oldpos = lseek(fd,0,SEEK_CUR);
440 if(oldpos==-1) {
441 if(errno==ESPIPE) {
442 ATH_MSG_WARNING("Dealing with PIPE. Skipping ... (FIXME!)");
443 }
444 else {
445 ATH_MSG_ERROR("When re-opening file descriptors lseek failed on " << name << ". " << fmterror(errno));
446 return -1;
447 }
448 }
449 else {
450 Io::Fd newfd = open(name.c_str(),old_openflags);
451 if(newfd==-1) {
452 ATH_MSG_ERROR("When re-opening file descriptors unable to open " << name << " for reading. " << fmterror(errno));
453 return -1;
454 }
455 if(lseek(newfd,oldpos,SEEK_SET)==-1){
456 ATH_MSG_ERROR("When re-opening file descriptors lseek failed on the newly opened " << name << ". " << fmterror(errno));
457 TEMP_FAILURE_RETRY(close(newfd));
458 return -1;
459 }
460 TEMP_FAILURE_RETRY(close(fd));
461 if(dup2(newfd,fd)==-1) {
462 ATH_MSG_ERROR("When re-opening file descriptors unable to duplicate descriptor for " << name << ". " << fmterror(errno));
463 TEMP_FAILURE_RETRY(close(newfd));
464 return -1;
465 }
466 if(fcntl(fd,F_SETFD,old_descflags)==-1) {
467 ATH_MSG_ERROR("When re-opening file descriptors unable to set descriptor flags for " << name << ". " << fmterror(errno));
468 TEMP_FAILURE_RETRY(close(newfd));
469 return -1;
470 }
471 TEMP_FAILURE_RETRY(close(newfd));
472 }
473 return 0;
474}

◆ reopenFds()

int AthenaMPToolBase::reopenFds ( )
protectedinherited

Definition at line 340 of file AthenaMPToolBase.cxx.

341{
342 // Reopen file descriptors.
343 // First go over all open files, which have been registered with the FileMgr
344 // Then also check the FdsRegistry, in case it contains some files not registered with the FileMgr
345 std::set<int> fdLog;
346
347 // Query the FileMgr contents
348 std::vector<const Io::FileAttr*> filemgrFiles;
349 std::vector<const Io::FileAttr*>::const_iterator itFile;
350 unsigned filenum = m_fileMgr->getFiles(filemgrFiles); // Get attributes for open files only. We don't care about closed ones at this point
351 if(filenum!=filemgrFiles.size())
352 ATH_MSG_WARNING("getFiles returned " << filenum << " while vector size is " << filemgrFiles.size());
353
354 for(itFile=filemgrFiles.begin();itFile!=filemgrFiles.end();++itFile) {
355 ATH_MSG_DEBUG("* " << **itFile);
356 const std::string& filename = (**itFile).name();
357 Io::Fd fd = (**itFile).fd();
358
359 if(fd==-1) {
360 // It is legal to have fd=-1 for remote inputs
361 // On the other hand, these inputs should not remain open after fork. The issue being tracked at ATEAM-434.
362 // So, this hopefully is a temporary patch
363 ATH_MSG_WARNING("FD=-1 detected on an open file retrieved from FileMgr. Skip FD reopening. File name: " << filename);
364 continue;
365 }
366
367 if(reopenFd(fd,filename))
368 return -1;
369
370 fdLog.insert(fd);
371 }
372
373 // Check the FdsRegistry
374 for(const AthenaInterprocess::FdsRegistryEntry& regEntry : *m_fdsRegistry) {
375 if(fdLog.find(regEntry.fd)!=fdLog.end()) {
376 ATH_MSG_DEBUG("The file from FdsRegistry " << regEntry.name << " was registered with FileMgr. Skip reopening");
377 }
378 else {
379 ATH_MSG_WARNING("The file " << regEntry.name << " has not been registered with the FileMgr!");
380
381 if(regEntry.fd==-1) {
382 // Same protection as the one above
383 ATH_MSG_WARNING("FD=-1 detected on an open file retrieved from FD Registry. Skip FD reopening. File name: " << regEntry.name);
384 continue;
385 }
386
387 if(reopenFd(regEntry.fd,regEntry.name))
388 return -1;
389
390 fdLog.insert(regEntry.fd);
391 }
392 }
393 return 0;
394}
int reopenFd(int fd, const std::string &name)
std::shared_ptr< AthenaInterprocess::FdsRegistry > m_fdsRegistry
ServiceHandle< IFileMgr > m_fileMgr

◆ reportSubprocessStatuses()

void SharedHiveEvtQueueConsumer::reportSubprocessStatuses ( )
overridevirtual

Reimplemented from AthenaMPToolBase.

Definition at line 189 of file SharedHiveEvtQueueConsumer.cxx.

190{
191 ATH_MSG_INFO("Statuses of event processors");
192 const std::vector<AthenaInterprocess::ProcessStatus>& statuses = m_processGroup->getStatuses();
193 for(size_t i=0; i<statuses.size(); ++i) {
194 // Get the number of events processed by this worker
195 std::map<pid_t,int>::const_iterator it = m_nProcessedEvents.find(statuses[i].pid);
196 msg(MSG::INFO) << "*** Process PID=" << statuses[i].pid
197 << ". Status " << ((statuses[i].exitcode)?"FAILURE":"SUCCESS")
198 << ". Number of events processed: ";
199 if(it==m_nProcessedEvents.end())
200 msg(MSG::INFO) << "N/A" << endmsg;
201 else
202 msg(MSG::INFO) << it->second << endmsg;
203 }
204}
#define endmsg
std::map< pid_t, int > m_nProcessedEvents
list statuses
MsgStream & msg
Definition testRead.cxx:32

◆ setMaxEvt()

virtual void AthenaMPToolBase::setMaxEvt ( int maxEvt)
inlineoverridevirtualinherited

Definition at line 44 of file AthenaMPToolBase.h.

44{m_maxEvt=maxEvt;}
int m_maxEvt
Maximum number of events assigned to the job.

◆ setMPRunStop()

virtual void AthenaMPToolBase::setMPRunStop ( const AthenaInterprocess::IMPRunStop * runStop)
inlineoverridevirtualinherited

Definition at line 45 of file AthenaMPToolBase.h.

45{m_mpRunStop=runStop;}
const AthenaInterprocess::IMPRunStop * m_mpRunStop

◆ setRandString()

void AthenaMPToolBase::setRandString ( const std::string & randStr)
overridevirtualinherited

Definition at line 196 of file AthenaMPToolBase.cxx.

197{
198 m_randStr = randStr;
199}

◆ subProcessLogs()

void SharedHiveEvtQueueConsumer::subProcessLogs ( std::vector< std::string > & filenames)
overridevirtual

Definition at line 209 of file SharedHiveEvtQueueConsumer.cxx.

210{
211 filenames.clear();
212 for(int i=0; i<m_nprocs; ++i) {
213 std::ostringstream workerIndex;
214 workerIndex << i;
215 std::filesystem::path worker_rundir(m_subprocTopDir);
216 worker_rundir /= std::filesystem::path(m_subprocDirPrefix+workerIndex.str());
217 filenames.push_back(worker_rundir.string()+std::string("/AthenaMP.log"));
218 }
219}
list filenames
Definition grepfile.py:34

◆ updateIoReg()

int AthenaMPToolBase::updateIoReg ( const std::string & rundir)
protectedinherited

Definition at line 322 of file AthenaMPToolBase.cxx.

323{
324 ATH_CHECK(m_ioMgr.retrieve(), -1);
325
326 // update the IoRegistry for the new workdir - make sure we use absolute path
327 std::filesystem::path abs_rundir = std::filesystem::absolute(rundir);
328 ATH_CHECK(m_ioMgr->io_update_all(abs_rundir.string()), -1);
329
330 return 0;
331}

◆ useFdsRegistry()

void AthenaMPToolBase::useFdsRegistry ( std::shared_ptr< AthenaInterprocess::FdsRegistry > registry)
overridevirtualinherited

Definition at line 191 of file AthenaMPToolBase.cxx.

192{
193 m_fdsRegistry = std::move(registry);
194}

◆ waitForSignal()

void AthenaMPToolBase::waitForSignal ( )
protectedinherited

Definition at line 403 of file AthenaMPToolBase.cxx.

404{
405 ATH_MSG_INFO("Bootstrap worker PID " << getpid() << " - waiting for SIGUSR1");
406 sigset_t mask, oldmask;
407
409
410 sigemptyset (&mask);
411 sigaddset (&mask, SIGUSR1);
412
413 sigprocmask (SIG_BLOCK, &mask, &oldmask);
415 sigsuspend (&oldmask);
416 sigprocmask (SIG_UNBLOCK, &mask, NULL);
417}
std::atomic< bool > sig_done

Member Data Documentation

◆ m_appMgr

ServiceHandle<IAppMgrUI> AthenaMPToolBase::m_appMgr
protectedinherited

Definition at line 95 of file AthenaMPToolBase.h.

◆ m_chronoStatSvc

ServiceHandle<IChronoStatSvc> SharedHiveEvtQueueConsumer::m_chronoStatSvc
private

Definition at line 72 of file SharedHiveEvtQueueConsumer.h.

◆ m_dataShare

SmartIF<IDataShare> SharedHiveEvtQueueConsumer::m_dataShare
private

Definition at line 73 of file SharedHiveEvtQueueConsumer.h.

◆ m_debug

Gaudi::Property<bool> SharedHiveEvtQueueConsumer::m_debug
private
Initial value:
{
this, "Debug", false,
"Perform extra debugging if true. The default is false."}

Definition at line 61 of file SharedHiveEvtQueueConsumer.h.

61 {
62 this, "Debug", false,
63 "Perform extra debugging if true. The default is false."};

◆ m_evtContext

IEvtSelector::Context* SharedHiveEvtQueueConsumer::m_evtContext {}
private

Definition at line 75 of file SharedHiveEvtQueueConsumer.h.

75{};

◆ m_evtProcessor

ServiceHandle<IEventProcessor> AthenaMPToolBase::m_evtProcessor
protectedinherited

Definition at line 94 of file AthenaMPToolBase.h.

◆ m_evtSelector

SmartIF<IEvtSelector> AthenaMPToolBase::m_evtSelector
protectedinherited

Definition at line 98 of file AthenaMPToolBase.h.

◆ m_evtSelName

std::string AthenaMPToolBase::m_evtSelName
protectedinherited

Name of the event selector.

Definition at line 89 of file AthenaMPToolBase.h.

◆ m_evtSelSeek

SmartIF<IEvtSelectorSeek> SharedHiveEvtQueueConsumer::m_evtSelSeek
private

Definition at line 74 of file SharedHiveEvtQueueConsumer.h.

◆ m_fdsRegistry

std::shared_ptr<AthenaInterprocess::FdsRegistry> AthenaMPToolBase::m_fdsRegistry
protectedinherited

Definition at line 100 of file AthenaMPToolBase.h.

◆ m_fileMgr

ServiceHandle<IFileMgr> AthenaMPToolBase::m_fileMgr
protectedinherited

Definition at line 96 of file AthenaMPToolBase.h.

◆ m_fileMgrLog

std::string AthenaMPToolBase::m_fileMgrLog
protectedinherited

Definition at line 99 of file AthenaMPToolBase.h.

◆ m_finQueue

std::queue<pid_t> SharedHiveEvtQueueConsumer::m_finQueue
private

Definition at line 81 of file SharedHiveEvtQueueConsumer.h.

◆ m_ioMgr

ServiceHandle<IIoComponentMgr> AthenaMPToolBase::m_ioMgr
protectedinherited

Definition at line 97 of file AthenaMPToolBase.h.

◆ m_isPileup

Gaudi::Property<bool> AthenaMPToolBase::m_isPileup {this, "IsPileup", false, "Flag for configuring PileUpEventLoopMgr"}
protectedinherited

Definition at line 103 of file AthenaMPToolBase.h.

103{this, "IsPileup", false, "Flag for configuring PileUpEventLoopMgr"};

◆ m_maxEvt

int AthenaMPToolBase::m_maxEvt {-1}
protectedinherited

Maximum number of events assigned to the job.

Definition at line 86 of file AthenaMPToolBase.h.

86{-1};

◆ m_mpRunStop

const AthenaInterprocess::IMPRunStop* AthenaMPToolBase::m_mpRunStop {nullptr}
protectedinherited

Definition at line 92 of file AthenaMPToolBase.h.

92{nullptr};

◆ m_nEventsBeforeFork

Gaudi::Property<int> SharedHiveEvtQueueConsumer::m_nEventsBeforeFork
private
Initial value:
{
this, "EventsBeforeFork", 0,
"The number of events before forking the workers. The default is 0."}

Definition at line 57 of file SharedHiveEvtQueueConsumer.h.

57 {
58 this, "EventsBeforeFork", 0,
59 "The number of events before forking the workers. The default is 0."};

◆ m_nProcessedEvents

std::map<pid_t,int> SharedHiveEvtQueueConsumer::m_nProcessedEvents
private

Definition at line 80 of file SharedHiveEvtQueueConsumer.h.

◆ m_nprocs

int AthenaMPToolBase::m_nprocs {-1}
protectedinherited

Number of workers spawned by the master process.

Definition at line 85 of file AthenaMPToolBase.h.

85{-1};

◆ m_processGroup

AthenaInterprocess::ProcessGroup* AthenaMPToolBase::m_processGroup {nullptr}
protectedinherited

Definition at line 91 of file AthenaMPToolBase.h.

91{nullptr};

◆ m_randStr

std::string AthenaMPToolBase::m_randStr
protectedinherited

Definition at line 101 of file AthenaMPToolBase.h.

◆ m_rankId

int SharedHiveEvtQueueConsumer::m_rankId {-1}
private

Definition at line 70 of file SharedHiveEvtQueueConsumer.h.

70{-1}; // Each worker has its own unique RankID from the range (0,...,m_nprocs-1)

◆ m_schedulerSvc

SmartIF<IScheduler> SharedHiveEvtQueueConsumer::m_schedulerSvc
private

Definition at line 83 of file SharedHiveEvtQueueConsumer.h.

◆ m_sharedEventQueue

AthenaInterprocess::SharedQueue* SharedHiveEvtQueueConsumer::m_sharedEventQueue {}
private

Definition at line 77 of file SharedHiveEvtQueueConsumer.h.

77{};

◆ m_sharedRankQueue

std::unique_ptr<AthenaInterprocess::SharedQueue> SharedHiveEvtQueueConsumer::m_sharedRankQueue
private

Definition at line 78 of file SharedHiveEvtQueueConsumer.h.

◆ m_subprocDirPrefix

std::string AthenaMPToolBase::m_subprocDirPrefix
protectedinherited

For ex. "worker__".

Definition at line 88 of file AthenaMPToolBase.h.

◆ m_subprocTopDir

std::string AthenaMPToolBase::m_subprocTopDir
protectedinherited

Top run directory for subprocesses.

Definition at line 87 of file AthenaMPToolBase.h.

◆ m_useSharedWriter

Gaudi::Property<bool> SharedHiveEvtQueueConsumer::m_useSharedWriter
private
Initial value:
{
this, "UseSharedWriter", false,
"Use SharedWriter to merge worker outputs on-the-fly if true. The default is false."}

Definition at line 65 of file SharedHiveEvtQueueConsumer.h.

65 {
66 this, "UseSharedWriter", false,
67 "Use SharedWriter to merge worker outputs on-the-fly if true. The default is false."};

The documentation for this class was generated from the following files: