Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Tulay Cuhadar Donszelmann
athena
Commits
1509682a
Commit
1509682a
authored
9 years ago
by
Vakhtang Tsulaia
Committed by
Graeme Stewart
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Introducing EventOrders configuration flags (AthenaMP-01-04-04-01)
parent
a2087954
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Control/AthenaMP/python/AthenaMPFlags.py
+16
-0
16 additions, 0 deletions
Control/AthenaMP/python/AthenaMPFlags.py
Control/AthenaMP/python/PyComps.py
+10
-8
10 additions, 8 deletions
Control/AthenaMP/python/PyComps.py
with
26 additions
and
8 deletions
Control/AthenaMP/python/AthenaMPFlags.py
+
16
−
0
View file @
1509682a
...
...
@@ -109,6 +109,20 @@ class UseTokenExtractor(JobProperty):
allowedTypes
=
[
'
bool
'
]
StoredValue
=
False
class
ReadEventOrders
(
JobProperty
):
"""
Flag for reading event orders (Shared Queue) from an ASCII file for reproducibility
"""
statusOn
=
True
allowedTypes
=
[
'
bool
'
]
StoredValue
=
False
class
EventOrdersFile
(
JobProperty
):
"""
Name of the file for storing/reading event orders (Shared Queue)
"""
statusOn
=
True
allowedTypes
=
[
'
str
'
]
StoredValue
=
'
athenamp_eventorders.txt
'
# Defines the container for the performance monitoring flags
class
AthenaMPFlags
(
JobPropertyContainer
):
"""
The global AthenaMP job property container.
...
...
@@ -134,6 +148,8 @@ list_jobproperties = [
EvtRangeScattererCaching
,
ChunkSize
,
UseTokenExtractor
,
ReadEventOrders
,
EventOrdersFile
,
]
for
i
in
list_jobproperties
:
...
...
This diff is collapsed.
Click to expand it.
Control/AthenaMP/python/PyComps.py
+
10
−
8
View file @
1509682a
...
...
@@ -71,17 +71,19 @@ class MpEvtLoopMgr(AthMpEvtLoopMgr):
if
(
self
.
nThreads
>=
1
):
from
AthenaMPTools.AthenaMPToolsConf
import
SharedHiveEvtQueueConsumer
self
.
Tools
+=
[
SharedHiveEvtQueueConsumer
(
UseSharedReader
=
False
,
IsPileup
=
pileup
,
IsRoundRobin
=
(
strategy
==
'
RoundRobin
'
),
EventsBeforeFork
=
events_before_fork
,
Debug
=
debug_worker
)
]
IsPileup
=
pileup
,
IsRoundRobin
=
(
strategy
==
'
RoundRobin
'
),
EventsBeforeFork
=
events_before_fork
,
Debug
=
debug_worker
)
]
else
:
from
AthenaMPTools.AthenaMPToolsConf
import
SharedEvtQueueConsumer
self
.
Tools
+=
[
SharedEvtQueueConsumer
(
UseSharedReader
=
False
,
IsPileup
=
pileup
,
IsRoundRobin
=
(
strategy
==
'
RoundRobin
'
),
EventsBeforeFork
=
events_before_fork
,
Debug
=
debug_worker
)
]
IsPileup
=
pileup
,
IsRoundRobin
=
(
strategy
==
'
RoundRobin
'
),
ReadEventOrders
=
jp
.
AthenaMPFlags
.
ReadEventOrders
(),
EventOrdersFile
=
jp
.
AthenaMPFlags
.
EventOrdersFile
(),
EventsBeforeFork
=
events_before_fork
,
Debug
=
debug_worker
)
]
# Enable seeking
setupEvtSelForSeekOps
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment