The Gaudi Framework  v33r1 (b1225454)
OffloadCMSRecoScenario.py
Go to the documentation of this file.
1 #!/usr/bin/env gaudirun.py
2 
12 
13 from Gaudi.Configuration import *
14 from Configurables import HiveWhiteBoard, HiveSlimEventLoopMgr, AvalancheSchedulerSvc, IOBoundAlgSchedulerSvc
15 
16 # convenience machinery for assembling custom graphs of algorithm precedence rules (w/ CPUCrunchers as algorithms)
17 from GaudiHive import precedence
18 
19 # metaconfig
20 evtslots = 1
21 evtMax = 5
22 algosInFlight = 4
23 
24 whiteboard = HiveWhiteBoard(
25  "EventDataSvc", EventSlots=evtslots, OutputLevel=INFO)
26 
27 slimeventloopmgr = HiveSlimEventLoopMgr(
28  SchedulerName="AvalancheSchedulerSvc", OutputLevel=INFO)
29 
30 AvalancheSchedulerSvc(
31  ThreadPoolSize=algosInFlight,
32  OutputLevel=DEBUG,
33  PreemptiveIOBoundTasks=True,
34  MaxIOBoundAlgosInFlight=50)
35 
36 IOBoundAlgSchedulerSvc(OutputLevel=INFO)
37 
38 #timeValue = precedence.UniformTimeValue(avgRuntime=0.1)
39 timeValue = precedence.RealTimeValue(
40  path="cms/reco/algs-time.json", defaultTime=0.0)
41 
42 #ifIObound = precedence.UniformBooleanValue(False)
43 # the CMS reco scenario has 707 algorithms in total
44 ifIObound = precedence.RndBiasedBooleanValue(
45  pattern={
46  True: 70,
47  False: 637
48  }, seed=1)
49 
50 sequencer = precedence.CruncherSequence(
51  timeValue,
52  ifIObound,
53  sleepFraction=0.9,
54  cfgPath="cms/reco/cf.graphml",
55  dfgPath="cms/reco/df.graphml",
56  topSequencer='TopSequencer').get()
57 
59  EvtMax=evtMax,
60  EvtSel='NONE',
61  ExtSvc=[whiteboard],
62  EventLoop=slimeventloopmgr,
63  TopAlg=[sequencer],
64  MessageSvcType="InertMessageSvc",
65  OutputLevel=INFO)
auto get(const Handle &handle, const Algo &, const EventContext &) -> decltype(details::deref(handle.get()))
The Application Manager class.