I'm using Intel OpenCL SDK 2012 on Linux and I get the following error message when I compile my kernel:
:5:48: warning: OpenCL extension 'cl_intel_printf' is not supported - ignoring
This does not make sense since I can use it and it's working.
In my code I first check for cl_intel_printf with
#if defined cl_intel_printf
and then I enable it with
#pragma OPENCL EXTENSION cl_intel_printf : enable
This warning is quite annoying since I want to compile my OpenCL code with
as a build parameter during development. This obviously does not work since the false warning prevents the code from executing.
I also noticed that
seems to be ignored since the build log contains
Kernel was successfully vectorized
As far as I understand it vectorization is an optimization step.
How can I get rid of the warning?