2016-12-01 76 views
0

我有Anaconda Python 2.7.12与numpy 1.11.2和scipy 0.18.1版本安装。我通过conda安装安装了Theano 0.8.2。我在.theanorc.txt文件中添加了这些行:Theano导入错误,当用于GPU

[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安装/配置问题或CUDA安装/配置问题。

感谢

回答

0

CUDAv8.0重新安装后的工作,真是奇怪,因为具体到GPU像DEVICEQUERY的CUDA样品正常工作..