Skip to content

Commit 3a5cd9d

Browse files
committed
fix wrong variable check by assert
1 parent ec2b787 commit 3a5cd9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ggml/src/ggml-sycl/add-id.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void ggml_sycl_add_id(ggml_backend_sycl_context& ctx, ggml_tensor* dst) {
5656
float* dst_d = (float*)dst->data;
5757

5858
const unsigned int max_work_group_size = ggml_sycl_info().max_work_group_sizes[ctx.device];
59-
assert(work_group_size % (WARP_SIZE * WARP_SIZE) == 0);
59+
assert(max_work_group_size % (WARP_SIZE * WARP_SIZE) == 0);
6060

6161
int threads = std::min((unsigned int)ne00, max_work_group_size); // cols
6262

0 commit comments

Comments
 (0)