We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 2020 rev. 4 specifies that SYCL should accept span for array reductions here, but it isn't currently supported.
For example, I think the following code should work:
int *histogram = sycl::malloc_shared<int>(16,q); q.submit([&](sycl::handler &h) { h.parallel_for(sycl::range<1>(N), sycl::reduction(sycl::span<int>(histogram,16), std::plus<>()), [=](sycl::id<1> i, auto &histo) { histo[i%16] += 1; }); });
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
SYCL 2020 rev. 4 specifies that SYCL should accept span for array reductions here, but it isn't currently supported.
For example, I think the following code should work:
The text was updated successfully, but these errors were encountered: