Donghyeon Jeong commited on
Commit
bcbbf47
·
1 Parent(s): 10ac92f

sycl: fix undefined variable in work group size check (llama/14843)

Browse files
Files changed (1) hide show
  1. ggml/src/ggml-sycl/ggml-sycl.cpp +1 -1
ggml/src/ggml-sycl/ggml-sycl.cpp CHANGED
@@ -3531,7 +3531,7 @@ static void ggml_sycl_mul_mat_id(ggml_backend_sycl_context & ctx,
3531
  stream->memset(dev_cur_src1_row.get(), 0, sizeof(int))));
3532
 
3533
  const unsigned int max_work_group_size = ggml_sycl_info().max_work_group_sizes[ctx.device];
3534
- assert(work_group_size % (WARP_SIZE * WARP_SIZE) == 0);
3535
 
3536
  {
3537
  sycl::range<3> block_dims(1, 1, std::min((unsigned int)ne10, max_work_group_size));
 
3531
  stream->memset(dev_cur_src1_row.get(), 0, sizeof(int))));
3532
 
3533
  const unsigned int max_work_group_size = ggml_sycl_info().max_work_group_sizes[ctx.device];
3534
+ assert(max_work_group_size % (WARP_SIZE * WARP_SIZE) == 0);
3535
 
3536
  {
3537
  sycl::range<3> block_dims(1, 1, std::min((unsigned int)ne10, max_work_group_size));