Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
65ec762d
Commit
65ec762d
authored
10 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #5892: Expose running statistics to caller
parent
7e0470ce
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
RTCP/Cobalt/GPUProc/src/cuda/Kernels/Kernel.h
+3
-0
3 additions, 0 deletions
RTCP/Cobalt/GPUProc/src/cuda/Kernels/Kernel.h
RTCP/Cobalt/GPUProc/src/cuda/PerformanceCounter.h
+3
-0
3 additions, 0 deletions
RTCP/Cobalt/GPUProc/src/cuda/PerformanceCounter.h
with
6 additions
and
0 deletions
RTCP/Cobalt/GPUProc/src/cuda/Kernels/Kernel.h
+
3
−
0
View file @
65ec762d
...
...
@@ -76,6 +76,9 @@ namespace LOFAR
void
enqueue
(
const
BlockID
&
blockId
);
// Warning: user has to make sure the Kernel is not running!
RunningStatistics
getStats
()
{
return
itsCounter
.
getStats
();
}
protected
:
// Construct a kernel.
Kernel
(
const
gpu
::
Stream
&
stream
,
...
...
This diff is collapsed.
Click to expand it.
RTCP/Cobalt/GPUProc/src/cuda/PerformanceCounter.h
+
3
−
0
View file @
65ec762d
...
...
@@ -38,6 +38,9 @@ namespace LOFAR
void
recordStart
(
const
gpu
::
Stream
&
stream
);
void
recordStop
(
const
gpu
::
Stream
&
stream
);
// Warning: user must make sure that the counter is not running!
RunningStatistics
getStats
()
{
logTime
();
return
stats
;
}
private
:
const
std
::
string
name
;
...
...
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