summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpengxin99 <pengxin.yuan@intel.com>2024-06-07 14:28:26 +0800
committerGitHub <noreply@github.com>2024-06-07 14:28:26 +0800
commitd5c938cd7716b9a2ace49a43a469dfbffcff4d28 (patch)
tree04b38594af0451ca8f56c8dafeb5538df94217f7
parentc9ee7118d5644dd3df70ea6878b36a9761616aab (diff)
[SYCL] fix softmax r2r result wrong issue (#7811)
-rw-r--r--ggml-sycl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ggml-sycl.cpp b/ggml-sycl.cpp
index 3ff76474..0a645b2e 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;
}