The Gaudi Framework
master (ad37f17d)
Toggle main menu visibility
Loading...
Searching...
No Matches
OffloadAtlasMCRecoScenario.py
Go to the documentation of this file.
1
#!/usr/bin/env gaudirun.py
2
12
13
from
Configurables
import
(
14
AvalancheSchedulerSvc,
15
CPUCrunchSvc,
16
HiveSlimEventLoopMgr,
17
HiveWhiteBoard,
18
)
19
from
Gaudi.Configuration
import
*
20
21
# convenience machinery for assembling custom graphs of algorithm precedence rules (w/ CPUCrunchers as algorithms)
22
from
GaudiHive
import
precedence
23
24
# metaconfig
25
evtslots = 1
26
evtMax = 10
27
algosInFlight = 4
28
29
InertMessageSvc
(OutputLevel=INFO)
30
31
whiteboard =
HiveWhiteBoard
(
"EventDataSvc"
, EventSlots=evtslots, OutputLevel=INFO)
32
33
slimeventloopmgr =
HiveSlimEventLoopMgr
(
34
SchedulerName=
"AvalancheSchedulerSvc"
, OutputLevel=INFO
35
)
36
37
scheduler =
AvalancheSchedulerSvc
(
38
ThreadPoolSize=algosInFlight,
39
OutputLevel=INFO,
40
DumpIntraEventDynamics=
True
,
41
)
42
43
CPUCrunchSvc
(shortCalib=
True
)
44
45
# timeValue = precedence.UniformTimeValue(avgRuntime=0.1)
46
timeValue =
precedence.RealTimeValue
(
47
path=
"atlas/mcreco/averageTiming.mcreco.TriggerOff.json"
, defaultTime=0.0
48
)
49
# ifBlocking = precedence.UniformBooleanValue(False)
50
ifBlocking =
precedence.RndBiasedBooleanValue
(pattern={
True
: 17,
False
: 152}, seed=1)
51
52
sequencer =
precedence.CruncherSequence
(
53
timeValue,
54
ifBlocking,
55
sleepFraction=0.9,
56
cfgPath=
"atlas/mcreco/cf.mcreco.TriggerOff.graphml"
,
57
dfgPath=
"atlas/mcreco/df.mcreco.TriggerOff.3rdEvent.graphml"
,
58
topSequencer=
"AthSequencer/AthMasterSeq"
,
59
).get()
60
61
ApplicationMgr
(
62
EvtMax=evtMax,
63
EvtSel=
"NONE"
,
64
ExtSvc=[whiteboard],
65
EventLoop=slimeventloopmgr,
66
TopAlg=[sequencer],
67
MessageSvcType=
"InertMessageSvc"
,
68
OutputLevel=INFO,
69
)
ApplicationMgr
The Application Manager class.
Definition
ApplicationMgr.h:54
AvalancheSchedulerSvc
Definition
AvalancheSchedulerSvc.h:114
CPUCrunchSvc
Definition
CPUCrunchSvc.h:22
HiveSlimEventLoopMgr
Definition
HiveSlimEventLoopMgr.h:31
HiveWhiteBoard
Data service base class.
Definition
HiveWhiteBoard.cpp:129
InertMessageSvc
Thread safe extension to the standard MessageSvc.
Definition
InertMessageSvc.h:32
precedence.CruncherSequence
Definition
precedence.py:166
precedence.RealTimeValue
Definition
precedence.py:74
precedence.RndBiasedBooleanValue
Definition
precedence.py:121
Gaudi.Configuration
Definition
Configuration.py:1
GaudiHive
options
OffloadAtlasMCRecoScenario.py
Generated on
for The Gaudi Framework by
1.17.0