[SYCL] Fix start index in reduction loop

This commit is contained in:
James Price 2016-11-17 21:01:30 +00:00
parent ffac9fc352
commit 02bff60870

View File

@ -180,7 +180,7 @@ T SYCLStream<T>::dot()
for (; i < N; i += item.get_global_range()[0])
wg_sum[li] += ka[i] * kb[i];
for (int offset = item.get_local_range()[0]; offset > 0; offset /= 2)
for (int offset = item.get_local_range()[0] / 2; offset > 0; offset /= 2)
{
item.barrier(cl::sycl::access::fence_space::local_space);
if (li < offset)