OpenCl doesn't work (existing!!) cl.h is not found?!?!


I’d like to compile and run a small OpenCl program for a test. I have cuda 5.0 installed and cuda works fine.

When I try to compile the OpenCl program, I get the following error:

“…fatal error: CL/cl.h: No such file or directory…”

Fact is, CL/cl.h is in place, it’s in the default location:


What’s the problem? Needs another PATH to be set?


Perhaps adding:


to the compile line (or the equivalent if using Eclipse). Should be redundant, but perhaps your wrapper is missing that portion. Are you using nvcc command or gcc command?