Skip to content

Commit

Permalink
xpu: ocl: enable profiling for copy
Browse files Browse the repository at this point in the history
  • Loading branch information
atkassen committed Jul 2, 2024
1 parent acb37fb commit e565857
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/xpu/ocl/stream_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ status_t stream_impl_t::copy(impl::stream_t *stream,
return status::success;
}

if (is_profiling_enabled()) {
auto ocl_event = utils::make_unique<gpu::intel::ocl::ocl_event_t>(
std::vector<xpu::ocl::wrapper_t<cl_event>> {out_event});
stream_profiler->register_event(std::move(ocl_event));
}

if (flags() & stream_flags::out_of_order)
gpu::intel::ocl::ocl_event_t::from(out_dep).events
= {std::move(out_event)};
Expand Down

0 comments on commit e565857

Please sign in to comment.