Cannot Locate Libraries.h files

Dear all,

I am trying to run a Cuda Program but cannot able to understand the issue occured below .

[root@cuda1 ~]# nvcc -o adarsh mygpu.cu
cc1plus: error: cuda_runtime.h: No such file or directory
mygpu.cu:3:18: error: cuda.h: No such file or directory
[root@cuda1 ~]# ls -ls

I tried to set path in .bashrc & nvcc.profile but don’t how to make it available.

Please help me to solve this.

Thanks & best regards,
Adarsh Sharma

You have to add the path to the include directory for NVCC. Actually, this should be possible by adding it to the nvcc.profile, as described in the NVCC documentation, but … you said that you already tried this…?

You may also try specifying it directly:
nvcc -o adarsh mygpu.cu ** -I /home/path/to/header/**