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
7340997c
Commit
7340997c
authored
Dec 16, 2020
by
Thomas Applencourt
Browse files
Only count real memorytransfer
parent
9ff6142c
Pipeline
#12178
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
opencl/clprof_callbacks.cpp.erb
View file @
7340997c
...
@@ -66,7 +66,8 @@ static void clprof_<%= dbt_event.name %>_callback(
...
@@ -66,7 +66,8 @@ static void clprof_<%= dbt_event.name %>_callback(
/
/
%>
%>
<%
if
(
dbt_event
.
name
.
include?
(
"clEnqueue"
)
or
dbt_event
.
name
.
include?
(
"Alloc"
)
)
and
dbt_event
.
fields
.
key?
(
"size"
)
%>
<%# To do handle Alloc and cl_mem_host_ptr %>
<%
if
dbt_event
.
name
.
include?
(
"clEnqueue"
)
and
dbt_event
.
fields
.
key?
(
"size"
)
%>
memory_trafic[hpt_function_name_t(hostname,process_id, thread_id, "
<%=
dbt_event
.
name_striped
%>
")].delta(size);
memory_trafic[hpt_function_name_t(hostname,process_id, thread_id, "
<%=
dbt_event
.
name_striped
%>
")].delta(size);
<%
end
%>
<%
end
%>
...
...
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