From: Neo Zhang Jianyu Date: Wed, 10 Dec 2025 08:59:57 +0000 (+0800) Subject: fix softmax for iGPU (llama/17838) X-Git-Tag: upstream/1.8.3~156 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=c10b4f9a0183ba093b3e82f7fb9f55cd545a7406;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp fix softmax for iGPU (llama/17838) --- diff --git a/ggml/src/ggml-sycl/softmax.cpp b/ggml/src/ggml-sycl/softmax.cpp index 83b7c71b..b41124ac 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);