Skip to content

Commit 1e4579f

Browse files
authored
opencl: fix crash when warming up MoE on Adreno (#22876)
1 parent 527045b commit 1e4579f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ggml/src/ggml-opencl/ggml-opencl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13132,7 +13132,7 @@ static void moe_router_reoerder(ggml_backend_t backend, const ggml_tensor * src,
1313213132
CL_CHECK(clSetKernelArg(kernel, 4, sizeof(int), &ne02));
1313313133

1313413134
size_t histogram_global_size[] = {(size_t)(((ne21 + 63) / 64) * 64), static_cast<size_t>(ne20), 1};
13135-
size_t histogram_local_size[] = {64, static_cast<size_t>(ne20), 1};
13135+
size_t histogram_local_size[] = {64, 1, 1};
1313613136
backend_ctx->enqueue_ndrange_kernel(kernel, 3, histogram_global_size, histogram_local_size, src);
1313713137

1313813138
// Scan

0 commit comments

Comments
 (0)