-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL][LIT] Mark spec const LIT as pass #1875
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][LIT] Mark spec const LIT as pass #1875
Conversation
Exactly the two spec const LIT tests that start passing locally for OpenCL CPU and GPU are failing on the buildbots. Weird. Both tests failled on the ACC. |
Interesting that this passes for Windows but not for Linux. |
@@ -5,7 +5,7 @@ | |||
// RUN: %ACC_RUN_PLACEHOLDER %t.out | |||
// TODO: re-enable after CI drivers are updated to newer which support spec | |||
// constants: | |||
// XFAIL: linux && opencl | |||
// XFAIL: linux && opencl && !gpu && !cpu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another idea:
// XFAIL: linux && opencl && !gpu && !cpu | |
// XFAIL: linux && opencl && accelerator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will make the test fail as expected though we do not get test coverage if it actually passes for CPU and GPU.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if to duplicate the test to make an accelerator-specific version with an XFAIL in it?
I guess the problem is that for OpenCL the test find // XFAIL: linux && opencl && !gpu && !cpu evaluates as We could change the test to // XFAIL: linux && opencl && accelerator but then we do not see if it passes as we want for the CPU and GPU. |
@againull Do you have a good advise for this situation? 2 tests fail on linux+opencl+accelerator only. |
Artur (@againull) recommended trying '// XFAIL: linux && opencl && accelerator'. |
@v-klochkov, @againull, I think you are missing the point @bjoernknafla is trying to make.
We need more flexible/configurable testing system, but I think it will require significant changes. |
What about this: we add extra test files named
A bit unorthodox but prevents code duplication and makes it easy to move back to a single file later on. Gives us time until we rework the testing approach. |
This approach looks the easiest and clear to me. I vote for it. |
86f748e
to
514519c
Compare
Sorry that it took me so long to come back to this. I have put the discussed changes in place to:
|
Interesting, seems that clang-format testing can fail for LIT tests. Changing the formatting. |
The spec_const LIT tests start to pass for Intel CPU and GPU devices with the Intel OpenCL GPU driver 20.19.16754. Duplicate the test for accelerators, e.g., FPGA, and only fail it for these. As a result regressions are now caught for OpenCL CPU and GPU devices. Fixes #1873 Signed-off-by: Bjoern Knafla <[email protected]>
514519c
to
b9b7e4d
Compare
Thanks! |
The spec_const LIT tests start to pass for Intel CPU and GPU devices
with the Intel OpenCL GPU driver 20.19.16754.
Fixes #1873
Signed-off-by: Bjoern Knafla [email protected]