Installing Theano on windows for gpu - alleged issue with nvcc version

I followed the instructions to install Theano to use GPU on Windows.

The problem is that I cannot follow these instructions precisely because I have a new GEForce GTX 980M graphics card and it only works with cuda 7.0. (The instructions suggest cuda 5.5). Everything works fine, except when it has time to start the GPU, then I get the error:

nvcc fatal   : Value '2008' is not defined for option 'cl-version'

['nvcc', '-shared', '-O3', '--use-local-env', '--cl-version=2008', '-Xlinker', '/DEBUG', '-D HAVE_ROUND', '-m64', '-Xcompiler', '-DCUDA_NDARRAY_CUH=bf8d22b192850a85a00263cce1175696,-D NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD', '-Ic:\\scisoft\\theano\\theano\\theano\\sandbox\\cuda', '-IC:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\lib\\site-packages\\numpy\\core\\include', '-IC:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\include', '-o', 'C:\\Users\\Thor\\AppData\\Local\\Theano\\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_70_Stepping_1_GenuineIntel-2.7.9-64\\cuda_ndarray\\cuda_ndarray.pyd', 'mod.cu', '-LC:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64\\libs', '-LC:\\SciSoft\\WinPython-64bit-2.7.9.4\\python-2.7.9.amd64', '-lpython27', '-lcublas', '-lcudart']

      

The version of nvcc I installed does not have version -2008 (which is believed to be out of date with the latest cuda 7.0, but 2010 is allowed). What's the best way to fix this? Do I have to hardcode it in Theano in the cuda \ nvcc_compiler.py file? I tried this and it looks like I will try using the 2008 version anyway. Is there a later version of Theano that would use a later version of nvcc?

+3


source to share


2 answers


I had a similar problem when trying to install Theano on Win 8.1 64bit with CUDA 7.0. Using a GTX 750Ti graphics card. I managed to get it to work by following these instructions .



+6


source


For me, it started working when I replaced

[nvcc]
flags = --use-local-env  --cl-version=2008

      

by



[nvcc]
compiler_bindir=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin

      

in the .ororor file.

+5


source







All Articles