You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DPC++ implements SYCL extension supporting enqueueing of barriers.
Using such barriers with sycl queues that support profiling would allow us to build context manager class for collecting host/asynchronous timing information, like in the example from IntelPython/numba-dpex#147.
Constructor of such context manager class will take SyclQueue as an argument, and verify that it supports profiling.
The __enter__ method of such manager will enqueue the barrier and save the event in its internal state.
The __exit__ method will enqueue another barrier and save that event too. It will wait for both events to enter completed state, retrieve profiling info.
The class will also provide the info to retrieve durations from collected timestamps.
Activity
[-]DPCTLQueue_SubmitBarrier to C-API [/-][+]Add DPCTLQueue_SubmitBarrier to C-API [/+][-]Add DPCTLQueue_SubmitBarrier to C-API [/-][+]Add DPCTLQueue_SubmitBarrier to dpctI-capi [/+]oleksandr-pavlyk commentedon Aug 18, 2021
Closing via #524