Skip to content

Commit 4ec6291

Browse files
authored
sycl: fix undefined variable in work group size check (#14843)
1 parent a12363b commit 4ec6291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-sycl/ggml-sycl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3531,7 +3531,7 @@ static void ggml_sycl_mul_mat_id(ggml_backend_sycl_context & ctx,
35313531
stream->memset(dev_cur_src1_row.get(), 0, sizeof(int))));
35323532

35333533
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);
3534+
assert(max_work_group_size % (WARP_SIZE * WARP_SIZE) == 0);
35353535

35363536
{
35373537
sycl::range<3> block_dims(1, 1, std::min((unsigned int)ne10, max_work_group_size));

0 commit comments

Comments
 (0)