7 __author__ =
'Mous Tatarkhanov'
8 __version__ =
"$Revision: 1.17 $"
9 __doc__ =
"A container of flags for AthenaMP"
11 from AthenaCommon.JobProperties
import JobProperty, JobPropertyContainer
12 from AthenaCommon.JobProperties
import jobproperties
15 """ Flag to set the location for worker's run dir
18 allowedTypes = [
'str']
19 StoredValue =
'athenaMP_workers'
22 """ Flag to set the name of AthenaMP output report file
25 allowedTypes = [
'str']
26 StoredValue =
'AthenaMPOutputs'
29 """ Flag to set the pining of parallel workers to cpu from the list"""
31 allowdTypes = [
'list']
35 """ Switch to choose event scheduling strategy"""
37 allowedTypes = [
'str']
38 allowedValues = [
'SharedQueue',
'EventService',
'RoundRobin']
39 StoredValue =
'SharedQueue'
42 """ Flag for including all sub-process logs in the master log file
45 allowedTypes = [
'bool']
49 """ To distinguish between AthenaMP 1 and 2 (requested by transforms)
52 allowedTypes = [
'int']
57 """ Time interval in milliseconds between subsequent polling of subproceses
60 allowedTypes = [
'int']
64 """ Flag to set the nbr of events to process before forking.
67 allowedTypes = [
'int']
71 """ For the Event Service: Channel for communicating Event Ranges with the Pilot
74 allowedTypes = [
'str']
75 StoredValue =
'EventService_EventRanges'
78 """ For the Event Service: flag for activating extra event caching by the EvtRangeScatterer
81 allowedTypes = [
'bool']
85 """ Time interval in seconds between taking memory samples
88 allowedTypes = [
'int']
92 """ Size of event chunks in the shared queue
93 if chunk_size==-1, chunk size is set to auto_flush for files compressed with LZMA
94 if chunk_size==-2, chunk size is set to auto_flush for files compressed with LZMA or ZLIB
95 if chunk_size==-3, chunk size is set to auto_flush for files compressed with LZMA, ZLIB, or LZ4
96 if chunk_size<=-4, chunk size is set to auto_flush
99 allowedTypes = [
'int']
103 """ Flag for reading event orders (Shared Queue) from an ASCII file for reproducibility
106 allowedTypes = [
'bool']
110 """ Name of the file for storing/reading event orders (Shared Queue)
113 allowedTypes = [
'str']
114 StoredValue =
'athenamp_eventorders.txt'
117 """ Flag for activating shared reader process
120 allowedTypes = [
'bool']
124 """ Flag for activating shared writer process
127 allowedTypes = [
'bool']
131 """ Flag for activating event data compression in the workers
134 allowedTypes = [
'bool']
139 """ The global AthenaMP job property container.
143 jobproperties.add_Container(AthenaMPFlags)
147 list_jobproperties = [
152 CollectSubprocessLogs,
158 EvtRangeScattererCaching,
164 UseParallelCompression,
167 for i
in list_jobproperties:
168 jobproperties.AthenaMPFlags.add_JobProperty(i)
171 del list_jobproperties