在Windows上使用GPU运行Theano,python 2.7,cuda 7.5

时间:2016-01-30 17:15:35

标签: theano theano-cuda

我已经在py 2.7上运行了没有GPU的Theano很长一段时间了。然后决定检查GPU支持。所以按照这里给出的所有步骤: http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-microsoft-windows/index.html#abstract

然后在msvc 2013中打开设备查询sln并构建它(如上面链接中所述,检查安装是否成功)。在运行时它给我一个错误(附加屏幕截图)。

enter image description here

当我使用Theanorc文件内容在py 2.7中使用gpu运行启动程序时,会出现类似的错误:

[global]
device = gpu1
floatX = float32
nocleanup = True
[cuda] 
root = /usr/local/cuda-7.5
[nvcc]
fastmath = True
compiler_bindir=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\cl.exe

没有收到nvcc -V和cl.exe的错误。 操作系统 - win7 SP1 NVIDIA GeForce GT650M

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:1)

当我的视频卡驱动程序与CUDA Toolkit不匹配时,我遇到了类似的错误。

确保使用CUDA安装程序中包含的视频驱动程序。如果您不确定,请重新安装最新的CUDA Toolkit安装程序并使用它更新您的视频驱动程序。