From 2e9eab80c26d4b7e64f27c48b5af683c35c28742 Mon Sep 17 00:00:00 2001 From: Neo Zhang Jianyu Date: Wed, 10 Dec 2025 16:59:57 +0800 Subject: [PATCH] fix softmax for iGPU (#17838) --- ggml/src/ggml-sycl/softmax.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml/src/ggml-sycl/softmax.cpp b/ggml/src/ggml-sycl/softmax.cpp index 83b7c71b6..b41124acc 100644 --- a/ggml/src/ggml-sycl/softmax.cpp +++ b/ggml/src/ggml-sycl/softmax.cpp @@ -277,7 +277,7 @@ static void soft_max_f32_sycl(const float *x, const T *mask, const int id = get_current_device_id(); const size_t smpbo = ggml_sycl_info().devices[id].smpbo; - if (nbytes_shared <= smpbo) { + if (nbytes_shared <= smpbo && ncols_x <= max_block_size) { launch_soft_max_kernels<32, 64, 128, 256, 512, 1024, 2048, 4096>( x, mask, sinks, dst, params, stream, block_dims, block_nums, nbytes_shared);