From: pengxin99 Date: Fri, 7 Jun 2024 06:28:26 +0000 (+0800) Subject: fix softmax r2r result wrong issue (llama/7811) X-Git-Tag: upstream/0.0.1642~607 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5eb983337eecdcc5d5984cf9af146a146665a627;p=pkg%2Fggml%2Fsources%2Fggml fix softmax r2r result wrong issue (llama/7811) --- diff --git a/src/ggml-sycl.cpp b/src/ggml-sycl.cpp index 3ff76474..0a645b2e 100644 --- a/src/ggml-sycl.cpp +++ b/src/ggml-sycl.cpp @@ -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; }