The Gaudi Framework  master (37c0b60a)
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 Configurables import (
19  AlgResourcePool,
20  AvalancheSchedulerSvc,
21  CPUCruncher,
22  CPUCrunchSvc,
23  HiveSlimEventLoopMgr,
24  HiveWhiteBoard,
25 )
26 from Gaudi.Configuration import *
27 
28 InertMessageSvc(OutputLevel=INFO)
29 
30 # metaconfig
31 evtslots = 13
32 evtMax = 50
33 cardinality = 10
34 algosInFlight = 10
35 
36 whiteboard = HiveWhiteBoard("EventDataSvc", EventSlots=evtslots)
37 
38 slimeventloopmgr = HiveSlimEventLoopMgr(OutputLevel=INFO)
39 
40 scheduler = AvalancheSchedulerSvc(ThreadPoolSize=algosInFlight, OutputLevel=WARNING)
41 
42 AlgResourcePool(OutputLevel=DEBUG)
43 
44 CPUCrunchSvc(shortCalib=True)
45 
46 a1 = CPUCruncher("A1", varRuntime=0.01, avgRuntime=0.1)
47 a1.outKeys = ["/Event/a1"]
48 
49 a2 = CPUCruncher("A2")
50 a2.outKeys = ["/Event/a2"]
51 
52 a3 = CPUCruncher("A3")
53 a3.outKeys = ["/Event/a3", "/Event/a4"]
54 
55 a4 = CPUCruncher("A4")
56 a4.outKeys = ["/Event/a5"]
57 
58 for algo in [a1, a2, a3, a4]:
59  algo.Cardinality = cardinality
60  algo.OutputLevel = WARNING
61 
63  EvtMax=evtMax,
64  EvtSel="NONE",
65  ExtSvc=[whiteboard],
66  EventLoop=slimeventloopmgr,
67  TopAlg=[a1, a2, a3, a4],
68  MessageSvcType="InertMessageSvc",
69 )
InertMessageSvc
Definition: InertMessageSvc.h:36
Gaudi.Configuration
Definition: Configuration.py:1
ApplicationMgr
Definition: ApplicationMgr.h:57