Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
HeteroFlow
THAPI
Commits
be32540e
Commit
be32540e
authored
Oct 16, 2020
by
Brice Videau
Browse files
Don't profile unsuccessful enqueues.
parent
2c1a3fff
Pipeline
#11615
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
opencl/opencl_model.rb
View file @
be32540e
...
...
@@ -1265,8 +1265,10 @@ register_extension_callbacks.call("clGetExtensionFunctionAddressForPlatform")
EOF
c
.
epilogues
.
push
<<
EOF
if (_event_profiling) {
int _set_retval =
#{
OPENCL_POINTER_NAMES
[
$clSetEventCallback
]
}
(*event, CL_COMPLETE, event_notify, NULL);
do_tracepoint(lttng_ust_opencl_profiling, event_profiling, _set_retval, *event);
if (_retval == CL_SUCCESS) {
int _set_retval =
#{
OPENCL_POINTER_NAMES
[
$clSetEventCallback
]
}
(*event, CL_COMPLETE, event_notify, NULL);
do_tracepoint(lttng_ust_opencl_profiling, event_profiling, _set_retval, *event);
}
if(_profile_release_event) {
#{
OPENCL_POINTER_NAMES
[
$clReleaseEvent
]
}
(*event);
event = NULL;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment