From: Neo Zhang Date: Wed, 25 Mar 2026 09:48:37 +0000 (+0800) Subject: sycl : fix wrong variable check by assert (#20903) X-Git-Tag: upstream/0.0.8611~98 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=53dc8b59bf51eafe5d5d0be7b8d3a6039abf6862;p=pkg%2Fggml%2Fsources%2Fllama.cpp sycl : fix wrong variable check by assert (#20903) * fix wrong variable check by assert * use GGML api --- diff --git a/ggml/src/ggml-sycl/add-id.cpp b/ggml/src/ggml-sycl/add-id.cpp index 8929017a9..e0adc4fe4 100644 --- a/ggml/src/ggml-sycl/add-id.cpp +++ b/ggml/src/ggml-sycl/add-id.cpp @@ -56,7 +56,7 @@ void ggml_sycl_add_id(ggml_backend_sycl_context& ctx, ggml_tensor* dst) { float* dst_d = (float*)dst->data; 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); + GGML_ASSERT(max_work_group_size % (WARP_SIZE * WARP_SIZE) == 0); int threads = std::min((unsigned int)ne00, max_work_group_size); // cols