try -I ./SOME_DIRECTORY or -I .\SOME_DIRECTORY
I cannot say if that's your problem but I have a "legacy" (sort of) CL application here and it turned out they had a problem with string escaping the correct characters with directory separators. Have you double-checked the separators are ok?
As per your observation, "-I " option is not working for clBuildProgram API. Right?
I have to hard code absolute include paths in my kernels.
Please can you share a simple test-case(host and kernel code) which manifests this problem? Please also let us know your system setup details: CPU, GPU, SDK, Driver, OS (Window/Linux) (32/64) etc.
Thanks, guys. I am passing in the absolute path, and yes, I am escaping the directory separators correctly.
Here is my build option:
"-I \"c:\\src\\openjpeg\\src\\lib\\openjp2\\\" "
This works with intel sdk on cpu, but AMD compiler is ignoring it.
Please try build option: "-I \"c:\\src\\openjpeg\\src\\lib\\openjp2\" "
Similar option worked for me to include a particular directory.
I also tried following options with latest Catalyst driver and APP SDK on Windows 7 and it worked fine.
For current directory: -I .
For parent directory: -I .\\..