Skip to content

Commit 20982df

Browse files
umar456syurkevi
authored andcommitted
Fix linear jit workgroup calculations for CPU devices
1 parent 6228a4d commit 20982df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/opencl/jit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void evalNodes(vector<Param> &outputs, const vector<Node *> &output_nodes) {
288288
uint out_elements = outDims[3] * out_info.strides[3];
289289
uint groups = divup(out_elements, local_0);
290290

291-
global_1 = divup(groups, 1000) * local_1;
291+
global_1 = divup(groups, work_group_size) * local_1;
292292
global_0 = divup(groups, global_1) * local_0;
293293

294294
} else {

0 commit comments

Comments
 (0)