Skip to content

Conversation

@vlad-perevezentsev
Copy link
Collaborator

This PR adds a static method wait for the SyclEventRaw class with a call to DPCTLEvent_WaitAndThrow

@vlad-perevezentsev vlad-perevezentsev self-assigned this Aug 17, 2021
@oleksandr-pavlyk oleksandr-pavlyk changed the title Ad a static method wait for the SyclEventRaw class Add a static method wait for the SyclEventRaw class Aug 17, 2021
@vlad-perevezentsev vlad-perevezentsev force-pushed the cython_wait branch 2 times, most recently from 81fc629 to 768c6cd Compare August 17, 2021 19:23

@staticmethod
def wait(event):
if isinstance(event, list):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should work even if event is a tuple, or any iterable object of events (need not be a list).

@oleksandr-pavlyk oleksandr-pavlyk merged commit 6533536 into IntelPython:refactor/SyclEvent Aug 24, 2021
@vlad-perevezentsev vlad-perevezentsev deleted the cython_wait branch June 20, 2023 10:53
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

Successfully merging this pull request may close these issues.

2 participants