Replies: 1 comment
-
The issue has resolved. Get the info from #3179. Here is the modified code.
|
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.
-
hi,
I try to pass a local buffer to a inline function, however, it is not clear which types can be use for local buffer. Can the local buffer pass to inline function?
Below is the error during compilation.
note: candidate function not viable: no known conversion from 'const accessor<float, 1, access::mode::read_write, access::target::local> *' to 'float *' for argument device_inline void getPartialDerivative(float *buf ...
Sample code
device_inline void getPartialDerivative(float *buf ... )
{
}
Q.submit([&](handler &h) {
accessor<float,1, access::mode::read_write, access::target::local>
buf(range(slmSize), h);
range global {size};
range local {16};
h.parallel_for(nd_range(global, local), [=](sycl::nd_item<1> it) {
Beta Was this translation helpful? Give feedback.
All reactions