Windows"创作者"之后的Cuda编译失败更新

时间:2017-07-30 16:12:41

标签: windows theano theano-cuda

我已经成功地在我的Windows 10盒子上使用Theano大约一年了。

然后Windows 10强迫我更新---" Creatives"大型更新。

此更新后,我在运行使用theano的代码时立即收到以下错误:

> C:\Winpython\WinPython-64bit-3.4.4.6Qt5\python-3.4.4.amd64\lib\site-packages\theano\sandbox\cuda\cnmem.cpp(39)
> : fatal error C1083: Cannot open include file: 'Windows.h': No such
> file or directory

完整的错误输出如下所示:

  

C:\ Winpython \ WinPython-64bit-3.4.4.6Qt5 \ python-3.4.4.amd64 \ lib \ site-packages \ theano \ sandbox \ cuda \ cuda_ndarray.cuh(17):警告C4005:&#39 ; PyString_Check' :宏重新定义           C:\ Winpython \ WinPython-64-3.4.4.6Qt5 \蟒-3.4.4.amd64 \ lib中\站点包\ numpy的\芯\包括\ numpy的/ npy_3kcompat.h(63)   :参见' PyString_Check'的先前定义   C:\ Winpython \ WinPython-64bit-3.4.4.6Qt5 \ python-3.4.4.amd64 \ lib \ site-packages \ theano \ sandbox \ cuda \ cuda_ndarray.cuh(18):警告C4005:' PyString_FromString&# 39; :宏重新定义           C:\ Winpython \ WinPython-64-3.4.4.6Qt5 \蟒-3.4.4.amd64 \ lib中\站点包\ numpy的\芯\包括\ numpy的/ npy_3kcompat.h(65)   :参见' PyString_FromString'的先前定义   C:\ Winpython \ WinPython-64bit-3.4.4.6Qt5 \ python-3.4.4.amd64 \ lib \ site-packages \ theano \ sandbox \ cuda \ cuda_ndarray.cuh(19):警告C4005:' PyString_AsString&# 39; :宏重新定义           C:\ Winpython \ WinPython-64-3.4.4.6Qt5 \蟒-3.4.4.amd64 \ lib中\站点包\ numpy的\芯\包括\ numpy的/ npy_3kcompat.h(72)   :参见' PyString_AsString'的先前定义   C:\ Winpython \ WinPython-64bit-3.4.4.6Qt5 \ python-3.4.4.amd64 \ lib \ site-packages \ theano \ sandbox \ cuda \ cuda_ndarray.cuh(20):警告C4005:' PyString_FromStringAndSize&# 39; :宏重新定义           C:\ Winpython \ WinPython-64-3.4.4.6Qt5 \蟒-3.4.4.amd64 \ lib中\站点包\ numpy的\芯\包括\ numpy的/ npy_3kcompat.h(66)   :参见' PyString_FromStringAndSize'的先前定义   C:\ Winpython \ WinPython-64bit-3.4.4.6Qt5 \ python-3.4.4.amd64 \ lib \ site-packages \ theano \ sandbox \ cuda \ cuda_ndarray.cuh(21):警告C4005:' PyString_Size&# 39; :宏重新定义           C:\ Winpython \ WinPython-64-3.4.4.6Qt5 \蟒-3.4.4.amd64 \ lib中\站点包\ numpy的\芯\包括\ numpy的/ npy_3kcompat.h(74)   :参见' PyString_Size'的先前定义   C:\ Winpython \ WinPython-64-3.4.4.6Qt5 \ python的-3.4.4.amd64 \ LIB \站点包\ theano \沙盘\ CUDA \ cnmem.cpp(39)   :致命错误C1083:无法打开包含文件:' Windows.h':没有这样的   文件或目录ERROR(theano.sandbox.cuda):无法编译   cuda_ndarray.cu :(' nvcc返回状态',2,'对于cmd',' nvcc -shared   -O3 --use-local-env --cl-version = 2013 -Xlinker / DEBUG -D HAVE_ROUND -m64 -Xcompiler -DCUDA_NDARRAY_CUH = mc72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API = NPY_1_7_API_VERSION,/ Zi,/ MD   -IC:\ Winpython \ WinPython-64-3.4.4.6Qt5 \ python的-3.4.4.amd64 \ LIB \站点包\ theano \沙盘\ CUDA   -IC:\ Winpython \ WinPython-64bit-3.4.4.6Qt5 \ python-3.4.4.amd64 \ lib \ site-packages \ numpy \ core \ include -IC:\ Winpython \ WinPython-64bit-3.4.4.6Qt5 \ python -3.4.4.amd64 \包括   -IC:\ Winpython \ WinPython-64bit-3.4.4.6Qt5 \ python-3.4.4.amd64 \ lib \ site-packages \ theano \ gof -o C:\ Users \ David \ AppData \ Local \ Theano \ compiledir_Windows-10 -10.0.15063-Intel64_Family_6_Model_94_Stepping_3_GenuineIntel-3.4.4-64 \ cuda_ndarray \ cuda_ndarray.pyd   mod.cu   -LC:\ Winpython \ WinPython-64bit-3.4.4.6Qt5 \ python-3.4.4.amd64 \ libs -LC:\ Winpython \ WinPython-64bit-3.4.4.6Qt5 \ python-3.4.4.amd64 -lcublas -lpython34 -lcudart')mod.cu

0 个答案:

没有答案