title: Fatal error: cuda.h: No such file or directory
body: <p>I successfully installed CUDA 8.0 in my PC and I can see its files by running the following commands in my Ubuntu 16.10:</p>
  
  <pre><code>$ sudo find / -name nvcc
  
  /usr/local/cuda-8.0/bin/nvcc
  
  $ sudo find / -name cuda
  
  /usr/local/cuda
  /usr/local/cuda-8.0/targets/x86_64-linux/include/thrust/system/cuda
  /usr/share/doc/cuda
  /usr/include/nvidia-367/cuda
  </code></pre>
  
  <p>Then, I got the following source code (has_cuda.c) to check out if CUDA is installed:</p>
  
  <pre><code>#include&lt;cuda.h&gt;
  
  int main ()
  {
      int deviceCount;
      cudaError_t e = cudaGetDeviceCount(&amp;deviceCount);
      return e == cudaSuccess ? deviceCount : -1;
  }
  </code></pre>
  
  <p>But running this code returns me the following error:</p>
  
  <pre><code>$ gcc has_cuda.c 
  
  has_cuda.c:1:17: fatal error: cuda.h: No such file or directory
  #include&lt;cuda.h&gt;
               ^
  compilation terminated.
  </code></pre>
  
  <p>I looked for cuda.h in my directories and found them at the following places:</p>
  
  <pre><code>$ sudo find / -name cuda.h
  
  /usr/local/cuda-8.0/targets/x86_64-linux/include/cuda.h
  /usr/include/nvidia-367/cuda/cuda.h
  /usr/include/linux/cuda.h
  /usr/src/linux-headers-4.8.0-22/include/linux/cuda.h
  /usr/src/linux-headers-4.8.0-22/include/uapi/linux/cuda.h
  /usr/src/linux-headers-4.8.0-32/include/linux/cuda.h
  /usr/src/linux-headers-4.8.0-32/include/uapi/linux/cuda.h
  </code></pre>
  
  <p>I am quite rookie on this, so, what can be happening? should I have to export any variable to point out where cuda.h is? how can I do this?</p>