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

Hello,

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:

/usr/local/cuda-5.0/include/CL/cl.h

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

sx

Perhaps adding:

-I/usr/local/cuda-5.0/include

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?