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安裝/配置問題。
感謝