Skip to content

Commit

Permalink
[SYCL] fix softmax r2r result wrong issue (#7811)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengxin99 authored Jun 7, 2024
1 parent c9ee711 commit d5c938c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ggml-sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9108,6 +9108,7 @@ static void soft_max_f32(const float * x, const float * mask, float * dst, const
// find the sum of exps in the block
tmp = warp_reduce_sum(tmp, item_ct1);
if (block_size > WARP_SIZE) {
item_ct1.barrier(sycl::access::fence_space::local_space);
if (warp_id == 0) {
buf[lane_id] = 0.f;
}
Expand Down

0 comments on commit d5c938c

Please sign in to comment.