Skip to content

Commit

Permalink
small fix required for SYCL/clang20 (#784)
Browse files Browse the repository at this point in the history
* sycl: changed sycl::id to sycl::nd_item for recent version of sycl

* clang formatting

---------

Co-authored-by: Fabrice Le Goff <fabrice.le.goff@cern.ch>
  • Loading branch information
flg and Fabrice Le Goff authored Nov 27, 2024
1 parent 03ba36c commit c06c784
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions device/sycl/src/utils/make_prefix_sum_buff.sycl
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ vecmem::data::vector_buffer<device::prefix_sum_element_t> make_prefix_sum_buff(
h.parallel_for<kernels::fill_prefix_sum>(
::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);
});
})
Expand Down

0 comments on commit c06c784

Please sign in to comment.