I am trying to install Theano on my windows desktop and be able to use GPU there.
I am following this tutorial and IT DOES NOT WORK out of box!
I don’t think it is a complete waste of time, but it is sort data mining problem going through that detail tutorial. I only found less than 5 lines of code helpful which is included below.
I have already set up CUDA in visual studio before, so please refer to this post for the work that has already been done.
what I did only for theano:
- Install Anaconda Python
- pip install theano
-
conda install mingw libpython
- Download Microsoft 10 SDK and install
- Add the following system environment (thanks to this NVIDIA post)
- LIB=C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\ucrt\x64
- INCLUDE=C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt
- .theanorc.txt[global]
device = gpu
floatX = float32[nvcc]
flags=-LC:\Anaconda\libs
compiler_bindir=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin# Thanks to this Stackoverflow post
And here is a screenshot of it is working!
Pay attention to the time.