Skip to content

Commit d5c938c

Browse files
authored
[SYCL] fix softmax r2r result wrong issue (ggml-org#7811)
1 parent c9ee711 commit d5c938c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ggml-sycl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9108,6 +9108,7 @@ static void soft_max_f32(const float * x, const float * mask, float * dst, const
91089108
// find the sum of exps in the block
91099109
tmp = warp_reduce_sum(tmp, item_ct1);
91109110
if (block_size > WARP_SIZE) {
9111+
item_ct1.barrier(sycl::access::fence_space::local_space);
91119112
if (warp_id == 0) {
91129113
buf[lane_id] = 0.f;
91139114
}

0 commit comments

Comments
 (0)