Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
physics_benchmarks
Commits
4546ccb6
Commit
4546ccb6
authored
3 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
Adjust ApplicationMgr
parent
91b6c781
No related branches found
No related tags found
1 merge request
!158
Enable gaudi multithreading and concurrency
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
options/reconstruction.py
+28
-25
28 additions, 25 deletions
options/reconstruction.py
with
28 additions
and
25 deletions
options/reconstruction.py
+
28
−
25
View file @
4546ccb6
...
...
@@ -7,30 +7,6 @@ from GaudiKernel.SystemOfUnits import MeV, GeV, mm, cm, mrad
import
json
# Multithreading
# - threads: total number of threads to use: this determines how many events and
# algorithms can be in flight (run in parallel)
# - evtslots: number of events that may run in parallel, each with its own EventStore
if
"
JUGGLER_N_THREADS
"
in
os
.
environ
:
threads
=
int
(
os
.
environ
[
"
JUGGLER_N_THREADS
"
])
evtslots
=
int
(
os
.
environ
[
"
JUGGLER_N_THREADS
"
])
if
"
JUGGLER_N_SLOTS
"
in
os
.
environ
:
evtslots
=
int
(
os
.
environ
[
"
JUGGLER_N_SLOTS
"
])
whiteboard
=
HiveWhiteBoard
(
"
EventDataSvc
"
,
EventSlots
=
evtslots
)
slimeventloopmgr
=
HiveSlimEventLoopMgr
(
SchedulerName
=
"
AvalancheSchedulerSvc
"
,
OutputLevel
=
DEBUG
)
scheduler
=
AvalancheSchedulerSvc
(
ThreadPoolSize
=
threads
,
OutputLevel
=
WARNING
)
# Detector names, paths, configuration
detector_name
=
"
athena
"
if
"
JUGGLER_DETECTOR_CONFIG
"
in
os
.
environ
:
...
...
@@ -135,6 +111,31 @@ else:
# data service
services
.
append
(
EICDataSvc
(
"
EventDataSvc
"
,
inputs
=
input_sims
,
OutputLevel
=
WARNING
))
# Multithreading
# - threads: total number of threads to use: this determines how many events and
# algorithms can be in flight (run in parallel)
# - evtslots: number of events that may run in parallel, each with its own EventStore
if
"
JUGGLER_N_THREADS
"
in
os
.
environ
:
threads
=
int
(
os
.
environ
[
"
JUGGLER_N_THREADS
"
])
evtslots
=
int
(
os
.
environ
[
"
JUGGLER_N_THREADS
"
])
if
"
JUGGLER_N_SLOTS
"
in
os
.
environ
:
evtslots
=
int
(
os
.
environ
[
"
JUGGLER_N_SLOTS
"
])
whiteboard
=
HiveWhiteBoard
(
"
EventDataSvc
"
,
EventSlots
=
evtslots
)
slimeventloopmgr
=
HiveSlimEventLoopMgr
(
SchedulerName
=
"
AvalancheSchedulerSvc
"
,
OutputLevel
=
DEBUG
)
scheduler
=
AvalancheSchedulerSvc
(
ThreadPoolSize
=
threads
,
OutputLevel
=
WARNING
)
services
.
append
(
whiteboard
)
# juggler components
from
Configurables
import
PodioInput
...
...
@@ -1020,6 +1021,8 @@ ApplicationMgr(
EvtSel
=
'
NONE
'
,
EvtMax
=
n_events
,
ExtSvc
=
services
,
EventLoop
=
slimeventloopmgr
,
MessageSvcType
=
"
InertMessageSvc
"
OutputLevel
=
WARNING
,
AuditAlgorithms
=
True
)
)
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