OpenCL cl_qcom_limited_printf extension not working on GPU kernel
Join Date: 16 Dec 13
Posts: 2
Posted: Thu, 2014-01-02 10:11
I cannot seem to get the cl_qcom_limited_printf to work. Can anyone post a working example?
static const char *gKernelSource =
#ifdef GPU_OPENCL
"#pragma OPENCL EXTENSION cl_qcom_limited_printf : enable\n"
#endif
"__kernel void __polynomialExpansion(__global float * dst,"
...
E/PeakMotion-OpenCL(11491): Error in kernel: BC-src-code:1:26: error: pragma opencl extension not supported
E/PeakMotion-OpenCL(11491): #pragma OPENCL EXTENSION cl_qcom_limited_printf : enable
E/PeakMotion-OpenCL(11491): ^
E/PeakMotion-OpenCL(11491): BC-src-code:2:984: error: missing terminating '"' character
After a little more experimentation it seems the cl_khr_* extensions are supported but all of the others cannot be enabled.
Here is the extensions string provided by the runtime:
Hi,
I've noticed the same as well for the printf stuff.
For some reason though, when enabling the cl_khr_local_int32_base_atomics, the kernel compiles but the results
are wrong (global atomics are fine).
eyal