Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c549ab8

Browse filesBrowse files
committed
Fix linear jit workgroup calculations for CPU devices
1 parent a143a44 commit c549ab8
Copy full SHA for c549ab8

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/backend/opencl/jit.cpp

Copy file name to clipboardExpand all lines: src/backend/opencl/jit.cpp
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.