Closed dcousens closed 7 years ago
Disregard, this is a mirror repository. Sigh.
Hi, min((size_t) 1, (unsigned long)2); This suppose the size_t is 64bits, it is not correct. Beignet's size_t is 32bits by default, so the code is same as: min((uint) 1, (unsigned long)2); Of course, it is ambiguous.
intel-opencl-runtime and Cuda OpenCL don't have error, because the size_t is 64bits.
Similar, if you use:
min((size_t) 1, (uint)2);
It will pass on beignet but fail on intel-opencl-runtime and Cuda OpenCL.
Thanks for the response @champson, for some reason I thought size_t
would be specific to the hardware.
Problematic kernel code
CL_PROGRAM_BUILD_LOG
Even if
error: call to 'min' is ambiguous
is fair warning, that is a ridiculous error message.The error is isolated to
beignet
, does not happen on theintel-opencl-runtime
or Cuda OpenCL implementations.