andersbll / cudarray

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

Compiler not supported directive #20

Open vit1251 opened 8 years ago

vit1251 commented 8 years ago
C:\Python27\lib\site-packages\setuptools\dist.py:285: UserWarning: Normalizing '0.1.dev' to '0.1.dev0'
  normalized_version,
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.win32\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\...\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I/usr/local/cuda\include -I./include -IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python27\l
ib\site-packages\numpy\core\include -IC:\Python27\include -IC:\Python27\PC /Tp./cudarray\wrap\cudart.cpp /Fobuild\temp.win32-2.7\Release\./cudarray\wrap\cudart.obj -O3 -fPIC -Wall -Wfatal-errors
cl : Command line error D8021 : invalid numeric argument '/Wfatal-errors'
error: command 'C:\\Users\\...\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
andersbll commented 8 years ago

I'm terribly sorry, but I have never succeeded to install CUDArray on Windows. The problem is my choice of Cython and C++ with templates. The different name mangling schemes between compilers makes it hard to combine nvcc, MSVC, and whatever has been used to compile Python.

andersbll commented 8 years ago

I should add that the above only goes for CUDArray with the CUDA backend. On Windows, you can easily install CUDArray with only the NumPy backend. :)

maximegregoire commented 8 years ago

Removing the -Wfatal-errors arguments fixed it for me.

andersbll commented 8 years ago

Do you have CUDArray with the CUDA-backend working on Windows? If so, I would like to see the recipe. :)

joseph-valles commented 7 years ago

I got make to run by creating symlinks without spaces to the CUDA toolkit directory and Anaconda directory. It fails with unistd.h.