From 05d3e65046d79b4b878478abf5fd082a8a787843 Mon Sep 17 00:00:00 2001 From: Fabrice Le Goff Date: Tue, 26 Nov 2024 14:59:34 +0100 Subject: [PATCH 1/2] sycl: changed sycl::id to sycl::nd_item for recent version of sycl --- device/sycl/src/utils/make_prefix_sum_buff.sycl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/device/sycl/src/utils/make_prefix_sum_buff.sycl b/device/sycl/src/utils/make_prefix_sum_buff.sycl index 371e82e325..57b1c1d46d 100644 --- a/device/sycl/src/utils/make_prefix_sum_buff.sycl +++ b/device/sycl/src/utils/make_prefix_sum_buff.sycl @@ -43,8 +43,8 @@ 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); }); }) From 870c1b3e896a27024cccffdbf06e4535ffbcee86 Mon Sep 17 00:00:00 2001 From: Fabrice Le Goff Date: Wed, 27 Nov 2024 10:30:05 +0100 Subject: [PATCH 2/2] clang formatting --- device/sycl/src/utils/make_prefix_sum_buff.sycl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/device/sycl/src/utils/make_prefix_sum_buff.sycl b/device/sycl/src/utils/make_prefix_sum_buff.sycl index 57b1c1d46d..3c6d8683e7 100644 --- a/device/sycl/src/utils/make_prefix_sum_buff.sycl +++ b/device/sycl/src/utils/make_prefix_sum_buff.sycl @@ -43,7 +43,8 @@ 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](const ::sycl::nd_item<1> idx) { + [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); });