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
6654966d
Commit
6654966d
authored
2 years ago
by
Felix Weiglhofer
Committed by
Volker Friese
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
GpuRecoSts: Small fixes.
parent
9117f2bf
No related branches found
No related tags found
1 merge request
!927
GpuRecoSts: Small fixes.
Pipeline
#18513
passed
2 years ago
Stage: build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reco/detectors/sts/CbmRecoSts.cxx
+10
-0
10 additions, 0 deletions
reco/detectors/sts/CbmRecoSts.cxx
reco/detectors/sts/experimental/CbmGpuRecoSts.cxx
+4
-3
4 additions, 3 deletions
reco/detectors/sts/experimental/CbmGpuRecoSts.cxx
with
14 additions
and
3 deletions
reco/detectors/sts/CbmRecoSts.cxx
+
10
−
0
View file @
6654966d
...
@@ -33,6 +33,8 @@
...
@@ -33,6 +33,8 @@
#include
<iomanip>
#include
<iomanip>
#include
<xpu/host.h>
#if __has_include(<omp.h>)
#if __has_include(<omp.h>)
#include
<omp.h>
#include
<omp.h>
#endif
#endif
...
@@ -334,6 +336,14 @@ InitStatus CbmRecoSts::Init()
...
@@ -334,6 +336,14 @@ InitStatus CbmRecoSts::Init()
LOG
(
info
)
<<
"=========================================================="
;
LOG
(
info
)
<<
"=========================================================="
;
LOG
(
info
)
<<
GetName
()
<<
": Initialising "
;
LOG
(
info
)
<<
GetName
()
<<
": Initialising "
;
// Initialize xpu.
// TODO: This call can be relatively expensive.
// We need a way to ensure this happens only once at the beginning.
if
(
fUseGpuReco
)
{
setenv
(
"XPU_PROFILE"
,
"1"
,
1
);
// Always enable profiling in xpu
xpu
::
initialize
();
}
// --- Check IO-Manager
// --- Check IO-Manager
FairRootManager
*
ioman
=
FairRootManager
::
Instance
();
FairRootManager
*
ioman
=
FairRootManager
::
Instance
();
assert
(
ioman
);
assert
(
ioman
);
...
...
This diff is collapsed.
Click to expand it.
reco/detectors/sts/experimental/CbmGpuRecoSts.cxx
+
4
−
3
View file @
6654966d
...
@@ -190,9 +190,6 @@ void CbmGpuRecoSts::Setup(size_t maxDigisPerModule, size_t nDigitsTotal)
...
@@ -190,9 +190,6 @@ void CbmGpuRecoSts::Setup(size_t maxDigisPerModule, size_t nDigitsTotal)
void
CbmGpuRecoSts
::
RunHitFinder
()
void
CbmGpuRecoSts
::
RunHitFinder
()
{
{
setenv
(
"XPU_PROFILE"
,
"1"
,
1
);
xpu
::
initialize
();
auto
&
hfc
=
fHitfinderCpu
;
auto
&
hfc
=
fHitfinderCpu
;
// ROCm bug: Mi100 name is an emtpy string...
// ROCm bug: Mi100 name is an emtpy string...
...
@@ -368,6 +365,10 @@ void CbmGpuRecoSts::FetchDigis(size_t& maxDigisPerModule, size_t& nDigisTotal)
...
@@ -368,6 +365,10 @@ void CbmGpuRecoSts::FetchDigis(size_t& maxDigisPerModule, size_t& nDigisTotal)
CbmDigiManager
*
digis
=
CbmDigiManager
::
Instance
();
CbmDigiManager
*
digis
=
CbmDigiManager
::
Instance
();
auto
&
hfc
=
fHitfinderCpu
;
auto
&
hfc
=
fHitfinderCpu
;
// Remove digis from previous timeslice
fDigisByModuleB
.
clear
();
fDigisByModuleF
.
clear
();
// FIXME: GPU reco should use regular digi class too
// FIXME: GPU reco should use regular digi class too
nDigis
=
digis
->
GetNofDigis
(
ECbmModuleId
::
kSts
);
nDigis
=
digis
->
GetNofDigis
(
ECbmModuleId
::
kSts
);
nDigisTotal
=
0
;
nDigisTotal
=
0
;
...
...
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