Skip to content

Add DPCTLQueue_SubmitBarrier to dpctI-capi  #503

Closed
@oleksandr-pavlyk

Description

@oleksandr-pavlyk

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions