cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

boxerab
Challenger

AMD OpenCL compiler seems to ignore the -I include directory build option

When I pass in  "-I SOME_DIRECTORY", the directory is ignored.

I have to hard code absolute include paths in my kernels.

Thanks,

Aaron

0 Likes
5 Replies
nou
Exemplar

try -I ./SOME_DIRECTORY or -I .\SOME_DIRECTORY

0 Likes
maxdz8
Elite

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?

0 Likes
dipak
Big Boss

Hi Aaron,

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.

Regards,

0 Likes

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.



0 Likes

Hi,

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 .\\..

Regards,

0 Likes