Relative include paths don't work in clBuildProgram

Relative include paths don't work in clBuildProgram

I am using the 2014 beta SDK.  

I would like to pass "-I  RELATIVE\\PATH\\TO\\FILES" in as a build parameters, but this doesn't work.

I have to pass the absolute path instead. So, this forces me to hard code the build path, which is annoying

when I try building from a different location.

Thanks,

Aaron

5 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

Hi,

I can't reproduce this issue (I'm using 2013 version of the SDK though, but I don't think this is important here).
I have created a kernel file with single line:
#include "kernel.cl"
And I'm passing relative path in build options to clBuildProgram like this for example:
"-I..\\..\\FolderWithKernels"
And it works fine. So please double check that you're passing correct path.

Thanks,
Yuri

Thanks, Yuri.  I should clarify: this is only a problem when targetting my AMD GPU using the Intel SDK. 

When I target the Intel CPU, I don't even need to enter an include path. 

Cheers,

Aaron

 

 

In this case you should ask this question on AMD forum. Since when you run the application and, as you say - target AMD GPU, you're selecting AMD platform (and the device, of course), so it's AMD runtime which builds the cl program.

Thanks,
Yuri

OK, thanks Yuri.

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui