Skip to content

[SYCL] Ensure correct sycl::errc for SYCL2020 #5582

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

Conversation

cperkinsintel
Copy link
Contributor

@cperkinsintel cperkinsintel commented Feb 16, 2022

The SYCL2020 specification has quite a few errc values it expects thrown exceptions to have. Most of the existing ones are fine, but there are several cases that need updating. After this there are some other changes that will need to be done for errc conformance, but those changes are slightly more involved and I did not undertake them here. I'll open separate PRs for those.

This PR may seem to touch a lot of files, but they are each small independent accesses. If it's easier to grok, just go through the individual commits.

The tests were updated as well. intel/llvm-test-suite#857 has the matching changes.

… code. This ensures that it does.

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
…e correct errc value.

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
… the error.

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
…ption

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
…ss mode

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
…ation

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
…nvalid is used

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
… for range

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
@cperkinsintel
Copy link
Contributor Author

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

@cperkinsintel cperkinsintel marked this pull request as ready for review February 23, 2022 20:19
@cperkinsintel cperkinsintel requested a review from a team as a code owner February 23, 2022 20:19
alexbatashev
alexbatashev previously approved these changes Feb 23, 2022
Copy link
Contributor

@alexbatashev alexbatashev left a comment

Choose a reason for hiding this comment

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

LGTM. Some stylistic nits.

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
@bader bader changed the title [SYCL] ensure correct sycl::errc for SYCL2020 [SYCL] Ensure correct sycl::errc for SYCL2020 Feb 26, 2022
@cperkinsintel
Copy link
Contributor Author

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

@cperkinsintel
Copy link
Contributor Author

ping to someone who can merge. @romanovvlad or @bader or others. This and its brother-in-test intel/llvm-test-suite#857 are ready and approved.

romanovvlad pushed a commit to intel/llvm-test-suite that referenced this pull request Mar 3, 2022
in intel/llvm#5582 we are adding an update that ensures
that the errc of any exception is correct as specified in the
SYCL2020 spec. Here we are updating and expanding the
tests to accompany

Signed-off-by: Chris Perkins chris.perkins@intel.com
@romanovvlad romanovvlad merged commit 270e78d into intel:sycl Mar 3, 2022
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…suite#857)

in intel#5582 we are adding an update that ensures
that the errc of any exception is correct as specified in the
SYCL2020 spec. Here we are updating and expanding the
tests to accompany

Signed-off-by: Chris Perkins chris.perkins@intel.com
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.

3 participants