From 545287369de5a26e9d2e31ebebbc2963f9a8336e Mon Sep 17 00:00:00 2001 From: nscipione Date: Thu, 11 Apr 2024 17:16:05 +0100 Subject: [PATCH] Update shuffle API for compatibility reason SYCL2020 introduced a new API for shuffle operation and the old one seems deprecated in latest intel/llvm open source compiler commit. This patch update that call to the new one to keep compiler compatibility. --- src/operations/blas1/IndexMaxMin.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operations/blas1/IndexMaxMin.hpp b/src/operations/blas1/IndexMaxMin.hpp index d40367d6c..97b56f72b 100644 --- a/src/operations/blas1/IndexMaxMin.hpp +++ b/src/operations/blas1/IndexMaxMin.hpp @@ -98,8 +98,8 @@ PORTBLAS_INLINE void IndexMaxMin::eval( // reduction within the sub_group for (index_t i = sg_local_range >> 1; i > 0; i >>= 1) { if (sg_local_id < i) { - element_t shfl_val = sg.shuffle_down(val.get_value(), i); - index_t shfl_idx = sg.shuffle_down(val.get_index(), i); + element_t shfl_val = sycl::shift_group_left(sg, val.get_value(), i); + index_t shfl_idx = sycl::shift_group_left(sg, val.get_index(), i); value_t shfl{shfl_idx, shfl_val}; val = op::eval(val, shfl); }