diff --git a/neural_speed/core/layers/ne_bestla_sycl.cpp b/neural_speed/core/layers/ne_bestla_sycl.cpp index 6c77643fc..442847cdd 100644 --- a/neural_speed/core/layers/ne_bestla_sycl.cpp +++ b/neural_speed/core/layers/ne_bestla_sycl.cpp @@ -631,7 +631,7 @@ class MHA { tmp *= attn_scale; } T tmp_sum = tmp[0] + tmp[1]; - T sum = sycl::reduce_over_group(sg, tmp_sum, sycl::plus); + T sum = sycl::reduce_over_group(sg, tmp_sum, sycl::plus()); slm[jj] = sum; maxs = std::max(maxs, sum); } @@ -654,7 +654,7 @@ class MHA { fsums += slm[jj + 1]; } } - float gsum = sycl::reduce_over_group(sg, fsums, sycl::plus); + float gsum = sycl::reduce_over_group(sg, fsums, sycl::plus()); T scale = 1.f / gsum; jj = wg_loc_id * 2; for (; jj < seq_acc_pad; jj += WgSize * 2) { @@ -684,7 +684,7 @@ class MHA { } } T tmp_sum = tmp[0] + tmp[1]; - T sum = sycl::reduce_over_group(sg, tmp_sum, sycl::plus); + T sum = sycl::reduce_over_group(sg, tmp_sum, sycl::plus()); O[O_off + kk] = sum; } });