与 GPU 一起使用时 Theano 导入错误

Theano import error when used with GPU

我安装了 Anaconda Python 2.7.12 以及 numpy 1.11.2 和 scipy 0.18.1 版本。我已经通过 conda install 安装了 Theano 0.8.2。我在 .theanorc.txt 文件中添加了这些行:

[global]
floatX = float32 
device = gpu0

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

我在环境变量中设置了 CUDA 路径。我还在 cuda 安装中添加了 CUDNN v4.0。

然而当我做一个简单的

import theano

在 python 解释器中,它给了我以下错误并回退到 cpu。

`DEBUG: nvcc STDOUT nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
mod.cu
Creating library C:/Users/<USER_NAME>/AppData/Local/Theano/compiledir_Windows-10-10.0.14393-Intel64_Family_6_Model_94_Stepping_3_GenuineIntel-2.7.12-64/cuda_ndarray/cuda_ndarray.lib and object C:/Users/<USER_NAME>/AppData/Local/Theano/compiledir_Windows-10-10.0.14393-Intel64_Family_6_Model_94_Stepping_3_GenuineIntel-2.7.12-64/cuda_ndarray/cuda_ndarray.exp

ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: DLL load failed: The specified module could not be found.
WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu0 is not available (error: cuda unavailable)`

该错误也未指定缺少哪个 DLL。我不确定这是错误还是 theano installation/config 问题或 CUDA installation/config 问题。

谢谢

在重新安装 CUDAv8.0 后工作,很奇怪,因为特定于 GPU 的 CUDA 示例(如 devicequery)工作正常..