简体   繁体   English

Theano安装,nvcc不在路径中

[英]Theano installation, nvcc not in the path

I have installed theano on windows7,64bit on winpython using their guide http://deeplearning.net/software/theano/install_windows.html and I thought it worked since when I ran their first example I did have the expected results and no errors. 我在winpython上使用他们的指南http://deeplearning.net/software/theano/install_windows.html在windows7,64bit上安装了theano,我认为它起作用了,因为当我运行他们的第一个例子时,我确实得到了预期的结果并且没有错误。 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: 我想继续安装部件: 配置Theano用于GPU使用但是当我再次运行它时我在python控制台中有这个:

runfile('C:/Users/PS/Desktop/prova theano.py', 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: 我正在使用的.theanorc文件是:

[global]
device = gpu
floatX = float32

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

[nvcc]
flags=-LC:\SciSoft\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\libs
compiler_bindir=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin

and I added it in C:\\SciSoft\\WinPython-64bit-2.7.9.4\\settings as I understood from the guide. 我在C:\\ SciSoft \\ WinPython-64bit-2.7.9.4 \\ settings中添加了它,正如我从指南中所理解的那样。

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. 顺便说一句,我检查了C:\\ SciSoft \\ env.bat,当我写nvcc时,它说没有找到文件,而我对其他检查没有任何问题。 Is that because I haven't an NVIDIA card? 那是因为我没有NVIDIA卡吗? I am totaly lost.Any help? 我完全失去了。任何帮助? Thank you 谢谢

Theano is designed to work (almost) identically on both CPU and GPU. Theano旨在(几乎)在CPU和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. 你不需要GPU来使用Theano,如果你没有Nvidia GPU,那么你就不应该尝试安装任何特定于GPU的东西。

aleju, if you don't want (or can't) use theano with GPU, you just need to change .theanorc to use only cpu. aleju,如果你不想(或不能)使用带有GPU的theano,你只需要改变.theanorc只使用cpu。 This will not cause any problem, except for poor performance. 这不会导致任何问题,除了性能不佳。

[global]
device = cpu
...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM