Skip to content

Commit

Permalink
Update shuffle API for compatibility reason
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
s-Nick committed Apr 11, 2024
1 parent 2aa9a0c commit b7a428c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operations/blas1/IndexMaxMin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ PORTBLAS_INLINE void IndexMaxMin<is_max, is_step0, lhs_t, rhs_t>::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);
}
Expand Down

0 comments on commit b7a428c

Please sign in to comment.