OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1663 Discussions

Current path not a default include directory for clBuildProgram?

Sean_S_3
Beginner
183 Views

Hi, I ran into a problem with the Intel 2013 R3 OpenCL SDK where a header file in the current directory was not being included in the kernel source file when calling clBuildProgram without any build options.  I had to pass "-I ." as a build option for the header file to be found and included, which everything worked fine thereafter.  Is this suppose to be required, considering it's not necessary to specify to gcc or msvc the current path as an include path?

0 Kudos
1 Reply
Dmitry_K_Intel
Employee
183 Views

Hi Sean,

Just note, that gcc and msvc are executed on developers machine while clBuildProgram on end user machine. The difference is security.

Reply