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()) ATH_CHECK(serviceLocator()->service(m_evtSelName,m_evtSelector));
76  }
77  else {
78  ATH_MSG_ERROR("IProperty interface not found in ApplicationMgr");
79  return StatusCode::FAILURE;
80  }
81 
82  ATH_CHECK(m_fileMgr.retrieve());
83 
84  SmartIF<IProperty> prpMgr1(m_fileMgr.get());
85  if(prpMgr1.isValid()) {
86  m_fileMgrLog = prpMgr1->getProperty("LogFile").toString();
87  }
88  else {
89  ATH_MSG_ERROR("IProperty interface not found in FileMgr");
90  return StatusCode::FAILURE;
91  }
92 
93  return StatusCode::SUCCESS;
94 }
95 
97 {
98  return StatusCode::SUCCESS;
99 }
100 
101 StatusCode AthenaMPToolBase::wait_once(pid_t& pid)
102 {
103  bool flag(true);
105 
106  if(flag) { // Either none of the processes changed its status or one of the processes finished successfully
107  return StatusCode::SUCCESS;
108  }
109  else {
110  if(pid<0) { // Wait failed on the group
111  ATH_MSG_ERROR("Wait failed on the Process Group!");
112  }
113  else {
114  ATH_MSG_WARNING("Abnormal termination of the process PID=" << pid);
115  }
116  return StatusCode::FAILURE;
117  }
118 }
119 
121 {
122  ATH_MSG_INFO("Statuses of sub-processes");
123  const std::vector<AthenaInterprocess::ProcessStatus>& statuses = m_processGroup->getStatuses();
124  for(size_t i=0; i<statuses.size(); ++i)
125  ATH_MSG_INFO("*** Process PID=" << statuses[i].pid << ". Status " << ((statuses[i].exitcode)?"FAILURE":"SUCCESS"));
126 }
127 
129 {
131 
132  if(m_fileMgrLog.empty()) {
133  ATH_MSG_WARNING(name() << " cannot make output report because FileMgr has not been configured to write log file!");
134  }
135  else {
136  // Collect output files made by the workers
137  std::string line;
138  for(int i=0;i<m_nprocs;++i) {
139  // Get the name of FileMgr log
140  std::ostringstream workindex;
141  workindex<<i;
143  logFilePath /= std::filesystem::path(m_subprocDirPrefix+workindex.str());
144  std::filesystem::path logFile(logFilePath);
146  if(!(std::filesystem::exists(logFile)&&std::filesystem::is_regular_file(logFile))) {
147  ATH_MSG_WARNING(logFile.string() << " either does not exist or is not a regular file. Skipping");
148  continue;
149  }
150 
151  ATH_MSG_DEBUG("FileMgr log file (" << i << ") " << logFile);
152 
153  std::ifstream inpStream(logFile.string().c_str());
154  std::set<std::string> reportedFiles; // Don't report the same file twice
155  while(!inpStream.eof()) {
156  std::getline(inpStream,line);
157  if(line.find("WRITE")!=std::string::npos) {
158  // Parse the entry
159  size_t startpos(0);
160  std::vector<std::string> entries;
161  while(startpos<line.size()) {
162  while(line[startpos]==' ')
163  startpos++;
164 
165  size_t endpos = line.find(' ',startpos);
166  if(endpos==std::string::npos) endpos = line.size();
167  entries.push_back(line.substr(startpos,endpos-startpos));
168  startpos=endpos+1;
169  }
170 
171  // enties[0] is filename
172  std::filesystem::path filenamePath(entries[0]);
173  std::filesystem::path basename = filenamePath.filename();
174  if(reportedFiles.find(basename.string())==reportedFiles.end())
175  reportedFiles.insert(basename.string());
176  else
177  continue;
178  std::filesystem::path absolutename = basename.is_absolute() ? basename : std::filesystem::absolute(std::filesystem::path(logFilePath)/=basename);
179  AthenaMP::AllWorkerOutputsIterator it1 = jobOutputs->find(basename.string());
180  if(it1==jobOutputs->end()) {
181  (*jobOutputs)[basename.string()] = AthenaMP::SingleWorkerOutputs();
182  (*jobOutputs)[basename.string()].reserve(m_nprocs);
183  }
184 
185  AthenaMP::WorkerOutput newOutput;
186  newOutput.filename = absolutename.string();
187  newOutput.technology = entries[1];
188  newOutput.description = entries[2];
189  newOutput.access_mode = entries[3];
190  newOutput.shared = (line.find("SHARED")!=std::string::npos);
191 
192  (*jobOutputs)[basename.string()].push_back(newOutput);
193  }
194  }
195  }
196  }
197  return jobOutputs;
198 }
199 
200 void AthenaMPToolBase::useFdsRegistry(std::shared_ptr<AthenaInterprocess::FdsRegistry> registry)
201 {
203 }
204 
205 void AthenaMPToolBase::setRandString(const std::string& randStr)
206 {
207  m_randStr = randStr;
208 }
209 
211 {
213  kill(child.getProcessID(),SIGKILL);
214  }
215 }
216 
217 std::unique_ptr<AthenaInterprocess::ScheduledWork> AthenaMPToolBase::operator()(const AthenaInterprocess::ScheduledWork& param)
218 {
219  std::unique_ptr<AthenaInterprocess::ScheduledWork> outwork;
220  bool all_ok(true);
221 
222  if(param.size==sizeof(Func_Flag)) {
223  Func_Flag flag;
224  memcpy(&flag,param.data,param.size);
225  switch(flag) {
226  case FUNC_BOOTSTRAP:
227  {
228  outwork = bootstrap_func();
229  break;
230  }
231  case FUNC_EXEC:
232  {
233  outwork = exec_func();
234  break;
235  }
236  case FUNC_FIN:
237  {
238  outwork = fin_func();
239  break;
240  }
241  default:
242  {
243  ATH_MSG_ERROR("Unexpected value for the function flag");
244  all_ok = false;
245  }
246  }
247  }
248  else {
249  ATH_MSG_ERROR("Unexpected parameter size");
250  all_ok = false;
251  }
252 
253  if(!all_ok) {
254  outwork = std::unique_ptr<AthenaInterprocess::ScheduledWork>(new AthenaInterprocess::ScheduledWork);
255  outwork->data = malloc(sizeof(int));
256  *(int*)(outwork->data) = 1; // Error code: for now use 0 success, 1 failure
257  outwork->size = sizeof(int);
258  }
259 
260  return outwork;
261 }
262 
263 int AthenaMPToolBase::mapAsyncFlag(Func_Flag flag, pid_t pid)
264 {
266  params.data = (void*)(&flag);
267  params.size = sizeof(flag);
268  if(m_processGroup->map_async(this,&params,pid)){
269  if(pid)
270  ATH_MSG_ERROR("Unable to map the flag on subprocess pid=" << pid);
271  else
272  ATH_MSG_ERROR("Unable to map the flag on all subprocesses in the group");
273  return -1;
274  }
275  return 0;
276 }
277 
278 int AthenaMPToolBase::redirectLog(const std::string& rundir, bool addTimeStamp)
279 {
280  // Redirect both stdout and stderr to the same file AthenaMP.log
281  int dup2result1(0), dup2result2(0);
282 
283  int newout = open(std::string(rundir+"/AthenaMP.log").c_str(),O_CREAT | O_RDWR, S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
284  if(newout==-1) {
285  ATH_MSG_ERROR("Unable to open log file in the run directory. " << fmterror(errno));
286  return -1;
287  }
288  dup2result1 = dup2(newout, STDOUT_FILENO);
289  dup2result2 = dup2(newout, STDERR_FILENO);
290  TEMP_FAILURE_RETRY(close(newout));
291  if(dup2result1==-1) {
292  ATH_MSG_ERROR("Unable to redirect standard output. " << fmterror(errno));
293  return -1;
294  }
295  if(dup2result2==-1) {
296  ATH_MSG_ERROR("Unable to redirect standard error. " << fmterror(errno));
297  return -1;
298  }
299 
300  if(addTimeStamp) {
301  IMessageSvc* messageSvc(0);
302  StatusCode sc = serviceLocator()->service("MessageSvc",messageSvc);
303  if(sc.isFailure()) {
304  ATH_MSG_ERROR("Error retrieving IMessageSvc");
305  return -1;
306  }
307 
308  IProperty* propertyServer = dynamic_cast<IProperty*>(messageSvc);
309  if(propertyServer==0) {
310  ATH_MSG_ERROR("Unable to cast message svc to IProperty");
311  return -1;
312  }
313 
314  std::string propertyName("Format");
315  std::string oldFormat("");
316  StringProperty formatProp(propertyName,oldFormat);
317  sc = propertyServer->getProperty(&formatProp);
318  if(sc.isFailure()) {
319  ATH_MSG_WARNING("Message Service does not have Format property");
320  }
321  else {
322  oldFormat = formatProp.value();
323  if(oldFormat.find("%t")==std::string::npos) {
324  // Add time stamps
325  std::string newFormat("%t " + oldFormat);
326  StringProperty newFormatProp(propertyName,newFormat);
327  if(propertyServer->setProperty(newFormatProp).isFailure()) {
328  ATH_MSG_ERROR("Unable to set new Format property on the Message Service");
329  return -1;
330  }
331  }
332  else {
333  ATH_MSG_DEBUG("MsgSvc format already contains timestamps. Nothing to be done");
334  }
335  }
336  }
337 
338  return 0;
339 }
340 
341 int AthenaMPToolBase::updateIoReg(const std::string& rundir)
342 {
343  if (!m_ioMgr.retrieve().isSuccess()) {
344  ATH_MSG_ERROR("Error retrieving IoComponentMgr");
345  return -1;
346  } else {
347  ATH_MSG_DEBUG("Successfully retrieved IoComponentMgr");
348  }
349 
350  // update the IoRegistry for the new workdir - make sure we use absolute path
352  if(!m_ioMgr->io_update_all(abs_rundir.string()).isSuccess()) {
353  ATH_MSG_ERROR("Error updating IoRegistry");
354  return -1;
355  } else {
356  ATH_MSG_DEBUG("Successfully updated IoRegistry");
357  }
358 
359  return 0;
360 }
361 
362 std::string AthenaMPToolBase::fmterror(int errnum)
363 {
364  char buf[256];
365  strerror_r(errnum, buf, sizeof(buf));
366  return std::string(buf);
367 }
368 
370 {
371  // Reopen file descriptors.
372  // First go over all open files, which have been registered with the FileMgr
373  // Then also check the FdsRegistry, in case it contains some files not registered with the FileMgr
374  std::set<int> fdLog;
375 
376  // Query the FileMgr contents
377  std::vector<const Io::FileAttr*> filemgrFiles;
378  std::vector<const Io::FileAttr*>::const_iterator itFile;
379  unsigned filenum = m_fileMgr->getFiles(filemgrFiles); // Get attributes for open files only. We don't care about closed ones at this point
380  if(filenum!=filemgrFiles.size())
381  ATH_MSG_WARNING("getFiles returned " << filenum << " while vector size is " << filemgrFiles.size());
382 
383  for(itFile=filemgrFiles.begin();itFile!=filemgrFiles.end();++itFile) {
384  ATH_MSG_DEBUG("* " << **itFile);
385  const std::string& filename = (**itFile).name();
386  Io::Fd fd = (**itFile).fd();
387 
388  if(fd==-1) {
389  // It is legal to have fd=-1 for remote inputs
390  // On the other hand, these inputs should not remain open after fork. The issue being tracked at ATEAM-434.
391  // So, this hopefully is a temporary patch
392  ATH_MSG_WARNING("FD=-1 detected on an open file retrieved from FileMgr. Skip FD reopening. File name: " << filename);
393  continue;
394  }
395 
396  if(reopenFd(fd,filename))
397  return -1;
398 
399  fdLog.insert(fd);
400  }
401 
402  // Check the FdsRegistry
403  for(const AthenaInterprocess::FdsRegistryEntry& regEntry : *m_fdsRegistry) {
404  if(fdLog.find(regEntry.fd)!=fdLog.end()) {
405  ATH_MSG_DEBUG("The file from FdsRegistry " << regEntry.name << " was registered with FileMgr. Skip reopening");
406  }
407  else {
408  ATH_MSG_WARNING("The file " << regEntry.name << " has not been registered with the FileMgr!");
409 
410  if(regEntry.fd==-1) {
411  // Same protection as the one above
412  ATH_MSG_WARNING("FD=-1 detected on an open file retrieved from FD Registry. Skip FD reopening. File name: " << regEntry.name);
413  continue;
414  }
415 
416  if(reopenFd(regEntry.fd,regEntry.name))
417  return -1;
418 
419  fdLog.insert(regEntry.fd);
420  }
421  }
422  return 0;
423 }
424 
426 {
427  if(std::filesystem::is_regular_file("PoolFileCatalog.xml.AthenaMP-saved"))
428  COPY_FILE_HACK("PoolFileCatalog.xml.AthenaMP-saved",dest_path.string()+"/PoolFileCatalog.xml");
429  return 0;
430 }
431 
433 {
434  ATH_MSG_INFO("Bootstrap worker PID " << getpid() << " - waiting for SIGUSR1");
435  sigset_t mask, oldmask;
436 
438 
439  sigemptyset (&mask);
440  sigaddset (&mask, SIGUSR1);
441 
442  sigprocmask (SIG_BLOCK, &mask, &oldmask);
444  sigsuspend (&oldmask);
445  sigprocmask (SIG_UNBLOCK, &mask, NULL);
446 }
447 
448 int AthenaMPToolBase::reopenFd(int fd, const std::string& name)
449 {
450  ATH_MSG_DEBUG("Attempting to reopen descriptor for " << name);
451  int old_openflags = fcntl(fd,F_GETFL,0);
452  switch(old_openflags & O_ACCMODE) {
453  case O_RDONLY: {
454  ATH_MSG_DEBUG("The File Access Mode is RDONLY");
455  break;
456  }
457  case O_WRONLY: {
458  ATH_MSG_DEBUG("The File Access Mode is WRONLY");
459  break;
460  }
461  case O_RDWR: {
462  ATH_MSG_DEBUG("The File Access Mode is RDWR");
463  break;
464  }
465  }
466 
467  int old_descflags = fcntl(fd,F_GETFD,0);
468  off_t oldpos = lseek(fd,0,SEEK_CUR);
469  if(oldpos==-1) {
470  if(errno==ESPIPE) {
471  ATH_MSG_WARNING("Dealing with PIPE. Skipping ... (FIXME!)");
472  }
473  else {
474  ATH_MSG_ERROR("When re-opening file descriptors lseek failed on " << name << ". " << fmterror(errno));
475  return -1;
476  }
477  }
478  else {
479  Io::Fd newfd = open(name.c_str(),old_openflags);
480  if(newfd==-1) {
481  ATH_MSG_ERROR("When re-opening file descriptors unable to open " << name << " for reading. " << fmterror(errno));
482  return -1;
483  }
484  if(lseek(newfd,oldpos,SEEK_SET)==-1){
485  ATH_MSG_ERROR("When re-opening file descriptors lseek failed on the newly opened " << name << ". " << fmterror(errno));
486  TEMP_FAILURE_RETRY(close(newfd));
487  return -1;
488  }
489  TEMP_FAILURE_RETRY(close(fd));
490  if(dup2(newfd,fd)==-1) {
491  ATH_MSG_ERROR("When re-opening file descriptors unable to duplicate descriptor for " << name << ". " << fmterror(errno));
492  TEMP_FAILURE_RETRY(close(newfd));
493  return -1;
494  }
495  if(fcntl(fd,F_SETFD,old_descflags)==-1) {
496  ATH_MSG_ERROR("When re-opening file descriptors unable to set descriptor flags for " << name << ". " << fmterror(errno));
497  TEMP_FAILURE_RETRY(close(newfd));
498  return -1;
499  }
500  TEMP_FAILURE_RETRY(close(newfd));
501  }
502  return 0;
503 }
AthenaMPToolBase::killChildren
virtual void killChildren() override
Definition: AthenaMPToolBase.cxx:210
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:432
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:126
AthenaMPToolBase::m_evtSelector
IEvtSelector * m_evtSelector
Definition: AthenaMPToolBase.h:94
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:205
plotting.yearwise_luminosity.absolute
absolute
Definition: yearwise_luminosity.py:32
AthenaMPToolBase::fmterror
std::string fmterror(int errnum)
Definition: AthenaMPToolBase.cxx:362
DeMoUpdate.statuses
list statuses
Definition: DeMoUpdate.py:568
AthenaMPToolBase::generateOutputReport
virtual AthenaMP::AllWorkerOutputs_ptr generateOutputReport() override
Definition: AthenaMPToolBase.cxx:128
AthenaMPToolBase::m_evtSelName
std::string m_evtSelName
Definition: AthenaMPToolBase.h:86
AthenaMPToolBase::finalize
virtual StatusCode finalize() override
Definition: AthenaMPToolBase.cxx:96
AthenaInterprocess::ScheduledWork::data
void * data
Definition: IMessageDecoder.h:13
athena.exitcode
int exitcode
Definition: athena.py:159
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_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
lumiFormat.i
int i
Definition: lumiFormat.py:92
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:200
master.flag
bool flag
Definition: master.py:29
AthenaMPToolBase::reopenFd
int reopenFd(int fd, const std::string &name)
Definition: AthenaMPToolBase.cxx:448
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:129
AthenaMPToolBase::updateIoReg
int updateIoReg(const std::string &rundir)
Definition: AthenaMPToolBase.cxx:341
AthenaMPToolBase::initialize
virtual StatusCode initialize() override
Definition: AthenaMPToolBase.cxx:55
ReadFromCoolCompare.fd
fd
Definition: ReadFromCoolCompare.py:196
AthenaMPToolBase.h
Cut::signal
@ signal
Definition: SUSYToolsAlg.cxx:64
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
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:278
AthenaInterprocess::Process
Definition: Process.h:17
Trk::open
@ open
Definition: BinningType.h:40
HFORType::kill
@ kill
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:120
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:425
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:369
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