Open kpp opened 5 years ago
This is a bug in the type matching code used when creating a kernel. The fact that Point
contains the substring int
is causing the crude type string matching code to run awry (https://github.com/cogciprocate/ocl/blob/master/ocl/src/standard/kernel.rs#L1628). Type names returned from a call to clGetKernelArgInfo
(with CL_KERNEL_ARG_TYPE_NAME
) are simply string matched using str::contains
. The reason I used contains
must have been that different implementations used different formats in the type name result but I can't remember. Will need to find a more robust way to parse the type name string.
I'll try to come up with a fix as soon as I have time but feel free to take a look yourself.
I switched from Beignet to intel-ocl and I got this error:
I used
.disable_arg_type_check()
as a temporary solution however I'd like to know how to get rid of this error.Project (67 lines): https://github.com/kpp/test_ocl/
Install intel-opencl:
Run the project: