Skip to content

Commit 0c5c7ba

Browse files
author
Henry Linjamäki
committed
opencl: remove a self-referential macro
PoCL fails to compile due to a self-referential macro in ggml-opencl_mm.cl (`#define sub_group_reduce_add sub_group_reduce_add`) on some devices: ``` error: /home/linehill/.cache/pocl/kcache/tempfile_qlSuTg.cl:1048:11 <Spelling=/home/linehill/.cache/pocl/kcache/tempfile_qlSuTg.cl:851:30>: use of undeclared identifier 'sub_group_reduce_add' ... ```
1 parent ab6ab8f commit 0c5c7ba

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ggml/src/ggml-opencl/kernels/ggml-opencl_mm.cl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,6 @@ float qcom_sub_group_reduce_add(float sum) {
847847
return sum;
848848
}
849849
#define sub_group_reduce_add qcom_sub_group_reduce_add
850-
#else
851-
#define sub_group_reduce_add sub_group_reduce_add
852850
#endif
853851

854852
#undef THREADS_PER_BLK

0 commit comments

Comments
 (0)