-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL] Ensure correct access mode in handler::copy (#3109) #3111
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] Ensure correct access mode in handler::copy (#3109) #3111
Conversation
This patch introduces compile-time checks to cl::sycl::handler::copy functions that ensure the correctness of accessors' access mode (section 4.8.6 of SYCL-1.2.1 specification).
Unfortunately, I don't have access to Jenkins (Server Not Found). Could you please share the error message of failing Jenkins/Precommit check? |
@bader is correct here: #3111 (comment) - I was looking into the wrong part of the log file |
Jenkins/Precommit runs llvm-test-suite on accelerators not provided by GitHub CI. The error is reported for this line: https://github.com/intel/llvm-test-suite/blob/intel/SYCL/Basic/handler/handler_mem_op.cpp#L171
It looks like it might be a bug in the reduction implementation. Tagging @v-klochkov and @Pennycook. |
It looks like SYCL spec doesn't list |
Agreed. I can't see any issues with the reduction implementation, but the test at https://github.com/intel/llvm-test-suite/blob/intel/SYCL/Basic/handler/handler_mem_op.cpp#L168 is explicitly trying to use I think this is an issue with the test. I can't see why we would want to allow values to be copied between atomic accessors. |
Good catch. Indeed, atomic mode is not listed for the accessor modes that can be passed to handler::copy(). The fix for the LIT test is uploaded: intel/llvm-test-suite#126 |
This patch introduces compile-time checks to
cl::sycl::handler::copy
functions that ensure the correctness of accessors' access mode (section 4.8.6 of SYCL-1.2.1 specification).Closes #3109