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.
1719 Discussions

clBuildProgram error: include file not found

Pavel_V_Intel
Employee
429 Views

Hi,

I am trying to build program which uses include files from another folder. I use -I key to specifiy path to that folder, but if I use quotes in file name it fails to build on GPU (it is ok on CPU). Without quotes I cannot use path with spaces. Is this a known restriction or a bug?

System: Win7 x64; GPU Driver: 9.18.10.3165

Log:

Platform: Intel(R) OpenCL
Device:   Intel(R) HD Graphics 4000
Units:    16

Kernel file: kernel_median.cl

- Kernel build log ------------
-I "C:\_app_data\Intel\IPP\ipp\opencl\" -D BLK_X=128 -D BLK_Y=8
:11:10: fatal error: 'clpp.cl' file not found
#include "clpp.cl"
         ^

error: front end compiler failed build.
-------------------------------

Error -11 in clBuildProgram: CL_BUILD_PROGRAM_FAILURE

0 Kudos
1 Reply
Raghupathi_M_Intel
429 Views

Hi Pavel,

I was able to reproduce the issue. I will file a bug.

Thanks,
Raghu

0 Kudos
Reply