Skip to content

[SYCL] Ensure correct errc thrown for unassociated placeholder accessor (4.7.6.9) #5737

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

Merged
merged 6 commits into from
Jun 18, 2022

Conversation

cperkinsintel
Copy link
Contributor

@cperkinsintel cperkinsintel commented Mar 5, 2022

a simple fix for ensuring correct errc is thrown for an unassociated placeholder accessor (4.7.6.9)

Signed-off-by: Chris Perkins [email protected]

Note that this fix is not complete. It only addresses the most common cases. There are still cases where an unassociated placholder accessor could get by undetected and crash in the kernel. Unfortunately, the fix for those cases is not trivial. I have the outlines of a fix, but it would be disruptive, too disruptive for such a low priority fix. I will open a ticket about it and discuss it with various stakeholders.

Expanded testing to cover this here: intel/llvm-test-suite#890

…placeholder accessor (4.7.6.9)

Signed-off-by: Chris Perkins <[email protected]>
@cperkinsintel
Copy link
Contributor Author

/verify with intel/llvm-test-suite#890

@cperkinsintel cperkinsintel marked this pull request as ready for review March 8, 2022 21:45
@cperkinsintel cperkinsintel requested a review from a team as a code owner March 8, 2022 21:45
@cperkinsintel cperkinsintel requested review from v-klochkov and sergey-semenov and removed request for v-klochkov March 8, 2022 21:45
@sergey-semenov
Copy link
Contributor

@cperkinsintel It seems like this change can be covered by a unit test. Could you please add one?

@cperkinsintel
Copy link
Contributor Author

@sergey-semenov - I forgot to update the description. I already made a test for it here, this is also waiting for review: intel/llvm-test-suite#890

@sergey-semenov
Copy link
Contributor

Right, I meant that since handling this error case is limited to the DPCPP runtime component (i.e. does not require running any device code), a unit test would probably be a better way to verify this as opposed to a full on E2E test.

Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Since the feature needs to report at the time of enqueuing a kernel, E2E tests should be included anyway. As such I am fine to not have a unittest for it.

@pvchupin
Copy link
Contributor

/verify with intel/llvm-test-suite#890

@cperkinsintel
Copy link
Contributor Author

This got overlooked. All tests are passing. Needs merging.

@pvchupin pvchupin merged commit 4f9935a into intel:sycl Jun 18, 2022
pvchupin pushed a commit to intel/llvm-test-suite that referenced this pull request Jun 18, 2022
Update test to check for correct errc when attempting to use an unassociated placeholder accessor.

Test for PR intel/llvm#5737

Signed-off-by: Chris Perkins [email protected]
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…#890)

Update test to check for correct errc when attempting to use an unassociated placeholder accessor.

Test for PR intel#5737

Signed-off-by: Chris Perkins [email protected]
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.

4 participants