Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
fix linux compile
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyu-intel committed Jul 12, 2024
1 parent fb7fc64 commit 8bce8a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neural_speed/core/layers/ne_bestla_sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>);
T sum = sycl::reduce_over_group(sg, tmp_sum, sycl::plus<T>());
slm[jj] = sum;
maxs = std::max(maxs, sum);
}
Expand All @@ -654,7 +654,7 @@ class MHA {
fsums += slm[jj + 1];
}
}
float gsum = sycl::reduce_over_group(sg, fsums, sycl::plus<float>);
float gsum = sycl::reduce_over_group(sg, fsums, sycl::plus<float>());
T scale = 1.f / gsum;
jj = wg_loc_id * 2;
for (; jj < seq_acc_pad; jj += WgSize * 2) {
Expand Down Expand Up @@ -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>);
T sum = sycl::reduce_over_group(sg, tmp_sum, sycl::plus<T>());
O[O_off + kk] = sum;
}
});
Expand Down

0 comments on commit 8bce8a0

Please sign in to comment.