Skip to content

Commit a8fcf40

Browse files
committed
change out-of-bound get_local_size to 1
1 parent d0a9e7f commit a8fcf40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libclc/clc/lib/amdgcn/workitem/clc_get_local_size.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ _CLC_OVERLOAD _CLC_DEF size_t __clc_get_local_size(uint dim) {
1717
case 2:
1818
return __builtin_amdgcn_workgroup_size_z();
1919
default:
20-
return 0;
20+
return 1;
2121
}
2222
}

0 commit comments

Comments
 (0)