The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Putting a space in path supplied to clBuildProgram()

Hi,

I am trying to use #include within a kernel. And despite what I originally read on many internet pages it does work. But now I am having trouble with the locations searched for the included header files. I use the options of clBuildProgram() to pass "-I /PATH_TO_FILES/" which works for paths with no spaces, but it doesn't work for a path with a space in it.

Does anybody know how to include spaces in this path?
-I have tried using "" around the path (correctly escaped using \) This doesn't work, even for paths without spaces.

Does anyone know where a relative path would use as it's basis (./) ?
-I've already tested and it's not the directory containing the host program and kernel file.

For what it's worth, I'm using MacOS. But obviously I'm hoping any solution is OS independent.

Re: Putting a space in path supplied to clBuildProgram()

Re: Putting a space in path supplied to clBuildProgram()

Well, super cool! It feels good to be useful once in a while!

For my part, I felt stupid when I found out about the -I option. It hadn't occurred to me at all; I just blindly tried putting the path in the #include statement, discovered that it worked, felt relieved, and went on to the next problem, of which there were many....