From: Donghyeon Jeong Date: Thu, 24 Jul 2025 04:50:41 +0000 (+0900) Subject: sycl: fix undefined variable in work group size check (llama/14843) X-Git-Tag: upstream/0.0.2404~50 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=8b93dd3b604562f4a247afe88af08dcafde1913f;p=pkg%2Fggml%2Fsources%2Fggml sycl: fix undefined variable in work group size check (llama/14843) --- diff --git a/src/ggml-sycl/ggml-sycl.cpp b/src/ggml-sycl/ggml-sycl.cpp index 872eb4b0..a023d6fb 100644 --- a/src/ggml-sycl/ggml-sycl.cpp +++ b/src/ggml-sycl/ggml-sycl.cpp @@ -3531,7 +3531,7 @@ static void ggml_sycl_mul_mat_id(ggml_backend_sycl_context & ctx, stream->memset(dev_cur_src1_row.get(), 0, sizeof(int)))); const unsigned int max_work_group_size = ggml_sycl_info().max_work_group_sizes[ctx.device]; - assert(work_group_size % (WARP_SIZE * WARP_SIZE) == 0); + assert(max_work_group_size % (WARP_SIZE * WARP_SIZE) == 0); { sycl::range<3> block_dims(1, 1, std::min((unsigned int)ne10, max_work_group_size));