The Gaudi Framework  v36r1 (3e2fb5a8)
BugCFHEP114.py
Go to the documentation of this file.
1 #!/usr/bin/env gaudirun.py
2 
12 '''
13 Options file to test fix for https://sft.its.cern.ch/jira/browse/CFHEP-114
14 a problem which is ther when declaring dependencies explicitely in the scheduler
15 and having more dependencies than algorithms.
16 '''
17 
18 from Gaudi.Configuration import *
19 from Configurables import HiveWhiteBoard, HiveSlimEventLoopMgr, AvalancheSchedulerSvc, CPUCruncher, AlgResourcePool, CPUCrunchSvc
20 
21 InertMessageSvc(OutputLevel=INFO)
22 
23 # metaconfig
24 evtslots = 13
25 evtMax = 50
26 cardinality = 10
27 algosInFlight = 10
28 
29 whiteboard = HiveWhiteBoard("EventDataSvc", EventSlots=evtslots)
30 
31 slimeventloopmgr = HiveSlimEventLoopMgr(OutputLevel=INFO)
32 
33 scheduler = AvalancheSchedulerSvc(
34  ThreadPoolSize=algosInFlight, OutputLevel=WARNING)
35 
36 AlgResourcePool(OutputLevel=DEBUG)
37 
38 CPUCrunchSvc(shortCalib=True)
39 
40 a1 = CPUCruncher("A1", varRuntime=.01, avgRuntime=.1)
41 a1.outKeys = ['/Event/a1']
42 
43 a2 = CPUCruncher("A2")
44 a2.outKeys = ['/Event/a2']
45 
46 a3 = CPUCruncher("A3")
47 a3.outKeys = ['/Event/a3', '/Event/a4']
48 
49 a4 = CPUCruncher("A4")
50 a4.outKeys = ['/Event/a5']
51 
52 for algo in [a1, a2, a3, a4]:
53  algo.Cardinality = cardinality
54  algo.OutputLevel = WARNING
55 
57  EvtMax=evtMax,
58  EvtSel='NONE',
59  ExtSvc=[whiteboard],
60  EventLoop=slimeventloopmgr,
61  TopAlg=[a1, a2, a3, a4],
62  MessageSvcType="InertMessageSvc")
InertMessageSvc
Definition: InertMessageSvc.h:36
Gaudi.Configuration
Definition: Configuration.py:1
ApplicationMgr
Definition: ApplicationMgr.h:57