]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
sycl : fix wrong variable check by assert (llama/20903)
authorNeo Zhang <redacted>
Wed, 25 Mar 2026 09:48:37 +0000 (17:48 +0800)
committerGeorgi Gerganov <redacted>
Sat, 28 Mar 2026 11:39:09 +0000 (13:39 +0200)
* fix wrong variable check by assert

* use GGML api

src/ggml-sycl/add-id.cpp

index 8929017a999f206aa72e23aba73cb49812d91949..e0adc4fe42301796d40c62b74ec02f46f370243a 100644 (file)
@@ -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