]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
sycl: fix undefined variable in work group size check (#14843)
authorDonghyeon Jeong <redacted>
Thu, 24 Jul 2025 04:50:41 +0000 (13:50 +0900)
committerGitHub <redacted>
Thu, 24 Jul 2025 04:50:41 +0000 (12:50 +0800)
ggml/src/ggml-sycl/ggml-sycl.cpp

index 872eb4b052db9dafc2bcb1db23cd158d6ce5ba44..a023d6fb4525ba09670af311b44540dde7ddc855 100644 (file)
@@ -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));