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
b3f055c3
Commit
b3f055c3
authored
1 year ago
by
Jan de Cuveland
Committed by
Felix Weiglhofer
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Implement experimental timeslice copy/release mode for cbmreco
parent
d449a383
No related branches found
No related tags found
1 merge request
!1829
Experimental timeslice copy/release mode for cbmreco
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
algo/base/Options.cxx
+2
-0
2 additions, 0 deletions
algo/base/Options.cxx
algo/base/Options.h
+2
-0
2 additions, 0 deletions
algo/base/Options.h
reco/app/cbmreco/main.cxx
+10
-1
10 additions, 1 deletion
reco/app/cbmreco/main.cxx
with
14 additions
and
1 deletion
algo/base/Options.cxx
+
2
−
0
View file @
b3f055c3
...
...
@@ -99,6 +99,8 @@ Options::Options(int argc, char** argv)
"Write profiling times to yaml file (only when '-t' is set)"
)
(
"dump-archive"
,
po
::
bool_switch
(
&
fDumpArchive
)
->
default_value
(
false
),
"Dump archive content to stdout and exit. Provide archive with '-i'. (This is a hack to quick check archive content until we have proper tooling.)"
)
(
"release-mode,R"
,
po
::
value
<
bool
>
(
&
fReleaseMode
)
->
implicit_value
(
true
),
"Copy and release each timeslice immediately after receiving it"
)
(
"help,h"
,
"produce help message"
)
;
...
...
This diff is collapsed.
Click to expand it.
algo/base/Options.h
+
2
−
0
View file @
b3f055c3
...
...
@@ -46,6 +46,7 @@ namespace cbm::algo
const
std
::
string
&
ChildId
()
const
{
return
fChildId
;
}
uint64_t
RunId
()
const
{
return
fRunId
;
}
bool
DumpArchive
()
const
{
return
fDumpArchive
;
}
bool
ReleaseMode
()
const
{
return
fReleaseMode
;
}
const
std
::
vector
<
Step
>&
Steps
()
const
{
return
fRecoSteps
;
}
...
...
@@ -71,6 +72,7 @@ namespace cbm::algo
std
::
string
fHistogramUri
;
int32_t
fHistogramHwm
;
bool
fDumpArchive
=
false
;
bool
fReleaseMode
=
false
;
ProfilingLevel
fProfilingLevel
=
ProfilingNone
;
std
::
string
fTimingsFile
;
int
fNumTimeslices
=
-
1
;
...
...
This diff is collapsed.
Click to expand it.
reco/app/cbmreco/main.cxx
+
10
−
1
View file @
b3f055c3
...
...
@@ -14,6 +14,7 @@
#include
"gpu/DeviceImage.h"
#include
"util/MemoryLogger.h"
#include
<StorableTimeslice.hpp>
#include
<TimesliceAutoSource.hpp>
#include
<log.hpp>
...
...
@@ -190,12 +191,20 @@ int main(int argc, char** argv)
L_
(
debug
)
<<
"Starting to fetch timeslices from source..."
;
auto
startFetchTS
=
std
::
chrono
::
high_resolution_clock
::
now
();
while
(
auto
t
s
=
source
.
get
())
{
while
(
auto
t
imeslice
=
source
.
get
())
{
if
(
tsIdx
<
opts
.
SkipTimeslices
())
{
tsIdx
++
;
continue
;
}
std
::
unique_ptr
<
fles
::
Timeslice
>
ts
;
if
(
opts
.
ReleaseMode
())
{
ts
=
std
::
make_unique
<
fles
::
StorableTimeslice
>
(
*
timeslice
);
timeslice
.
reset
();
}
else
{
ts
=
std
::
move
(
timeslice
);
}
auto
endFetchTS
=
std
::
chrono
::
high_resolution_clock
::
now
();
auto
durationFetchTS
=
endFetchTS
-
startFetchTS
;
extraMonitor
.
timeIdle
+=
...
...
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