You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL-MLIR]: Runtime workaround for paralllel_for (#7303)
The following test case (using a SYCL parallel_for) fails to run
correctly due to a SYCL RT function (dim_loop_impl) which uses a complex
templated implementation which "confuses" cgeist. As a workaround we can
use the older SYCL RT implementation which used a regular for loop.
Test case:
```
void host_parallel_for(std::array<int, N> &A) {
auto q = queue{};
device d = q.get_device();
std::cout << "Using " << d.get_info<info::device::name>() << "\n";
auto range = sycl::range<1>{N};
{
auto buf = buffer<int, 1>{A.data(), range};
q.submit([&](handler &cgh) {
auto A = buf.get_access<access::mode::write>(cgh);
cgh.parallel_for<class kernel_parallel_for>(
range, [=](sycl::id<1> id) { A[3] = 33; });
});
}
}
Signed-off-by: Tiotto, Ettore <[email protected]>
0 commit comments