zuzuf / freeocl

Automatically exported from code.google.com/p/freeocl
GNU Lesser General Public License v3.0
31 stars 8 forks source link

#include statements in opencl kernels fail #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. have an opencl kernel that has an #include anyheader.h

What is the expected output? What do you see instead?
I'd expect the header to be found instead the preprocessor log reads:

** preprocessor log:
/tmp/fileVl0WKf:8:27: fatal error: mandelbrot_cl.h: No such file or directory
compilation terminated.

What version of the product are you using? On what operating system?
svn trunk, r161 - opensuse 11.2/atom N270

Original issue reported on code.google.com by bren...@fridu.net on 29 Dec 2011 at 1:17

GoogleCodeExporter commented 9 years ago
As long as you tell the compiler where to look for your headers, it works. You 
should pass the required paths through the compiler options string when calling 
clBuildProgram (with -I/path/to/your/headers).

Original comment by zuzu...@gmail.com on 13 May 2012 at 11:53