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

[SYCL][Graph] Add exceptions for inconsistent contexst or devices on begin_recording #251

Conversation

mfrancepillois
Copy link
Collaborator

Adds exception throwing if Graph and Queue contexts/devices differ when calling begin_recording.
Adds tests to check for thrown exceptions.

@mfrancepillois mfrancepillois added the Graph Implementation Related to DPC++ implementation and testing label Jul 6, 2023
@mfrancepillois mfrancepillois force-pushed the maxime/exeption_contexts_devices_begin_recording branch from 2da710c to 1f724e0 Compare July 6, 2023 15:10
Copy link
Collaborator

@Bensuo Bensuo left a comment

Choose a reason for hiding this comment

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

LGTM just a few comments.

@mfrancepillois mfrancepillois force-pushed the maxime/exeption_contexts_devices_begin_recording branch from 1f724e0 to 8e9d2a5 Compare July 6, 2023 16:43
@mfrancepillois mfrancepillois requested a review from EwanC July 6, 2023 16:43
@mfrancepillois mfrancepillois force-pushed the maxime/exeption_contexts_devices_begin_recording branch from 8e9d2a5 to 4b9388a Compare July 7, 2023 08:57
@EwanC
Copy link
Collaborator

EwanC commented Jul 7, 2023

@mfrancepillois mfrancepillois force-pushed the maxime/exeption_contexts_devices_begin_recording branch from 4b9388a to 380ee3a Compare July 7, 2023 10:24
@EwanC
Copy link
Collaborator

EwanC commented Jul 7, 2023

This test should also be updated https://github.com/reble/llvm/blob/sycl-graph-develop/sycl/unittests/Extensions/CommandGraph.cpp#L157

Verified locally on Windows that your fix works 👍

Copy link
Collaborator

@julianmi julianmi left a comment

Choose a reason for hiding this comment

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

LGTM

@mfrancepillois mfrancepillois force-pushed the maxime/exeption_contexts_devices_begin_recording branch from 380ee3a to 05e3fb9 Compare July 7, 2023 13:22
… device on begin_recording

Adds expection throwing if Graph and Queue contexts/devices differ when calling begin_recording.
Adds tests to check for thrown exeptions.
@mfrancepillois mfrancepillois force-pushed the maxime/exeption_contexts_devices_begin_recording branch from 05e3fb9 to 9441e73 Compare July 7, 2023 14:23
@mfrancepillois mfrancepillois merged commit c7389c9 into sycl-graph-develop Jul 7, 2023
@mfrancepillois mfrancepillois deleted the maxime/exeption_contexts_devices_begin_recording branch July 7, 2023 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Graph Implementation Related to DPC++ implementation and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants