Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] updating tests for SYCL2020 errc conformance #857

Merged

Conversation

cperkinsintel
Copy link

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 [email protected]

…minor mistakes in our tests. fixed

Signed-off-by: Chris Perkins <[email protected]>
@cperkinsintel cperkinsintel changed the title [SYCL] updating tests for new SYCL2020 errc [SYCL] updating tests for SYCL2020 errc conformance Feb 18, 2022
@cperkinsintel
Copy link
Author

/verify with intel/llvm#5582

@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
@@ -394,7 +394,7 @@ int main() {
myQueue.submit([&](handler &cgh) {
accessor<int, 2, access::mode::write, access::target::device,
access::placeholder::false_t>
B(Buffer, cgh, range<2>(20, 20), id<2>(10, 10));
B(Buffer, cgh, range<2>(10, 10), id<2>(10, 10));

Choose a reason for hiding this comment

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

These changes look unrelated to SYCL2020 errc conformance. Can we remove them from this PR?

Copy link
Author

Choose a reason for hiding this comment

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

One of the conformance checks is that out-of-bounds range args should trigger an exception in accessor construction. I added that. Without this change, this test triggers that error.

@@ -3,6 +3,9 @@
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// UNSUPPORTED: (opencl && gpu)

Choose a reason for hiding this comment

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

All changes in this file doesn't look related to SYCL2020 errc conformance, I couldn't find any errc checks in the file.
It is possible to move them to a separate PR if they are unrelated? Does it make sense to create a separate test for your modified test case (which shows a problem on opencl gpu) to avoid disabling whole test for opencl gpu?

Copy link
Author

Choose a reason for hiding this comment

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

This test was using an out-of-bounds range argument to an accessor. And, oddly, that was masking an error that is occurring over on OCL:GPU. I reduced that down and reported it, there is a ticket against it now. But in the interim, this test won't pass on OCL:GPU, not due to any bug in the error system, but due to a real bug that OCL:GPU has handling offsets. Strangely, that is the only device with the problem. L0, OCL:CPU, OCL:ACC and Host are all fine.

@againull againull self-requested a review February 24, 2022 22:54
@romanovvlad romanovvlad merged commit c7b9604 into intel:intel Mar 3, 2022
romanovvlad pushed a commit to intel/llvm that referenced this pull request Mar 3, 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. They will be done in a follow up PR s.

The tests were updated as well. intel/llvm-test-suite#857
has the matching changes.
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Apr 12, 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 [email protected]
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 [email protected]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants