Replies: 2 comments 6 replies
-
@intel/dpcpp-specification-reviewers, should |
Beta Was this translation helpful? Give feedback.
6 replies
-
Thank you for your example and description. My understanding is that the cuda example requires "volatile" for "float4". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I converted the cuda code (https://github.com/zjin-lcf/HeCBench/tree/master/bh-cuda) to sycl with Intel DPCT, and then compiled the sycl codes.
The error message is shown below. Could the method be marked volatile ? Thanks.
/path/to/build/bin/../include/sycl/CL/sycl/swizzles.def:79:50: note: candidate function template not viable: 'this' argument has type 'volatile sycl::float4' (aka 'volatile vec<float, 4>'), but method is not marked volatile
__SYCL_SCALAR_ACCESS(N == 2 || N == 3 || N == 4, y, 1)
^
/path/to/build/bin/../include/sycl/CL/sycl/swizzles.def:79:50: note: candidate function template not viable: 'this' argument has type 'volatile sycl::float4' (aka 'volatile vec<float, 4>'), but method is not marked volatile
main.dp.cpp:416:46: error: no matching member function for call to 'z'
const float chz = posMassd[ch].z();
Beta Was this translation helpful? Give feedback.
All reactions