ATLAS Offline Software
AthenaMPToolBase.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "AthenaMPToolBase.h"
6 #include "copy_file_icc_hack.h"
8 
9 #include "GaudiKernel/IEvtSelector.h"
10 #include "GaudiKernel/IIoComponentMgr.h"
11 #include "GaudiKernel/IFileMgr.h"
12 #include "GaudiKernel/IMessageSvc.h"
13 
14 #include <sys/stat.h>
15 #include <sstream>
16 #include <fstream>
17 #include <unistd.h>
18 #include <stdio.h>
19 #include <stdint.h>
20 #include <signal.h>
21 
22 #include <iterator>
23 #include <filesystem>
24 
25 namespace AthenaMPToolBase_d {
26  std::atomic<bool> sig_done = false;
27  void pauseForDebug(int /*sig*/) {
28  sig_done = true;
29  }
30 }
31 
33  , const std::string& name
34  , const IInterface* parent)
36  , m_nprocs(-1)
37  , m_subprocTopDir("")
38  , m_subprocDirPrefix("") // To be set in the derived classes
39  , m_evtSelName("")
40  , m_processGroup(0)
41  , m_evtProcessor("AthenaEventLoopMgr",name)
42  , m_appMgr("ApplicationMgr",name)
43  , m_fileMgr("FileMgr",name)
44  , m_ioMgr("IoComponentMgr",name)
45  , m_evtSelector(0)
46  , m_fileMgrLog("")
47 {
48  declareInterface<IAthenaMPTool>(this);
49 }
50 
52 {
53 }
54 
56 {
57  ATH_MSG_DEBUG("In initialize");
58 
59  if(m_isPileup) {
60  m_evtProcessor = ServiceHandle<IEventProcessor>("PileUpEventLoopMgr",name());
61  ATH_MSG_INFO("The job running in pileup mode");
62  }
63  else {
64  ATH_MSG_INFO("The job running in non-pileup mode");
65  }
66 
67  ATH_CHECK(m_evtProcessor.retrieve());
68  ATH_CHECK(m_appMgr.retrieve());
69 
70  SmartIF<IProperty> prpMgr(serviceLocator());
71  if(prpMgr.isValid()) {
72  // Get event selector name. Retrieve EventSelector and EventSeek
73  m_evtSelName = prpMgr->getProperty("EvtSel").toString();
74  // If the job runs with no event selector, then the name will be empty
75  if(!m_evtSelName.empty()) {
76  m_evtSelector = serviceLocator()->service(m_evtSelName);
77  ATH_CHECK(m_evtSelector.isValid());
78  }
79  }
80  else {
81  ATH_MSG_ERROR("IProperty interface not found in ApplicationMgr");
82  return StatusCode::FAILURE;
83  }
84 
85  ATH_CHECK(m_fileMgr.retrieve());
86 
87  SmartIF<IProperty> prpMgr1(m_fileMgr.get());
88  if(prpMgr1.isValid()) {
89  m_fileMgrLog = prpMgr1->getProperty("LogFile").toString();
90  }
91  else {
92  ATH_MSG_ERROR("IProperty interface not found in FileMgr");
93  return StatusCode::FAILURE;
94  }
95 
96  return StatusCode::SUCCESS;
97 }
98 
100 {
101  return StatusCode::SUCCESS;
102 }
103 
104 StatusCode AthenaMPToolBase::wait_once(pid_t& pid)
105 {
106  bool flag(true);
108 
109  if(flag) { // Either none of the processes changed its status or one of the processes finished successfully
110  return StatusCode::SUCCESS;
111  }
112  else {
113  if(pid<0) { // Wait failed on the group
114  ATH_MSG_ERROR("Wait failed on the Process Group!");
115  }
116  else {
117  ATH_MSG_WARNING("Abnormal termination of the process PID=" << pid);
118  }
119  return StatusCode::FAILURE;
120  }
121 }
122 
124 {
125  ATH_MSG_INFO("Statuses of sub-processes");
126  const std::vector<AthenaInterprocess::ProcessStatus>& statuses = m_processGroup->getStatuses();
127  for(size_t i=0; i<statuses.size(); ++i)
128  ATH_MSG_INFO("*** Process PID=" << statuses[i].pid << ". Status " << ((statuses[i].exitcode)?"FAILURE":"SUCCESS"));
129 }
130 
132 {
134 
135  if(m_fileMgrLog.empty()) {
136  ATH_MSG_WARNING(name() << " cannot make output report because FileMgr has not been configured to write log file!");
137  }
138  else {
139  // Collect output files made by the workers
140  std::string line;
141  for(int i=0;i<m_nprocs;++i) {
142  // Get the name of FileMgr log
143  std::ostringstream workindex;
144  workindex<<i;
146  logFilePath /= std::filesystem::path(m_subprocDirPrefix+workindex.str());
147  std::filesystem::path logFile(logFilePath);
149  if(!(std::filesystem::exists(logFile)&&std::filesystem::is_regular_file(logFile))) {
150  ATH_MSG_WARNING(logFile.string() << " either does not exist or is not a regular file. Skipping");
151  continue;
152  }
153 
154  ATH_MSG_DEBUG("FileMgr log file (" << i << ") " << logFile);
155 
156  std::ifstream inpStream(logFile.string().c_str());
157  std::set<std::string> reportedFiles; // Don't report the same file twice
158  while(!inpStream.eof()) {
159  std::getline(inpStream,line);
160  if(line.find("WRITE")!=std::string::npos) {
161  // Parse the entry
162  size_t startpos(0);
163  std::vector<std::string> entries;
164  while(startpos<line.size()) {
165  while(line[startpos]==' ')
166  startpos++;
167 
168  size_t endpos = line.find(' ',startpos);
169  if(endpos==std::string::npos) endpos = line.size();
170  entries.push_back(line.substr(startpos,endpos-startpos));
171  startpos=endpos+1;
172  }
173 
174  // enties[0] is filename
175  std::filesystem::path filenamePath(entries[0]);
176  std::filesystem::path basename = filenamePath.filename();
177  if(reportedFiles.find(basename.string())==reportedFiles.end())
178  reportedFiles.insert(basename.string());
179  else
180  continue;
181  std::filesystem::path absolutename = basename.is_absolute() ? basename : std::filesystem::absolute(std::filesystem::path(logFilePath)/=basename);
182  AthenaMP::AllWorkerOutputsIterator it1 = jobOutputs->find(basename.string());
183  if(it1==jobOutputs->end()) {
184  (*jobOutputs)[basename.string()] = AthenaMP::SingleWorkerOutputs();
185  (*jobOutputs)[basename.string()].reserve(m_nprocs);
186  }
187 
188  AthenaMP::WorkerOutput newOutput;
189  newOutput.filename = absolutename.string();
190  newOutput.technology = entries[1];
191  newOutput.description = entries[2];
192  newOutput.access_mode = entries[3];
193  newOutput.shared = (line.find("SHARED")!=std::string::npos);
194 
195  (*jobOutputs)[basename.string()].push_back(newOutput);
196  }
197  }
198  }
199  }
200  return jobOutputs;
201 }
202 
203 void AthenaMPToolBase::useFdsRegistry(std::shared_ptr<AthenaInterprocess::FdsRegistry> registry)
204 {
206 }
207 
208 void AthenaMPToolBase::setRandString(const std::string& randStr)
209 {
210  m_randStr = randStr;
211 }
212 
214 {
216  kill(child.getProcessID(),SIGKILL);
217  }
218 }
219 
220 std::unique_ptr<AthenaInterprocess::ScheduledWork> AthenaMPToolBase::operator()(const AthenaInterprocess::ScheduledWork& param)
221 {
222  std::unique_ptr<AthenaInterprocess::ScheduledWork> outwork;
223  bool all_ok(true);
224 
225  if(param.size==sizeof(Func_Flag)) {
226  Func_Flag flag;
227  memcpy(&flag,param.data,param.size);
228  switch(flag) {
229  case FUNC_BOOTSTRAP:
230  {
231  outwork = bootstrap_func();
232  break;
233  }
234  case FUNC_EXEC:
235  {
236  outwork = exec_func();
237  break;
238  }
239  case FUNC_FIN:
240  {
241  outwork = fin_func();
242  break;
243  }
244  default:
245  {
246  ATH_MSG_ERROR("Unexpected value for the function flag");
247  all_ok = false;
248  }
249  }
250  }
251  else {
252  ATH_MSG_ERROR("Unexpected parameter size");
253  all_ok = false;
254  }
255 
256  if(!all_ok) {
257  outwork = std::unique_ptr<AthenaInterprocess::ScheduledWork>(new AthenaInterprocess::ScheduledWork);
258  outwork->data = malloc(sizeof(int));
259  *(int*)(outwork->data) = 1; // Error code: for now use 0 success, 1 failure
260  outwork->size = sizeof(int);
261  }
262 
263  return outwork;
264 }
265 
266 int AthenaMPToolBase::mapAsyncFlag(Func_Flag flag, pid_t pid)
267 {
269  params.data = (void*)(&flag);
270  params.size = sizeof(flag);
271  if(m_processGroup->map_async(this,&params,pid)){
272  if(pid)
273  ATH_MSG_ERROR("Unable to map the flag on subprocess pid=" << pid);
274  else
275  ATH_MSG_ERROR("Unable to map the flag on all subprocesses in the group");
276  return -1;
277  }
278  return 0;
279 }
280 
281 int AthenaMPToolBase::redirectLog(const std::string& rundir, bool addTimeStamp)
282 {
283  // Redirect both stdout and stderr to the same file AthenaMP.log
284  int dup2result1(0), dup2result2(0);
285 
286  int newout = open(std::string(rundir+"/AthenaMP.log").c_str(),O_CREAT | O_RDWR, S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
287  if(newout==-1) {
288  ATH_MSG_ERROR("Unable to open log file in the run directory. " << fmterror(errno));
289  return -1;
290  }
291  dup2result1 = dup2(newout, STDOUT_FILENO);
292  dup2result2 = dup2(newout, STDERR_FILENO);
293  TEMP_FAILURE_RETRY(close(newout));
294  if(dup2result1==-1) {
295  ATH_MSG_ERROR("Unable to redirect standard output. " << fmterror(errno));
296  return -1;
297  }
298  if(dup2result2==-1) {
299  ATH_MSG_ERROR("Unable to redirect standard error. " << fmterror(errno));
300  return -1;
301  }
302 
303  if(addTimeStamp) {
304  SmartIF<IProperty> propertyServer(msgSvc());
305  if(propertyServer==0) {
306  ATH_MSG_ERROR("Unable to cast message svc to IProperty");
307  return -1;
308  }
309 
310  std::string propertyName("Format");
311  std::string oldFormat("");
312  StringProperty formatProp(propertyName,oldFormat);
313  StatusCode sc = propertyServer->getProperty(&formatProp);
314  if(sc.isFailure()) {
315  ATH_MSG_WARNING("Message Service does not have Format property");
316  }
317  else {
318  oldFormat = formatProp.value();
319  if(oldFormat.find("%t")==std::string::npos) {
320  // Add time stamps
321  std::string newFormat("%t " + oldFormat);
322  StringProperty newFormatProp(propertyName,newFormat);
323  if(propertyServer->setProperty(newFormatProp).isFailure()) {
324  ATH_MSG_ERROR("Unable to set new Format property on the Message Service");
325  return -1;
326  }
327  }
328  else {
329  ATH_MSG_DEBUG("MsgSvc format already contains timestamps. Nothing to be done");
330  }
331  }
332  }
333 
334  return 0;
335 }
336 
337 int AthenaMPToolBase::updateIoReg(const std::string& rundir)
338 {
339  if (!m_ioMgr.retrieve().isSuccess()) {
340  ATH_MSG_ERROR("Error retrieving IoComponentMgr");
341  return -1;
342  } else {
343  ATH_MSG_DEBUG("Successfully retrieved IoComponentMgr");
344  }
345 
346  // update the IoRegistry for the new workdir - make sure we use absolute path
348  if(!m_ioMgr->io_update_all(abs_rundir.string()).isSuccess()) {
349  ATH_MSG_ERROR("Error updating IoRegistry");
350  return -1;
351  } else {
352  ATH_MSG_DEBUG("Successfully updated IoRegistry");
353  }
354 
355  return 0;
356 }
357 
358 std::string AthenaMPToolBase::fmterror(int errnum)
359 {
360  char buf[256];
361  strerror_r(errnum, buf, sizeof(buf));
362  return std::string(buf);
363 }
364 
366 {
367  // Reopen file descriptors.
368  // First go over all open files, which have been registered with the FileMgr
369  // Then also check the FdsRegistry, in case it contains some files not registered with the FileMgr
370  std::set<int> fdLog;
371 
372  // Query the FileMgr contents
373  std::vector<const Io::FileAttr*> filemgrFiles;
374  std::vector<const Io::FileAttr*>::const_iterator itFile;
375  unsigned filenum = m_fileMgr->getFiles(filemgrFiles); // Get attributes for open files only. We don't care about closed ones at this point
376  if(filenum!=filemgrFiles.size())
377  ATH_MSG_WARNING("getFiles returned " << filenum << " while vector size is " << filemgrFiles.size());
378 
379  for(itFile=filemgrFiles.begin();itFile!=filemgrFiles.end();++itFile) {
380  ATH_MSG_DEBUG("* " << **itFile);
381  const std::string& filename = (**itFile).name();
382  Io::Fd fd = (**itFile).fd();
383 
384  if(fd==-1) {
385  // It is legal to have fd=-1 for remote inputs
386  // On the other hand, these inputs should not remain open after fork. The issue being tracked at ATEAM-434.
387  // So, this hopefully is a temporary patch
388  ATH_MSG_WARNING("FD=-1 detected on an open file retrieved from FileMgr. Skip FD reopening. File name: " << filename);
389  continue;
390  }
391 
392  if(reopenFd(fd,filename))
393  return -1;
394 
395  fdLog.insert(fd);
396  }
397 
398  // Check the FdsRegistry
399  for(const AthenaInterprocess::FdsRegistryEntry& regEntry : *m_fdsRegistry) {
400  if(fdLog.find(regEntry.fd)!=fdLog.end()) {
401  ATH_MSG_DEBUG("The file from FdsRegistry " << regEntry.name << " was registered with FileMgr. Skip reopening");
402  }
403  else {
404  ATH_MSG_WARNING("The file " << regEntry.name << " has not been registered with the FileMgr!");
405 
406  if(regEntry.fd==-1) {
407  // Same protection as the one above
408  ATH_MSG_WARNING("FD=-1 detected on an open file retrieved from FD Registry. Skip FD reopening. File name: " << regEntry.name);
409  continue;
410  }
411 
412  if(reopenFd(regEntry.fd,regEntry.name))
413  return -1;
414 
415  fdLog.insert(regEntry.fd);
416  }
417  }
418  return 0;
419 }
420 
422 {
423  if(std::filesystem::is_regular_file("PoolFileCatalog.xml.AthenaMP-saved"))
424  COPY_FILE_HACK("PoolFileCatalog.xml.AthenaMP-saved",dest_path.string()+"/PoolFileCatalog.xml");
425  return 0;
426 }
427 
429 {
430  ATH_MSG_INFO("Bootstrap worker PID " << getpid() << " - waiting for SIGUSR1");
431  sigset_t mask, oldmask;
432 
434 
435  sigemptyset (&mask);
436  sigaddset (&mask, SIGUSR1);
437 
438  sigprocmask (SIG_BLOCK, &mask, &oldmask);
440  sigsuspend (&oldmask);
441  sigprocmask (SIG_UNBLOCK, &mask, NULL);
442 }
443 
444 int AthenaMPToolBase::reopenFd(int fd, const std::string& name)
445 {
446  ATH_MSG_DEBUG("Attempting to reopen descriptor for " << name);
447  int old_openflags = fcntl(fd,F_GETFL,0);
448  switch(old_openflags & O_ACCMODE) {
449  case O_RDONLY: {
450  ATH_MSG_DEBUG("The File Access Mode is RDONLY");
451  break;
452  }
453  case O_WRONLY: {
454  ATH_MSG_DEBUG("The File Access Mode is WRONLY");
455  break;
456  }
457  case O_RDWR: {
458  ATH_MSG_DEBUG("The File Access Mode is RDWR");
459  break;
460  }
461  }
462 
463  int old_descflags = fcntl(fd,F_GETFD,0);
464  off_t oldpos = lseek(fd,0,SEEK_CUR);
465  if(oldpos==-1) {
466  if(errno==ESPIPE) {
467  ATH_MSG_WARNING("Dealing with PIPE. Skipping ... (FIXME!)");
468  }
469  else {
470  ATH_MSG_ERROR("When re-opening file descriptors lseek failed on " << name << ". " << fmterror(errno));
471  return -1;
472  }
473  }
474  else {
475  Io::Fd newfd = open(name.c_str(),old_openflags);
476  if(newfd==-1) {
477  ATH_MSG_ERROR("When re-opening file descriptors unable to open " << name << " for reading. " << fmterror(errno));
478  return -1;
479  }
480  if(lseek(newfd,oldpos,SEEK_SET)==-1){
481  ATH_MSG_ERROR("When re-opening file descriptors lseek failed on the newly opened " << name << ". " << fmterror(errno));
482  TEMP_FAILURE_RETRY(close(newfd));
483  return -1;
484  }
485  TEMP_FAILURE_RETRY(close(fd));
486  if(dup2(newfd,fd)==-1) {
487  ATH_MSG_ERROR("When re-opening file descriptors unable to duplicate descriptor for " << name << ". " << fmterror(errno));
488  TEMP_FAILURE_RETRY(close(newfd));
489  return -1;
490  }
491  if(fcntl(fd,F_SETFD,old_descflags)==-1) {
492  ATH_MSG_ERROR("When re-opening file descriptors unable to set descriptor flags for " << name << ". " << fmterror(errno));
493  TEMP_FAILURE_RETRY(close(newfd));
494  return -1;
495  }
496  TEMP_FAILURE_RETRY(close(newfd));
497  }
498  return 0;
499 }
AthenaMPToolBase::killChildren
virtual void killChildren() override
Definition: AthenaMPToolBase.cxx:213
python.Dso.registry
registry
Definition: Control/AthenaServices/python/Dso.py:159
python.DQPostProcessMod.rundir
def rundir(fname)
Definition: DQPostProcessMod.py:116
pid_t
int32_t pid_t
Definition: FPGATrackSimTypes.h:19
AthenaInterprocess::ProcessGroup::getStatuses
const std::vector< ProcessStatus > & getStatuses() const
Definition: ProcessGroup.cxx:204
AthenaMPToolBase::waitForSignal
void waitForSignal()
Definition: AthenaMPToolBase.cxx:428
checkFileSG.line
line
Definition: checkFileSG.py:75
AthenaMPToolBase::fin_func
virtual std::unique_ptr< AthenaInterprocess::ScheduledWork > fin_func()=0
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:128
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthenaMPToolBase_d
Definition: AthenaMPToolBase.cxx:25
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
AthenaMP::WorkerOutput::description
std::string description
Definition: IAthenaMPTool.h:20
AthenaInterprocess::ScheduledWork::size
int size
Definition: IMessageDecoder.h:14
AthenaMPToolBase::m_processGroup
AthenaInterprocess::ProcessGroup * m_processGroup
Definition: AthenaMPToolBase.h:88
AthenaMPToolBase::~AthenaMPToolBase
virtual ~AthenaMPToolBase() override
Definition: AthenaMPToolBase.cxx:51
AthenaInterprocess::ScheduledWork
Definition: IMessageDecoder.h:12
AthenaMPToolBase::exec_func
virtual std::unique_ptr< AthenaInterprocess::ScheduledWork > exec_func()=0
AthenaMPToolBase::m_randStr
std::string m_randStr
Definition: AthenaMPToolBase.h:97
AthenaMPToolBase::m_nprocs
int m_nprocs
Definition: AthenaMPToolBase.h:83
AthenaMPToolBase::FUNC_FIN
@ FUNC_FIN
Definition: AthenaMPToolBase.h:68
AthenaInterprocess::ProcessGroup::getChildren
const std::vector< Process > & getChildren() const
Definition: ProcessGroup.cxx:197
AthenaMPToolBase::setRandString
virtual void setRandString(const std::string &randStr) override
Definition: AthenaMPToolBase.cxx:208
plotting.yearwise_luminosity.absolute
absolute
Definition: yearwise_luminosity.py:29
AthenaMPToolBase::fmterror
std::string fmterror(int errnum)
Definition: AthenaMPToolBase.cxx:358
DeMoUpdate.statuses
list statuses
Definition: DeMoUpdate.py:568
AthenaMPToolBase::generateOutputReport
virtual AthenaMP::AllWorkerOutputs_ptr generateOutputReport() override
Definition: AthenaMPToolBase.cxx:131
AthenaMPToolBase::m_evtSelName
std::string m_evtSelName
Definition: AthenaMPToolBase.h:86
Cut::signal
@ signal
Definition: SUSYToolsAlg.cxx:67
AthenaMPToolBase::finalize
virtual StatusCode finalize() override
Definition: AthenaMPToolBase.cxx:99
AthenaInterprocess::ScheduledWork::data
void * data
Definition: IMessageDecoder.h:13
athena.exitcode
int exitcode
Definition: athena.py:161
ProcessGroup.h
AthenaMPToolBase::m_fileMgrLog
std::string m_fileMgrLog
Definition: AthenaMPToolBase.h:95
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
AthenaMP::AllWorkerOutputsIterator
AllWorkerOutputs::iterator AllWorkerOutputsIterator
Definition: IAthenaMPTool.h:26
AthenaMP::SingleWorkerOutputs
std::vector< WorkerOutput > SingleWorkerOutputs
Definition: IAthenaMPTool.h:24
Fd
IIoSvc::Fd Fd
Definition: IoSvc.cxx:22
sigaddset
#define sigaddset(x, y)
Definition: SealSignal.h:84
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
AthenaMPToolBase::FUNC_EXEC
@ FUNC_EXEC
Definition: AthenaMPToolBase.h:67
COPY_FILE_HACK
#define COPY_FILE_HACK(_src, _dest)
Definition: copy_file_icc_hack.h:15
sigset_t
int sigset_t
Definition: SealSignal.h:80
copy_file_icc_hack.h
AthenaMPToolBase::m_evtSelector
SmartIF< IEvtSelector > m_evtSelector
Definition: AthenaMPToolBase.h:94
AthenaMPToolBase::m_appMgr
ServiceHandle< IAppMgrUI > m_appMgr
Definition: AthenaMPToolBase.h:91
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthenaMPToolBase::m_isPileup
Gaudi::Property< bool > m_isPileup
Definition: AthenaMPToolBase.h:99
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
lumiFormat.i
int i
Definition: lumiFormat.py:85
AthenaMPToolBase::bootstrap_func
virtual std::unique_ptr< AthenaInterprocess::ScheduledWork > virtual operator() ATLAS_NOT_THREAD_SAFE(const AthenaInterprocess std::unique_ptr< AthenaInterprocess::ScheduledWork > bootstrap_func()=0
DetDescrDictionaryDict::it1
std::vector< HWIdentifier >::iterator it1
Definition: DetDescrDictionaryDict.h:17
AthenaMPToolBase::Func_Flag
Func_Flag
Definition: AthenaMPToolBase.h:65
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthenaMPToolBase::useFdsRegistry
virtual void useFdsRegistry(std::shared_ptr< AthenaInterprocess::FdsRegistry >) override
Definition: AthenaMPToolBase.cxx:203
master.flag
bool flag
Definition: master.py:29
AthenaMPToolBase::reopenFd
int reopenFd(int fd, const std::string &name)
Definition: AthenaMPToolBase.cxx:444
AthenaMPToolBase::AthenaMPToolBase
AthenaMPToolBase()
AthenaMP::WorkerOutput::shared
bool shared
Definition: IAthenaMPTool.h:22
ParticleGun_EoverP_Config.pid
pid
Definition: ParticleGun_EoverP_Config.py:62
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AthenaMPToolBase_d::pauseForDebug
void pauseForDebug(int)
Definition: AthenaMPToolBase.cxx:27
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthenaMP::WorkerOutput::access_mode
std::string access_mode
Definition: IAthenaMPTool.h:21
TrigInDetValidation_Base.malloc
malloc
Definition: TrigInDetValidation_Base.py:132
AthenaMPToolBase::updateIoReg
int updateIoReg(const std::string &rundir)
Definition: AthenaMPToolBase.cxx:337
AthenaMPToolBase::initialize
virtual StatusCode initialize() override
Definition: AthenaMPToolBase.cxx:55
ReadFromCoolCompare.fd
fd
Definition: ReadFromCoolCompare.py:196
AthenaMPToolBase.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AthenaMPToolBase::m_ioMgr
ServiceHandle< IIoComponentMgr > m_ioMgr
Definition: AthenaMPToolBase.h:93
AthenaMPToolBase::redirectLog
int redirectLog(const std::string &rundir, bool addTimeStamp=true)
Definition: AthenaMPToolBase.cxx:281
AthenaInterprocess::Process
Definition: Process.h:17
Trk::open
@ open
Definition: BinningType.h:40
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AthenaMP::WorkerOutput::technology
std::string technology
Definition: IAthenaMPTool.h:19
AthenaInterprocess::FdsRegistryEntry
Definition: FdsRegistry.h:13
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AthenaMP::AllWorkerOutputs_ptr
std::unique_ptr< AllWorkerOutputs > AllWorkerOutputs_ptr
Definition: IAthenaMPTool.h:28
AthenaMP::WorkerOutput
Definition: IAthenaMPTool.h:17
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
AthenaMPToolBase::reportSubprocessStatuses
virtual void reportSubprocessStatuses() override
Definition: AthenaMPToolBase.cxx:123
entries
double entries
Definition: listroot.cxx:49
AthenaMPToolBase::m_subprocDirPrefix
std::string m_subprocDirPrefix
Definition: AthenaMPToolBase.h:85
AthenaMPToolBase::m_subprocTopDir
std::string m_subprocTopDir
Definition: AthenaMPToolBase.h:84
python.dummyaccess.exists
def exists(filename)
Definition: dummyaccess.py:9
PowhegControl_ttFCNC_NLO.params
params
Definition: PowhegControl_ttFCNC_NLO.py:226
AthAlgTool
Definition: AthAlgTool.h:26
AthenaInterprocess::ProcessGroup::wait_once
pid_t wait_once(bool &flag)
Definition: ProcessGroup.cxx:149
jetMakeRefSamples.logFile
string logFile
Definition: jetMakeRefSamples.py:57
AthenaMPToolBase::handleSavedPfc
int handleSavedPfc(const std::filesystem::path &dest_path)
Definition: AthenaMPToolBase.cxx:421
AthenaMPToolBase::m_fileMgr
ServiceHandle< IFileMgr > m_fileMgr
Definition: AthenaMPToolBase.h:92
AthenaMP::AllWorkerOutputs
std::map< std::string, SingleWorkerOutputs > AllWorkerOutputs
Definition: IAthenaMPTool.h:25
AthenaMPToolBase::FUNC_BOOTSTRAP
@ FUNC_BOOTSTRAP
Definition: AthenaMPToolBase.h:66
AthenaMPToolBase::reopenFds
int reopenFds()
Definition: AthenaMPToolBase.cxx:365
sigemptyset
#define sigemptyset(x)
Definition: SealSignal.h:82
AthenaMPToolBase::m_fdsRegistry
std::shared_ptr< AthenaInterprocess::FdsRegistry > m_fdsRegistry
Definition: AthenaMPToolBase.h:96
AthenaMP::WorkerOutput::filename
std::string filename
Definition: IAthenaMPTool.h:18
AthenaMPToolBase_d::sig_done
std::atomic< bool > sig_done
Definition: AthenaMPToolBase.cxx:26
ServiceHandle< IEventProcessor >
AthenaMPToolBase::m_evtProcessor
ServiceHandle< IEventProcessor > m_evtProcessor
Definition: AthenaMPToolBase.h:90
beamspotman.basename
basename
Definition: beamspotman.py:640