cudarray
cudarray copied to clipboard
Installing cuDNN (add <installpath> to the Include Directories...)
How can I complete the second step in the installation of cuDNN?
In your Visual Studio project properties, add
to the Include Directories and Library Directories lists and add cudnn.lib to Linker->Input->Additional Dependencies.
Here's what it looks like without this step:
`C:\Python27\cudarray>python setup.py install 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.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\Christian\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\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\lib\site-packages\numpy\core\include -IC:\Python27\include -IC:\Python27\PC /Tp./cudarray\wrap\cudart.cpp /Fobuild\temp.win-amd64-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\Christian\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe' failed with exit status 2`
Visual C++ for Python is only available as a command prompt. Can I do something with the command prompt, or do I need a new version visual studio? I'm not sure how to proceed.
Thanks.
I have the exact same error.
I think the issue may stem from improperly defined environment variables, but I'm not sure.
Installing cudarray without the CUDA backend worked, as I understand it uses numpy instead. However when I run programs which rely on cudarray Python crashes, so I am interested in getting this set up as designed.
Hi there! Can you try to change this line from
extra_compile_args = ['-O3', '-fPIC', '-Wall', '-Wfatal-errors']
to
extra_compile_args = ['-O3', '-fPIC', '-Wall']
You can also try to remove more flags. I'm not completely sure what Visual C++ is unhappy about.
hello, I have the same problem. Have you found the solution?