The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
BugCFHEP114.py
Go to the documentation of this file.
1#!/usr/bin/env gaudirun.py
2
12"""
13Options file to test fix for https://sft.its.cern.ch/jira/browse/CFHEP-114
14a problem which is ther when declaring dependencies explicitely in the scheduler
15and having more dependencies than algorithms.
16"""
17
18from Configurables import (
19 AlgResourcePool,
20 AvalancheSchedulerSvc,
21 CPUCruncher,
22 CPUCrunchSvc,
23 HiveSlimEventLoopMgr,
24 HiveWhiteBoard,
25)
26from Gaudi.Configuration import *
27
28InertMessageSvc(OutputLevel=INFO)
29
30# metaconfig
31evtslots = 13
32evtMax = 50
33cardinality = 10
34algosInFlight = 10
35
36whiteboard = HiveWhiteBoard("EventDataSvc", EventSlots=evtslots)
37
38slimeventloopmgr = HiveSlimEventLoopMgr(OutputLevel=INFO)
39
40scheduler = AvalancheSchedulerSvc(ThreadPoolSize=algosInFlight, OutputLevel=WARNING)
41
42AlgResourcePool(OutputLevel=DEBUG)
43
44CPUCrunchSvc(shortCalib=True)
45
46a1 = CPUCruncher("A1", varRuntime=0.01, avgRuntime=0.1)
47a1.outKeys = ["/Event/a1"]
48
49a2 = CPUCruncher("A2")
50a2.outKeys = ["/Event/a2"]
51
52a3 = CPUCruncher("A3")
53a3.outKeys = ["/Event/a3", "/Event/a4"]
54
55a4 = CPUCruncher("A4")
56a4.outKeys = ["/Event/a5"]
57
58for 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)
The AlgResourcePool is a concrete implementation of the IAlgResourcePool interface.
The Application Manager class.
A class that implements a search for prime numbers.
Definition CPUCruncher.h:30
Data service base class.
Thread safe extension to the standard MessageSvc.