Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DPCTLQueue_SubmitBarrier to dpctI-capi #503

Closed
oleksandr-pavlyk opened this issue Jun 30, 2021 · 1 comment
Closed

Add DPCTLQueue_SubmitBarrier to dpctI-capi #503

oleksandr-pavlyk opened this issue Jun 30, 2021 · 1 comment
Assignees

Comments

@oleksandr-pavlyk
Copy link
Collaborator

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.

@Alexander-Makaryev @vlad-perevezentsev @diptorupd

@oleksandr-pavlyk oleksandr-pavlyk changed the title DPCTLQueue_SubmitBarrier to C-API Add DPCTLQueue_SubmitBarrier to C-API Jun 30, 2021
@oleksandr-pavlyk oleksandr-pavlyk changed the title Add DPCTLQueue_SubmitBarrier to C-API Add DPCTLQueue_SubmitBarrier to dpctI-capi Jun 30, 2021
@oleksandr-pavlyk
Copy link
Collaborator Author

Closing via #524

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants