Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Computing
cbmroot
Commits
f90f201a
Commit
f90f201a
authored
1 year ago
by
Felix Weiglhofer
Browse files
Options
Downloads
Patches
Plain Diff
tof::Hitfind: Use OpenMP macros.
parent
caa1f8cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1500
tof::Hitfind: Use OpenMP macros.
Pipeline
#25687
passed
1 year ago
Stage: package
Stage: verify
Stage: documentation
Stage: deploy
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
algo/detectors/tof/Hitfind.cxx
+6
-5
6 additions, 5 deletions
algo/detectors/tof/Hitfind.cxx
with
6 additions
and
5 deletions
algo/detectors/tof/Hitfind.cxx
+
6
−
5
View file @
f90f201a
...
...
@@ -109,12 +109,13 @@ namespace cbm::algo::tof
xpu
::
push_timer
(
"TofHitfind"
);
xpu
::
t_add_bytes
(
digiIn
.
size_bytes
());
#pragma omp parallel
CBM_PARALLEL
()
{
const
int
ithread
=
openmp
::
GetThreadNum
();
const
int
nthreads
=
openmp
::
GetNumThreads
();
#pragma omp
single
CBM_OMP
(
single
)
{
cluPrefix
.
resize
(
nthreads
+
1
);
sizePrefix
.
resize
(
nthreads
+
1
);
...
...
@@ -124,7 +125,7 @@ namespace cbm::algo::tof
auto
[
clusters
,
sizes
,
addresses
,
indices
]
=
Clusterizer
::
resultType
();
#pragma omp
for schedule(dynamic) nowait
CBM_OMP
(
for
schedule
(
dynamic
)
nowait
)
for
(
uint32_t
iRpc
=
0
;
iRpc
<
fAlgo
.
size
();
iRpc
++
)
{
// Get digis
...
...
@@ -154,9 +155,9 @@ namespace cbm::algo::tof
sizePrefix
[
ithread
+
1
]
=
sizes
.
size
();
addrPrefix
[
ithread
+
1
]
=
addresses
.
size
();
indPrefix
[
ithread
+
1
]
=
indices
.
size
();
#pragma omp
barrier
CBM_OMP
(
barrier
)
#pragma omp
single
CBM_OMP
(
single
)
{
for
(
int
i
=
1
;
i
<
(
nthreads
+
1
);
i
++
)
{
cluPrefix
[
i
]
+=
cluPrefix
[
i
-
1
];
...
...
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