andersbll / cudarray

CUDA-based NumPy
MIT License
233 stars 61 forks source link

can't make under windows #45

Closed ClaireCJS closed 8 years ago

ClaireCJS commented 8 years ago

python setup.py build keeps giving me this:

c:\anaconda\lib\site-packages\setuptools-19.6.2-py2.7.egg\setuptools\dist.py:285: UserWarning: Normal izing '0.1.dev' to '0.1.dev0' running install running bdist_egg running egg_info writing requirements to cudarray.egg-info\requires.txt writing cudarray.egg-info\PKG-INFO writing top-level names to cudarray.egg-info\top_level.txt writing dependency_links to cudarray.egg-info\dependency_links.txt reading manifest file 'cudarray.egg-info\SOURCES.txt' writing manifest file 'cudarray.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py running build_ext skipping './cudarray\wrap\cudart.cpp' Cython extension (up-to-date) building 'cudarray.wrap.cudart' extension C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic:\Anaconda\Lib\site-packages\cuda\include -I./include -Ic:\anaco nda\lib\site-packages\numpy\core\include -Ic:\anaconda\lib\site-packages\numpy\core\include -Ic:\anac onda\include -Ic:\anaconda\PC /Tp./cudarray\wrap\cudart.cpp /Fobuild\temp.win-amd64-2.7\Release./cud array\wrap\cudart.obj -O3 -fPIC -Wall cl : Command line warning D9002 : ignoring unknown option '-O3' cl : Command line warning D9002 : ignoring unknown option '-fPIC' cudart.cpp c:\users\oh\appdata\local\programs\common\microsoft\visual c++ for python\9.0\vc\include\codeanalysis \sourceannotations.h(81) : warning C4820: 'vc_attributes::Pre' : '4' bytes padding added after data m ember 'vc_attributes::Pre::Access' c:\users\oh\appdata\local\programs\common\microsoft\visual c++ for python\9.0\vc\include\codeanalysis \sourceannotations.h(96) : warning C4820: 'vc_attributes::Pre' : '4' bytes padding added after data m ember 'vc_attributes::Pre::NullTerminated' c:\users\oh\appdata\local\programs\common\microsoft\visual c++ for python\9.0\vc\include\codeanalysis \sourceannotations.h(112) : warning C4820: 'vc_attributes::Post' : '4' bytes padding added after data member 'vc_attributes::Post::Access' c:\users\oh\appdata\local\programs\common\microsoft\visual c++ for python\9.0\vc\include\codeanalysis \sourceannotations.h(191) : warning C4820: 'vc_attributes::PreRange' : '4' bytes padding added after data member 'vc_attributes::PreRange::Deref' c:\users\oh\appdata\local\programs\common\microsoft\visual c++ for python\9.0\vc\include\codeanalysis \sourceannotations.h(203) : warning C4820: 'vc_attributes::PostRange' : '4' bytes padding added after data member 'vc_attributes::PostRange::Deref' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\io.h(60) : w arning C4820: '_finddata32i64_t' : '4' bytes padding added after data member '_finddata32i64_t::name'

C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\io.h(64) : w arning C4820: '_finddata64i32_t' : '4' bytes padding added after data member '_finddata64i32_t::attri b' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\io.h(73) : w arning C4820: 'finddata64_t' : '4' bytes padding added after data member '__finddata64_t::attrib' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\io.h(78) : w arning C4820: 'finddata64_t' : '4' bytes padding added after data member '__finddata64_t::name' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\io.h(126) : warning C4820: '_wfinddata64i32_t' : '4' bytes padding added after data member '_wfinddata64i32_t::at trib' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\io.h(131) : warning C4820: '_wfinddata64i32_t' : '4' bytes padding added after data member '_wfinddata64i32_t::na me' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\io.h(135) : warning C4820: '_wfinddata64_t' : '4' bytes padding added after data member '_wfinddata64_t::attrib' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\WinSDK\Include\basetsd. h(114) : warning C4668: '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/

elif'

C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\WinSDK\Include\basetsd. h(424) : warning C4668: '_WIN32_WINNT' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\stdio.h(62) : warning C4820: '_iobuf' : '4' bytes padding added after data member '_iobuf::_cnt' c:\anaconda\include\pyport.h(206) : warning C4668: 'SIZEOF_PID_T' is not defined as a preprocessor ma cro, replacing with '0' for '#if/#elif' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\math.h(41) : warning C4820: '_exception' : '4' bytes padding added after data member '_exception::type' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\sys/stat.h(1 11) : warning C4820: '_stat32' : '2' bytes padding added after data member '_stat32::st_gid' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\sys/stat.h(1 27) : warning C4820: 'stat' : '2' bytes padding added after data member 'stat::st_gid' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\sys/stat.h(1 43) : warning C4820: '_stat32i64' : '2' bytes padding added after data member '_stat32i64::st_gid' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\sys/stat.h(1 44) : warning C4820: '_stat32i64' : '4' bytes padding added after data member '_stat32i64::st_rdev' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\sys/stat.h(1 48) : warning C4820: '_stat32i64' : '4' bytes padding added after data member '_stat32i64::st_ctime' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\sys/stat.h(1 57) : warning C4820: '_stat64i32' : '2' bytes padding added after data member '_stat64i32::st_gid' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\sys/stat.h(1 71) : warning C4820: '_stat64' : '2' bytes padding added after data member '_stat64::st_gid' C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\sys/stat.h(1 72) : warning C4820: '_stat64' : '4' bytes padding added after data member '_stat64::st_rdev' c:\anaconda\include\object.h(358) : warning C4820: '_typeobject' : '4' bytes padding added after data member '_typeobject::tp_flags' c:\anaconda\include\object.h(411) : warning C4820: '_typeobject' : '4' bytes padding added after data member '_typeobject::tp_version_tag' c:\anaconda\include\unicodeobject.h(420) : warning C4820: '' : '4' bytes padding added a fter data member '::hash' c:\anaconda\include\intobject.h(26) : warning C4820: '' : '4' bytes padding added after data member '::ob_ival' c:\anaconda\include\stringobject.h(49) : warning C4820: '' : '7' bytes padding added aft er data member '::ob_sval' c:\anaconda\include\bytearrayobject.h(26) : warning C4820: '' : '4' bytes padding added after data member '::ob_exports' c:\anaconda\include\setobject.h(26) : warning C4820: '' : '4' bytes padding added after data member '::hash' c:\anaconda\include\setobject.h(56) : warning C4820: '_setobject' : '4' bytes padding added after dat a member '_setobject::hash' c:\anaconda\include\methodobject.h(42) : warning C4820: 'PyMethodDef' : '4' bytes padding added after data member 'PyMethodDef::ml_flags' c:\anaconda\include\fileobject.h(26) : warning C4820: '' : '4' bytes padding added after data member '::f_skipnextlf' c:\anaconda\include\fileobject.h(33) : warning C4820: '' : '4' bytes padding added after data member '::writable' c:\anaconda\include\genobject.h(23) : warning C4820: '' : '4' bytes padding added after data member '::gi_running' c:\anaconda\include\descrobject.h(28) : warning C4820: 'wrapperbase' : '4' bytes padding added after data member 'wrapperbase::offset' c:\anaconda\include\descrobject.h(32) : warning C4820: 'wrapperbase' : '4' bytes padding added after data member 'wrapperbase::flags' c:\anaconda\include\weakrefobject.h(37) : warning C4820: '_PyWeakReference' : '4' bytes padding added after data member '_PyWeakReference::hash' c:\anaconda\include\pystate.h(70) : warning C4820: '_ts' : '4' bytes padding added after data member '_ts::use_tracing' c:\anaconda\include\import.h(61) : warning C4820: '_frozen' : '4' bytes padding added after data memb er '_frozen::size' c:\anaconda\include\code.h(26) : warning C4820: '' : '4' bytes padding added after data member '::co_firstlineno' ./cudarray\wrap\cudart.cpp(248) : fatal error C1083: Cannot open include file: 'driver_types.h': No s uch file or directory error: command 'C:\Users\oh\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9. 0\VC\Bin\amd64\cl.exe' failed with exit status 2

ClaireCJS commented 8 years ago

Had to run it with --without-cuda install to not get this error.