PSan PSan - 1 year ago 268
Python Question

Theano installation, nvcc not in the path

I have installed theano on windows7,64bit on winpython using their guide and I thought it worked since when I ran their first example I did have the expected results and no errors. I wanted to go ahead and install the part: Configure Theano for GPU use but when I runned again it I had this in the python console:

runfile('C:/Users/PS/Desktop/prova', wdir='C:/Users/PS/Desktop')
ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again.
ERROR:theano.sandbox.cuda:nvcc compiler not found on $PATH. Check your nvcc installation and try again.
NP time: 0.156000[s], theano time: 0.181000[s] (times should be close when run on CPU!)
Result difference: 0.000000

the .theanorc file I am using is:

device = gpu
floatX = float32

root = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5

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

and I added it in C:\SciSoft\WinPython-64bit-\settings as I understood from the guide.

By the way, I checked the C:\SciSoft\env.bat and when I write where nvcc it says not file found instead I have no problems with the other checkings. Is that because I haven't an NVIDIA card? I am totaly lost.Any help? Thank you

Answer Source

Theano is designed to work (almost) identically on both CPU and GPU. You don't need a GPU to use Theano and if you don't have a Nvidia GPU then you shouldn't try installing any GPU-specific stuff at all.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download