嗨,我正在尝试在 gpu 上运行 theano。
我的配置是
Windows 7的
CUDA 工具包 8.0
蟒蛇蟒蛇3.5
视觉工作室 14.0
===============================
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: ('nvcc return status', 1, 'for cmd', 'nvcc -shared -O3 -LC:\\Anaconda\\libs --compiler-bindir C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin -Xlinker /DEBUG -D HAVE_ROUND -m64 -Xcompiler -DCUDA_NDARRAY_CUH=mc72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD -IC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\theano\\sandbox\\cuda -IC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\numpy\\core\\include -IC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3\\include -IC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\theano\\gof -o C:\\Users\\aniketb\\AppData\\Local\\Theano\\compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-3.5.2-64\\cuda_ndarray\\cuda_ndarray.pyd mod.cu -LC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3\\libs -LC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3 -lcublas -lpython35 -lcudart')
WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not available (error: cuda unavailable)
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
['nvcc', '-shared', '-O3', '-LC:\\Anaconda\\libs', '--compiler-bindir', 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin', '-Xlinker', '/DEBUG', '-D HAVE_ROUND', '-m64', '-Xcompiler', '-DCUDA_NDARRAY_CUH=mc72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD', '-IC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\theano\\sandbox\\cuda', '-IC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\numpy\\core\\include', '-IC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3\\include', '-IC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\theano\\gof', '-o', 'C:\\Users\\aniketb\\AppData\\Local\\Theano\\compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-3.5.2-64\\cuda_ndarray\\cuda_ndarray.pyd', 'mod.cu', '-LC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3\\libs', '-LC:\\Users\\aniketb\\AppData\\Local\\Continuum\\Anaconda3', '-lcublas', '-lpython35', '-lcudart']
runfile('C:/Python27/test.py', wdir='C:/Python27')
[Elemwise{exp,no_inplace}(<TensorType(float32, vector)>)]
Looping 1000 times took 12.502791 seconds
Result is [ 1.23178029 1.61879337 1.52278066 ..., 2.20771813 2.29967761
1.62323284]
Used the cpu
任何想法 ?