You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @AnastasiaStulova, @svenvh, @azabazno
__opencl_c_work_group_collective_functions is not defined for SPIRV https://github.com/llvm/llvm-project/blob/release/14.x/clang/lib/Headers/opencl-c-base.h#L67,L75, the test has compiling errors with the command clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang++ -cc1 -include opencl-c.h -cl-std=CL3.0 -x cl -O2 -emit-llvm-bc -triple spir64 work_group_all.cl :
work_group_all.cl:5:18: error: implicit declaration of function 'work_group_all' is invalid in OpenCL
int result = work_group_all((input[tid] > input[tid+1]));
^
./work_group_all.cl:5:18: note: did you mean 'sub_group_all'?
./opencl-c.h:16534:23: note: 'sub_group_all' declared here
int __ovld __conv sub_group_all(int predicate);
Here is work_group_all.cl source:
__kernel void test_wg_all(global float *input, global int *output)
{
int tid = get_global_id(0);
int result = work_group_all((input[tid] > input[tid+1]));
output[tid] = result;
}
The test compiles successfully when add -D__opencl_c_work_group_collective_functions=1 or add __opencl_c_work_group_collective_functions definition for SPIRV on opencl-c-base.h.
Is the __opencl_c_work_group_collective_functions missing on opencl-c-base.h? Could you please have a look? Thanks very much.
The text was updated successfully, but these errors were encountered:
Hi, @AnastasiaStulova, @svenvh, @azabazno
__opencl_c_work_group_collective_functions is not defined for SPIRV https://github.com/llvm/llvm-project/blob/release/14.x/clang/lib/Headers/opencl-c-base.h#L67,L75, the test has compiling errors with the command
clang+llvm-14.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang++ -cc1 -include opencl-c.h -cl-std=CL3.0 -x cl -O2 -emit-llvm-bc -triple spir64 work_group_all.cl
:work_group_all.cl:5:18: error: implicit declaration of function 'work_group_all' is invalid in OpenCL
int result = work_group_all((input[tid] > input[tid+1]));
^
./work_group_all.cl:5:18: note: did you mean 'sub_group_all'?
./opencl-c.h:16534:23: note: 'sub_group_all' declared here
int __ovld __conv sub_group_all(int predicate);
Here is work_group_all.cl source:
__kernel void test_wg_all(global float *input, global int *output)
{
int tid = get_global_id(0);
}
The test compiles successfully when add -D__opencl_c_work_group_collective_functions=1 or add __opencl_c_work_group_collective_functions definition for SPIRV on opencl-c-base.h.
Is the __opencl_c_work_group_collective_functions missing on opencl-c-base.h? Could you please have a look? Thanks very much.
The text was updated successfully, but these errors were encountered: