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

I am stuck with 'RuntimeError: NVCC returned an error.' Plz help #36

Open
Chika1472 opened this issue Jan 16, 2021 · 1 comment
Open

Comments

@Chika1472
Copy link

Chika1472 commented Jan 16, 2021

I am experiencing error while executing main.py in windows. I have python 3.9, VC++ and cl.exe. I added the PATH, but it still displays an error:

File "C:\Users\AA\StyleFlow\dnnlib\tflib\custom_ops.py", line 61, in _run_cmd
raise RuntimeError('NVCC returned an error. See below for full command line and output log:\n\n%s\n\n%s' % (cmd, output))
RuntimeError: NVCC returned an error. See below for full command line and output log:

/usr/local/cuda/bin/nvcc --std=c++11 -DNDEBUG "C:\Users\AA\StyleFlow\dnnlib\tflib\ops\fused_bias_act.cu" --preprocess -o "C:\Users\AA\AppData\Local\Temp\tmph4c8mkpv\fused_bias_act_tmp.cu" --keep --keep-dir "C:\Users\AA\AppData\Local\Temp\tmph4c8mkpv" --disable-warnings --include-path "C:\Users\AA\anaconda3\envs\styleflow\lib\site-packages\tensorflow\include" --include-path "C:\Users\AA\anaconda3\envs\styleflow\lib\site-packages\tensorflow\include\external\protobuf_archive\src" --include-path "C:\Users\AA\anaconda3\envs\styleflow\lib\site-packages\tensorflow\include\external\com_google_absl" --include-path "C:\Users\AA\anaconda3\envs\styleflow\lib\site-packages\tensorflow\include\external\eigen_archive" --compiler-bindir "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/HostX64/x64" 2>&1
cannot find the path specified

I have no idea why this is happening, nor how to fix it. Please help :(

+)
Even after changng all / in /usr/local/cuda/bin/nvcc and C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/HostX64/x64" 2>&1 to

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64 and
'\usr\local\cuda\bin\nvcc

it is stilll not working
I first thought it was only the problem with cl.exe, since I did not get proper response with nvcc test_nvcc.cu -o test_nvcc -run.
But now I think the linux path is also a problem.

@justinjohn0306
Copy link

I am experiencing error while executing main.py in windows. I have python 3.9, VC++ and cl.exe. I added the PATH, but it still displays an error:

File "C:\Users\AA\StyleFlow\dnnlib\tflib\custom_ops.py", line 61, in _run_cmd
raise RuntimeError('NVCC returned an error. See below for full command line and output log:\n\n%s\n\n%s' % (cmd, output))
RuntimeError: NVCC returned an error. See below for full command line and output log:

/usr/local/cuda/bin/nvcc --std=c++11 -DNDEBUG "C:\Users\AA\StyleFlow\dnnlib\tflib\ops\fused_bias_act.cu" --preprocess -o "C:\Users\AA\AppData\Local\Temp\tmph4c8mkpv\fused_bias_act_tmp.cu" --keep --keep-dir "C:\Users\AA\AppData\Local\Temp\tmph4c8mkpv" --disable-warnings --include-path "C:\Users\AA\anaconda3\envs\styleflow\lib\site-packages\tensorflow\include" --include-path "C:\Users\AA\anaconda3\envs\styleflow\lib\site-packages\tensorflow\include\external\protobuf_archive\src" --include-path "C:\Users\AA\anaconda3\envs\styleflow\lib\site-packages\tensorflow\include\external\com_google_absl" --include-path "C:\Users\AA\anaconda3\envs\styleflow\lib\site-packages\tensorflow\include\external\eigen_archive" --compiler-bindir "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/HostX64/x64" 2>&1
cannot find the path specified

I have no idea why this is happening, nor how to fix it. Please help :(

+)
Even after changng all / in /usr/local/cuda/bin/nvcc and C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/HostX64/x64" 2>&1 to

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX64\x64 and
'\usr\local\cuda\bin\nvcc

it is stilll not working
I first thought it was only the problem with cl.exe, since I did not get proper response with nvcc test_nvcc.cu -o test_nvcc -run.
But now I think the linux path is also a problem.

Check out my PR repo and start over from the beginning. Oh and download MSVS 17 not 19

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

2 participants