Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build on windows with CUDA 9.0 and VC 2015 #122

Open
mailqq100 opened this issue Jan 6, 2018 · 4 comments
Open

Failed to build on windows with CUDA 9.0 and VC 2015 #122

mailqq100 opened this issue Jan 6, 2018 · 4 comments

Comments

@mailqq100
Copy link

init.bat failed to build nms with output:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe --compiler-bindir "D:\Program Files (x86)\Microsoft
Visual Studio 14.0\VC\BIN" --shared -LD:\Anaconda\envs\gluon\libs -LD:\Anaconda\envs\gluon\PCbuild\amd64 "-LD:\Program
Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "-LD:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC
LIB\amd64" "-LC:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x64" "-LC:\Program Files (x86)\Windows Kits\N
ETFXSDK\4.6.1\lib\um\x64" "-LC:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\um\x64" "-LD:\Program Files (x86)\M
icrosoft Visual Studio 14.0\VC\LIB" "-LD:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB" "-LC:\Program
Files (x86)\Windows Kits\10\lib\10.0.16299.0\ucrt\x86" "-LC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x86"
"-LC:\Program Files (x86)\Windows Kits\10\lib\10.0.16299.0\um\x86" -lcublas build\temp.win-amd64-3.6\Release\gpu_nms.ob
j -o build\lib.win-amd64-3.6\gpu_nms.cp36-win_amd64.pyd --linker-options=/nologo,/INCREMENTAL:NO,/LTCG,/MANIFEST:EMBED,I
D=2,/MANIFESTUAC:NO,/IMPLIB:build\temp.win-amd64-3.6\Release\gpu_nms.cp36-win_amd64.lib,/NODEFAULTLIB:libcmt.lib
gpu_nms.obj
LINK : fatal error LNK1181: cannot open input file 'ID=2.obj'
error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe' failed with exit status 2

@Nick198903
Copy link

I also met this error. Have you solved it?

@ferakon
Copy link

ferakon commented Jan 20, 2020

Same error, going to try CUDA 8~

@ferakon
Copy link

ferakon commented Jan 21, 2020

This error I still get with VS 2015 and CUDA 8. CUDA 7.5 won't work because it requires < VS 2013, which is too old to build the modules.

I think this error can be fixed by removing that "ID=2" somehow. A similar error is highlighted over at the py-faster-rcnn repo:
MrGF/py-faster-rcnn-windows#17 (comment)

If anyone else has any success before I do, let me know.

@ferakon
Copy link

ferakon commented Jan 21, 2020

I fixed this by adding the following line:

# remove ID=2
elif ',ID=2' in c: del cmd[idx]

...to the bottom of the elif statements in:
setup_windows_cuda.py in lib\nms (elif statement should be added within for loop that starts at line 85)
setup_windows.py in lib\mask (elif statement should be added within for loop that starts at line 82)

Hope that helps people who are stuck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants