ATLAS Offline Software
Control
AthenaServices
python
Control/AthenaServices/python/TransformUtils.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
from
AthenaCommon.Logging
import
logging
3
from
AthenaConfiguration.ComponentAccumulator
import
ConfigurationError
4
5
def
ExecCondAlgsAtPreFork
(flags, cfg):
6
""" Execute the entire conditions sequence during the PreFork step.
7
This allows saving some memory in AthenaMP jobs, which is particularly
8
useful in the derivation production.
9
"""
10
log = logging.getLogger(
'ExecCondAlgsAtPreFork'
)
11
try
:
12
cfg.getService(
'AthMpEvtLoopMgr'
).ExecAtPreFork=[
'AthCondSeq'
]
13
log.info(
'AthCondSeq will be executed during PreFork'
)
14
except
ConfigurationError:
# in this context this might not be an error
15
log.info(
'AthCondSeq will NOT be executed during PreFork'
)
python.TransformUtils.ExecCondAlgsAtPreFork
def ExecCondAlgsAtPreFork(flags, cfg)
Definition:
Control/AthenaServices/python/TransformUtils.py:5
Generated on Thu Nov 7 2024 21:29:18 for ATLAS Offline Software by
1.8.18