2014-10-31 133 views
0

我正在使用Windows 8.1 64位。我已經安裝了具有學術執照的冠層。我的筆記本電腦有Nvidia GeForce GT750m在Windows 8.1的Canopy上安裝Theano for GPU 750m時出錯

我已經使用Theano的git存儲庫中的python setup.py develop安裝了Theano。我安裝了Visual Studio 2013和Cuda Toolkit 64位。 Cuda樣品工作正常。

Theanoarc文件:

[global] 
device = gpu 
floatX = float32 

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

我碰到下面的錯誤,而這樣做import theano

c:\users\harsh\appdata\local\enthought\canopy\app\appdata\canopy-1.4.1.1975.win-x86_64\include\pymath.h(22): warning: dllexport/dllimport conflict with "round" 

c:\program files\nvidia gpu computing toolkit\cuda\v6.5\include\math_functions.h(2455): here; dllimport/dllexport dropped 



mod.cu(672): warning: conversion from pointer to smaller integer 



mod.cu(954): warning: statement is unreachable 



mod.cu(1114): error: namespace "std" has no member "min" 



mod.cu(1145): error: namespace "std" has no member "min" 



mod.cu(1173): error: namespace "std" has no member "min" 



mod.cu(1174): error: namespace "std" has no member "min" 



mod.cu(1317): error: namespace "std" has no member "min" 



mod.cu(1318): error: namespace "std" has no member "min" 



mod.cu(1442): error: namespace "std" has no member "min" 



mod.cu(1443): error: namespace "std" has no member "min" 



mod.cu(1742): error: namespace "std" has no member "min" 



mod.cu(1777): error: namespace "std" has no member "min" 



mod.cu(1781): error: namespace "std" has no member "min" 



mod.cu(1814): error: namespace "std" has no member "min" 



mod.cu(1821): error: namespace "std" has no member "min" 



mod.cu(1853): error: namespace "std" has no member "min" 



mod.cu(1861): error: namespace "std" has no member "min" 



mod.cu(1898): error: namespace "std" has no member "min" 



mod.cu(1905): error: namespace "std" has no member "min" 



mod.cu(1946): error: namespace "std" has no member "min" 



mod.cu(1960): error: namespace "std" has no member "min" 



mod.cu(2684): warning: conversion from pointer to smaller integer 



mod.cu(3750): error: namespace "std" has no member "min" 



mod.cu(3752): error: namespace "std" has no member "min" 



mod.cu(3784): error: namespace "std" has no member "min" 



mod.cu(3786): error: namespace "std" has no member "min" 



mod.cu(3789): error: namespace "std" has no member "min" 



mod.cu(3791): error: namespace "std" has no member "min" 



mod.cu(3794): error: namespace "std" has no member "min" 



mod.cu(3795): error: namespace "std" has no member "min" 



mod.cu(3836): error: namespace "std" has no member "min" 



mod.cu(3838): error: namespace "std" has no member "min" 



mod.cu(4602): error: namespace "std" has no member "min" 



mod.cu(4604): error: namespace "std" has no member "min" 



31 errors detected in the compilation of "C:/Users/Harsh/AppData/Local/Temp/tmpxft_00001e58_00000000-10_mod.cpp1.ii". 

mod.cu 


['nvcc', '-shared', '-g', '-O3', '--compiler-bindir', 'C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\bin', '-Xlinker', '/DEBUG', '-m64', '-Xcompiler', '-DCUDA_NDARRAY_CUH=d67f7c8a21306c67152a70a88a837011,/Zi,/MD', '-IC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\User\\lib\\site-packages\\theano\\sandbox\\cuda', '-IC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\User\\lib\\site-packages\\numpy\\core\\include', '-IC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\App\\appdata\\canopy-1.4.1.1975.win-x86_64\\include', '-o', 'C:\\Users\\Harsh\\AppData\\Local\\Theano\\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-2.7.6-64\\cuda_ndarray\\cuda_ndarray.pyd', 'mod.cu', '-LC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\User\\libs', '-LC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\App\\appdata\\canopy-1.4.1.1975.win-x86_64\\libs', '-LNone\\lib', '-LNone\\lib64', '-LC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\App\\appdata\\canopy-1.4.1.1975.win-x86_64', '-lpython27', '-lcublas', '-lcudart'] 
ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: ('nvcc return status', 2, 'for cmd', 'nvcc -shared -g -O3 --compiler-bindir C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\bin -Xlinker /DEBUG -m64 -Xcompiler -DCUDA_NDARRAY_CUH=d67f7c8a21306c67152a70a88a837011,/Zi,/MD -IC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\User\\lib\\site-packages\\theano\\sandbox\\cuda -IC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\User\\lib\\site-packages\\numpy\\core\\include -IC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\App\\appdata\\canopy-1.4.1.1975.win-x86_64\\include -o C:\\Users\\Harsh\\AppData\\Local\\Theano\\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-2.7.6-64\\cuda_ndarray\\cuda_ndarray.pyd mod.cu -LC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\User\\libs -LC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\App\\appdata\\canopy-1.4.1.1975.win-x86_64\\libs -LNone\\lib -LNone\\lib64 -LC:\\Users\\Harsh\\AppData\\Local\\Enthought\\Canopy\\App\\appdata\\canopy-1.4.1.1975.win-x86_64 -lpython27 -lcublas -lcudart') 
WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not available 

VisualStudio的命令提示符給出了錯誤:

C:\Program Files (x86)\Microsoft Visual Studio 12.0>cd C:\Users\Harsh\Downloads\ 
pycuda-2012.1 

C:\Users\Harsh\Downloads\pycuda-2012.1>set VS90COMNTOOLS=%VS100COMNTOOLS% 

C:\Users\Harsh\Downloads\pycuda-2012.1>python setup.py build 
running build 
running build_py 
running build_ext 
building '_driver' extension 
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.exe /c /nologo /Ox 
/MD /W3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -DBOOST_PYTHON_SOU 
RCE=1 -DPYGPU_PYCUDA=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_THREA 
D_BUILD_DLL=1 -Dboost=pycudaboost -DBOOST_ALL_NO_LIB=1 -Isrc/cpp -Ibpl-subset/bp 
l_subset "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -Ic 
:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\i 
nclude -IC:\Users\Harsh\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1. 
1975.win-x86_64\include -Ic:\users\harsh\appdata\local\enthought\canopy\user\PC 
/Tpsrc/cpp/cuda.cpp /Fobuild\temp.win-amd64-2.7\Release\src/cpp/cuda.obj 
cuda.cpp 
Unknown compiler version - please run the configure tests and report the results 

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xlocale(337) : wa 
rning C4530: C++ exception handler used, but unwind semantics are not enabled. S 
pecify /EHsc 
c:\users\harsh\appdata\local\enthought\canopy\app\appdata\canopy-1.4.1.1975.win- 
x86_64\include\pymath.h(22) : warning C4273: 'round' : inconsistent dll linkage 
     C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(51 
6) : see previous definition of 'round' 
c:\users\harsh\downloads\pycuda-2012.1\src\cpp\cuda.hpp(1786) : warning C4146: u 
nary minus operator applied to unsigned type, result still unsigned 
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.exe /c /nologo /Ox 
/MD /W3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -DBOOST_PYTHON_SOU 
RCE=1 -DPYGPU_PYCUDA=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_THREA 
D_BUILD_DLL=1 -Dboost=pycudaboost -DBOOST_ALL_NO_LIB=1 -Isrc/cpp -Ibpl-subset/bp 
l_subset "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -Ic 
:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\i 
nclude -IC:\Users\Harsh\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1. 
1975.win-x86_64\include -Ic:\users\harsh\appdata\local\enthought\canopy\user\PC 
/Tpsrc/cpp/bitlog.cpp /Fobuild\temp.win-amd64-2.7\Release\src/cpp/bitlog.obj 
bitlog.cpp 
Unknown compiler version - please run the configure tests and report the results 

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.exe /c /nologo /Ox 
/MD /W3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -DBOOST_PYTHON_SOU 
RCE=1 -DPYGPU_PYCUDA=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_THREA 
D_BUILD_DLL=1 -Dboost=pycudaboost -DBOOST_ALL_NO_LIB=1 -Isrc/cpp -Ibpl-subset/bp 
l_subset "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -Ic 
:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\i 
nclude -IC:\Users\Harsh\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1. 
1975.win-x86_64\include -Ic:\users\harsh\appdata\local\enthought\canopy\user\PC 
/Tpsrc/wrapper/wrap_cudadrv.cpp /Fobuild\temp.win-amd64-2.7\Release\src/wrapper/ 
wrap_cudadrv.obj 
wrap_cudadrv.cpp 
Unknown compiler version - please run the configure tests and report the results 

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xlocale(337) : wa 
rning C4530: C++ exception handler used, but unwind semantics are not enabled. S 
pecify /EHsc 
c:\users\harsh\appdata\local\enthought\canopy\app\appdata\canopy-1.4.1.1975.win- 
x86_64\include\pymath.h(22) : warning C4273: 'round' : inconsistent dll linkage 
     C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(51 
6) : see previous definition of 'round' 
src/cpp\cuda.hpp(1786) : warning C4146: unary minus operator applied to unsigned 
type, result still unsigned 
c:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\ 
include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy 
API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.exe /c /nologo /Ox 
/MD /W3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -DBOOST_PYTHON_SOU 
RCE=1 -DPYGPU_PYCUDA=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_THREA 
D_BUILD_DLL=1 -Dboost=pycudaboost -DBOOST_ALL_NO_LIB=1 -Isrc/cpp -Ibpl-subset/bp 
l_subset "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -Ic 
:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\i 
nclude -IC:\Users\Harsh\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1. 
1975.win-x86_64\include -Ic:\users\harsh\appdata\local\enthought\canopy\user\PC 
/Tpsrc/wrapper/mempool.cpp /Fobuild\temp.win-amd64-2.7\Release\src/wrapper/mempo 
ol.obj 
mempool.cpp 
Unknown compiler version - please run the configure tests and report the results 

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xlocale(337) : wa 
rning C4530: C++ exception handler used, but unwind semantics are not enabled. S 
pecify /EHsc 
c:\users\harsh\appdata\local\enthought\canopy\app\appdata\canopy-1.4.1.1975.win- 
x86_64\include\pymath.h(22) : warning C4273: 'round' : inconsistent dll linkage 
     C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(51 
6) : see previous definition of 'round' 
src/cpp\cuda.hpp(1786) : warning C4146: unary minus operator applied to unsigned 
type, result still unsigned 
c:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\ 
include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy 
API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 
c:\users\harsh\downloads\pycuda-2012.1\src\wrapper\mempool.cpp(256) : fatal erro 
r C1001: An internal error has occurred in the compiler. 
(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 228) 
To work around this problem, try simplifying or changing the program near the l 
ocations listed above. 
Please choose the Technical Support command on the Visual C++ 
Help menu, or open the Technical Support help file for more information 
INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\ 
VC\BIN\cl.exe' 
    Please choose the Technical Support command on the Visual C++ 
    Help menu, or open the Technical Support help file for more information 
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.e 
xe"' failed with exit status 1 

C:\Users\Harsh\Downloads\pycuda-2012.1>python setup.py install 
running install 
running bdist_egg 
running egg_info 
writing requirements to pycuda.egg-info\requires.txt 
writing pycuda.egg-info\PKG-INFO 
writing top-level names to pycuda.egg-info\top_level.txt 
writing dependency_links to pycuda.egg-info\dependency_links.txt 
reading manifest file 'pycuda.egg-info\SOURCES.txt' 
reading manifest template 'MANIFEST.in' 
warning: no files found matching '*.cpp' under directory 'bpl-subset\bpl_subset\ 
boost' 
warning: no files found matching '*.html' under directory 'bpl-subset\bpl_subset 
\boost' 
warning: no files found matching '*.inl' under directory 'bpl-subset\bpl_subset\ 
boost' 
warning: no files found matching '*.txt' under directory 'bpl-subset\bpl_subset\ 
boost' 
warning: no files found matching '*.h' under directory 'bpl-subset\bpl_subset\li 
bs' 
warning: no files found matching '*.hpp' under directory 'bpl-subset\bpl_subset\ 
libs' 
warning: no files found matching '*.ipp' under directory 'bpl-subset\bpl_subset\ 
libs' 
warning: no files found matching '*.pl' under directory 'bpl-subset\bpl_subset\l 
ibs' 
writing manifest file 'pycuda.egg-info\SOURCES.txt' 
installing library code to build\bdist.win-amd64\egg 
running install_lib 
running build_py 
running build_ext 
building '_driver' extension 
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.exe /c /nologo /Ox 
/MD /W3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -DBOOST_PYTHON_SOU 
RCE=1 -DPYGPU_PYCUDA=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_THREA 
D_BUILD_DLL=1 -Dboost=pycudaboost -DBOOST_ALL_NO_LIB=1 -Isrc/cpp -Ibpl-subset/bp 
l_subset "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -Ic 
:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\i 
nclude -IC:\Users\Harsh\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1. 
1975.win-x86_64\include -Ic:\users\harsh\appdata\local\enthought\canopy\user\PC 
/Tpsrc/cpp/cuda.cpp /Fobuild\temp.win-amd64-2.7\Release\src/cpp/cuda.obj 
cuda.cpp 
Unknown compiler version - please run the configure tests and report the results 

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xlocale(337) : wa 
rning C4530: C++ exception handler used, but unwind semantics are not enabled. S 
pecify /EHsc 
c:\users\harsh\appdata\local\enthought\canopy\app\appdata\canopy-1.4.1.1975.win- 
x86_64\include\pymath.h(22) : warning C4273: 'round' : inconsistent dll linkage 
     C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(51 
6) : see previous definition of 'round' 
c:\users\harsh\downloads\pycuda-2012.1\src\cpp\cuda.hpp(1786) : warning C4146: u 
nary minus operator applied to unsigned type, result still unsigned 
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.exe /c /nologo /Ox 
/MD /W3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -DBOOST_PYTHON_SOU 
RCE=1 -DPYGPU_PYCUDA=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_THREA 
D_BUILD_DLL=1 -Dboost=pycudaboost -DBOOST_ALL_NO_LIB=1 -Isrc/cpp -Ibpl-subset/bp 
l_subset "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -Ic 
:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\i 
nclude -IC:\Users\Harsh\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1. 
1975.win-x86_64\include -Ic:\users\harsh\appdata\local\enthought\canopy\user\PC 
/Tpsrc/cpp/bitlog.cpp /Fobuild\temp.win-amd64-2.7\Release\src/cpp/bitlog.obj 
bitlog.cpp 
Unknown compiler version - please run the configure tests and report the results 

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.exe /c /nologo /Ox 
/MD /W3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -DBOOST_PYTHON_SOU 
RCE=1 -DPYGPU_PYCUDA=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_THREA 
D_BUILD_DLL=1 -Dboost=pycudaboost -DBOOST_ALL_NO_LIB=1 -Isrc/cpp -Ibpl-subset/bp 
l_subset "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -Ic 
:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\i 
nclude -IC:\Users\Harsh\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1. 
1975.win-x86_64\include -Ic:\users\harsh\appdata\local\enthought\canopy\user\PC 
/Tpsrc/wrapper/wrap_cudadrv.cpp /Fobuild\temp.win-amd64-2.7\Release\src/wrapper/ 
wrap_cudadrv.obj 
wrap_cudadrv.cpp 
Unknown compiler version - please run the configure tests and report the results 

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xlocale(337) : wa 
rning C4530: C++ exception handler used, but unwind semantics are not enabled. S 
pecify /EHsc 
c:\users\harsh\appdata\local\enthought\canopy\app\appdata\canopy-1.4.1.1975.win- 
x86_64\include\pymath.h(22) : warning C4273: 'round' : inconsistent dll linkage 
     C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(51 
6) : see previous definition of 'round' 
src/cpp\cuda.hpp(1786) : warning C4146: unary minus operator applied to unsigned 
type, result still unsigned 
c:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\ 
include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy 
API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.exe /c /nologo /Ox 
/MD /W3 /GS- /DNDEBUG -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -DBOOST_PYTHON_SOU 
RCE=1 -DPYGPU_PYCUDA=1 -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_THREA 
D_BUILD_DLL=1 -Dboost=pycudaboost -DBOOST_ALL_NO_LIB=1 -Isrc/cpp -Ibpl-subset/bp 
l_subset "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\include" -Ic 
:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\i 
nclude -IC:\Users\Harsh\AppData\Local\Enthought\Canopy\App\appdata\canopy-1.4.1. 
1975.win-x86_64\include -Ic:\users\harsh\appdata\local\enthought\canopy\user\PC 
/Tpsrc/wrapper/mempool.cpp /Fobuild\temp.win-amd64-2.7\Release\src/wrapper/mempo 
ol.obj 
mempool.cpp 
Unknown compiler version - please run the configure tests and report the results 

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xlocale(337) : wa 
rning C4530: C++ exception handler used, but unwind semantics are not enabled. S 
pecify /EHsc 
c:\users\harsh\appdata\local\enthought\canopy\app\appdata\canopy-1.4.1.1975.win- 
x86_64\include\pymath.h(22) : warning C4273: 'round' : inconsistent dll linkage 
     C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(51 
6) : see previous definition of 'round' 
src/cpp\cuda.hpp(1786) : warning C4146: unary minus operator applied to unsigned 
type, result still unsigned 
c:\users\harsh\appdata\local\enthought\canopy\user\lib\site-packages\numpy\core\ 
include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy 
API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 
c:\users\harsh\downloads\pycuda-2012.1\src\wrapper\mempool.cpp(256) : fatal erro 
r C1001: An internal error has occurred in the compiler. 
(compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c', line 228) 
To work around this problem, try simplifying or changing the program near the l 
ocations listed above. 
Please choose the Technical Support command on the Visual C++ 
Help menu, or open the Technical Support help file for more information 
INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\ 
VC\BIN\cl.exe' 
    Please choose the Technical Support command on the Visual C++ 
    Help menu, or open the Technical Support help file for more information 
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.e 
xe"' failed with exit status 1 

INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\ VC\BIN\cl.exe'在最後一行

我按照Installing theano on Windows 8 with GPU enabled

但是Python distutils來固定作爲我已經使用冠層不能應用。請幫忙。

回答

2

Theano不支持Visual Studio編譯器。它需要cuda,但不適用於Theano CPU代碼。這需要g ++編譯器。

是否正確安裝了編譯器的canopy包?你做了什麼試圖用微軟編譯器編譯?