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