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

Relative paths, intel sdk, cmake, and visual studio plugin

ABoxe
Beginner
351 Views

I have a cmake project that I have started adding opencl support to.

For those of you who are not familiar with it, cmake is a cross-platform build system.

Typically, the ide project files reside in a folder separate from the source files.

So, I have everything working now, but I find that I have to specify the absolute path of all *.cl files

when reading in the opencl source before compiling with clCreateProgramWithSource.

 Is there a way of using relative paths?  I can use relative paths when I create the visual studio project

manually, when all *.cl files are in the usual source directory inside the project directory.

 

Thanks,

Aaron

 

 

 

 

0 Kudos
0 Replies
Reply