PDA

View Full Version : include headers to .cl file



opencl_JEDI
03-05-2010, 02:26 AM
Hi,

I wrote a kernel in a .cl file, but when I include a .h file, and run code,
I get ""file.h" not found".
so I read the opencl spec, and found that I have to add the path to the headers to my buildprogram API (5.4.3 of 1.0spec), so this is my code line:


ciErrNum = clBuildProgram(cpProgram, 0, NULL, "-I C:/Users/localcontrol/internship/OpenCV/cv/include", NULL, NULL);

but it doesn't work, the program crashes at this line,

is anyone seeing what could be the problem,
I really need help with this.
thanks

affie
03-06-2010, 06:33 PM
This seems like a bug in the OpenCL implementation. Please contact the vendor whose OpenCL implementation you are using.