diff --git a/device/sycl/src/utils/make_prefix_sum_buff.sycl b/device/sycl/src/utils/make_prefix_sum_buff.sycl index 371e82e325..3c6d8683e7 100644 --- a/device/sycl/src/utils/make_prefix_sum_buff.sycl +++ b/device/sycl/src/utils/make_prefix_sum_buff.sycl @@ -43,8 +43,9 @@ vecmem::data::vector_buffer make_prefix_sum_buff( h.parallel_for( ::sycl::nd_range<1>(((sizes_sum_view.size() / 32) + 1) * 32, 32), - [sizes_sum_view, prefix_sum_view](::sycl::id<1> idx) { - device::fill_prefix_sum(idx, sizes_sum_view, + [sizes_sum_view, + prefix_sum_view](const ::sycl::nd_item<1> idx) { + device::fill_prefix_sum(idx.get_global_id(), sizes_sum_view, prefix_sum_view); }); })