I use theano 0.9.0, CUDA 8.0.61, gcc version 4.9.3, NVIDIA UNIX x86_64 Kernel Module 375.39, Ubuntu 16.04.2 LTS and I have a geforce 1060. CUDA works as I have done the tests.
But whenever I do the gpu test with theano (http://deeplearning.net/software/theano/tutorial/using_gpu.html) I get this error : ImportError: ('The following error happened while compiling the node', GpuElemwise{exp,no_inplace}((float64, vector)>), '\n', 'libnvrtc.so.7.5: cannot open shared object file: No such file or directory', '[GpuElemwise{exp,no_inplace}((float64, vector)>)]')
Which is really silly as I have CUDA 8, not CUDA 7.5 so of course it cannot find libnvrtc.so.7.5. How can I tell theano that I'm using CUDA 8 and not CUDA 7.5 ?
I have this overly complicated setup to my .bashrc :
- export PATH="/usr/local/cuda-8.0/bin:$PATH"
- export LD_LIBRARY_PATH="/usr/local/cuda-8.0/lib64"
- export CUDA_HOME=/usr/local/cuda-8.0
- export CUDA_ROOT=/usr/local/cuda-8.0
- export CPATH="$CPATH:~/.local/include"
- export CPATH="/usr/local/cuda-8.0/include:$CPATH"
- export LIBRARY_PATH="$LIBRARY_PATH:~/.local/lib"
- export LIBRARY_PATH="/usr/lib/nvidia-375:$LIBRARY_PATH"
- export LIBRARY_PATH="/usr/local/cuda-8.0/lib64:$LIBRARY_PATH"
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:~/.local/lib"
and my .theanorc is :
[nvcc]
flags=-D_FORCE_INLINES
[global]
device = cuda0
[cuda]
root = /usr/local/cuda-8.0/