Skip to content

Add DPCTLQueue_SubmitBarrier to dpctI-capi  #503

Closed

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

Activity

  1. changed the title [-]DPCTLQueue_SubmitBarrier to C-API [/-] [+]Add DPCTLQueue_SubmitBarrier to C-API [/+] on Jun 30, 2021
  2. changed the title [-]Add DPCTLQueue_SubmitBarrier to C-API [/-] [+]Add DPCTLQueue_SubmitBarrier to dpctI-capi [/+] on Jun 30, 2021
  3. oleksandr-pavlyk commented on Aug 18, 2021

    @oleksandr-pavlyk
    ContributorAuthor

    Closing via #524

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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