From 4391d6c72973ab78cd6fd1076aee14cbd0571e77 Mon Sep 17 00:00:00 2001 From: "Yuan, Pengxin" Date: Fri, 7 Jun 2024 04:27:12 +0000 Subject: [PATCH] [SYCL] fix softmax r2r result wrong issue --- ggml-sycl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml-sycl.cpp b/ggml-sycl.cpp index 3ff76474d..0a645b2e1 100644 --- a/ggml-sycl.cpp +++ b/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; }