-
Notifications
You must be signed in to change notification settings - Fork 11
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
nvcc exited with code 1 #7
Comments
Here is my cmake output for your reference: -- Building for: Visual Studio 17 2022 -- Found PythonInterp: C:/ProgramData/Anaconda3/envs/diffDVR/python.exe (found version "3.8.8") |
One possible cause might be the mismatch in the CUDA versions. That is a common issue on Windows with CMake and multiple CUDA installations. |
Hi Sebastian, -- Building for: Visual Studio 17 2022 Could not find a package configuration file provided by "Torch" with any of
Add the installation prefix of "Torch" to CMAKE_PREFIX_PATH or set -- Configuring incomplete, errors occurred! |
If you look at the path to Python in the first log and the second log you sent me, you notice that in the first log, the path was set to python executable in the |
Hi Sebastian, Error MSB3721 The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc.exe" -gencode=arch=compute_61,code="sm_61,compute_61" -gencode=arch=compute_61,code="sm_61,compute_61" -gencode=arch=compute_61,code="compute_61,compute_61" -gencode=arch=compute_61,code="sm_61,compute_61" -gencode=arch=compute_72,code="compute_72,compute_72" -gencode=arch=compute_72,code="sm_72,compute_72" -gencode=arch=compute_61,code="sm_61,compute_61" --use-local-env -ccbin "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX64\x64" -x cu -IC:\Users\Administrator\Documents\GitHub\DiffDVR\renderer -IC:\ProgramData\Anaconda3\envs\diffDVR\include -IC:\Users\Administrator\Desktop\OpenGL\includes\glm -I"C:\ProgramData\Anaconda3\envs\diffDVR\Lib\site-packages\torch\include" -I"C:\ProgramData\Anaconda3\envs\diffDVR\Lib\site-packages\torch\include\torch\csrc\api\include" -I"C:\Users\Administrator\Documents\GitHub\DiffDVR\third-party\cuMat" -I"C:\Users\Administrator\Documents\GitHub\DiffDVR\third-party\magic_enum\include" -I"C:\Users\Administrator\Documents\GitHub\DiffDVR\third-party\cudad\include\cudAD" -I"C:\Users\Administrator\Documents\GitHub\DiffDVR\third-party\tinyformat" -I"C:\Users\Administrator\Documents\GitHub\DiffDVR\third-party\lz4\lib" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" --keep-dir x64\Debug -use_fast_math -maxrregcount=0 --machine 64 --compile -cudart static -std=c++17 --generate-line-info --expt-relaxed-constexpr --extended-lambda –Xptxas -v -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=integer_sign_change,--diag_suppress=useless_using_declaration,--diag_suppress=set_but_not_used,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=implicit_return_from_non_void_function,--diag_suppress=unsigned_compare_with_zero,--diag_suppress=declared_but_not_referenced,--diag_suppress=bad_friend_decl --Werror cross-execution-space-call --no-host-device-move-forward --expt-relaxed-constexpr --expt-extended-lambda -std=c++17 --generate-line-info --expt-relaxed-constexpr --extended-lambda –Xptxas -v -std=c++17 -Xcompiler="/EHsc -Zi -Ob0" -g -D_WINDOWS -DONNX_NAMESPACE=onnx_c2 -D"RENDERER_SHADER_DIRS={"C:/Users/Administrator/Documents/GitHub/DiffDVR/renderer","C:/Users/Administrator/Documents/GitHub/DiffDVR/third-party/cudad/include/cudAD",}" -DRENDERER_RUNTIME_COMPILATION=1 -D"NVCC_ARGS="arch=compute_61,code=sm_61"" -D"NVCC_INCLUDE_DIR=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include" -DRENDERER_BUILD_CPU_KERNELS=1 -DUSE_DOUBLE_PRECISION=0 -DNOMINMAX -DCUMAT_SINGLE_THREAD_CONTEXT=1 -DTHRUST_IGNORE_CUB_VERSION_CHECK=1 -D"CMAKE_INTDIR="Debug"" -D_MBCS -DWIN32 -D_WINDOWS -D"RENDERER_SHADER_DIRS={"C:/Users/Administrator/Documents/GitHub/DiffDVR/renderer","C:/Users/Administrator/Documents/GitHub/DiffDVR/third-party/cudad/include/cudAD",}" -DRENDERER_RUNTIME_COMPILATION=1 -D"NVCC_ARGS="arch=compute_61,code=sm_61"" -D"NVCC_INCLUDE_DIR=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include" -DRENDERER_BUILD_CPU_KERNELS=1 -DUSE_DOUBLE_PRECISION=0 -DNOMINMAX -DCUMAT_SINGLE_THREAD_CONTEXT=1 -DTHRUST_IGNORE_CUB_VERSION_CHECK=1 -D"CMAKE_INTDIR="Debug"" -Xcompiler "/EHsc /W1 /nologo /Od /FdC:\Users\Administrator\Documents\GitHub\DiffDVR\build\renderer\Debug\Renderer.pdb /FS /Zi /RTC1 /MDd /GR" -o Renderer.dir\Debug\renderer_cuda_impl.obj "C:\Users\Administrator\Documents\GitHub\DiffDVR\renderer\renderer_cuda_impl.cu"" exited with code 1. Renderer C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\CUDA 11.6.targets 790 |
Another clue is that when I try to build Renderer-kernels, I find there are also many errors and warnings of the same type: Warning MSB8065 Custom build for item "C:\Users\Administrator\Documents\GitHub\DiffDVR\build\CMakeFiles\7db998e53d2b8c190076e8be28ffedc4\cooperative_groups.cuh.cpp.rule" succeeded, but specified output "c:\users\administrator\documents\github\diffdvr\build__cmrc_renderer-kernels\intermediate\renderer\cooperative_groups.cuh.cpp" has not been created. This may cause incremental build to work incorrectly. Renderer-kernels C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets 245 Error C1083 Cannot open source file: 'C:\Users\Administrator\Documents\GitHub\DiffDVR\build__cmrc_Renderer-kernels\intermediate\renderer\cooperative_groups.cuh.cpp': No such file or directory Renderer-kernels C:\Users\Administrator\Documents\GitHub\DiffDVR\build\c1xx 1 |
Ok, so we are now in the realm of speculation. I'm on the move at the moment and can't try out the code myself. Let's see The error that the file Another possible avenue would be to remove setting |
Hi Sebastian, For the other possible avenue you mentioned, I cannot find where in cmake file we set RENDERER_SHADER_DIRS via add_definitions. Could you provide me with more clue on that if possible? Appendix 1: top level cmake file:
Appendix 2: cmake output
|
Hi Sebastian, convert relative path to absolute path, load /DiffDVR/pytests/volumes/cvol/C60Large.cvol |
Wrong path to the .cvol file, see issue #7
Wrong path to the .cvol file, see issue #7
Hi, related to the "Illegal magic number" error, this occurs when the path to the file is wrong, i.e. a file-not-found error. |
Related to So on windows, can you try removing that line in CMake and hard-code the path in kernel_loader.cpp as following (replaces line 141ff):
and removing the |
Hi Sebastian,
Your instuction above is correct! Now the CMakeRC file is not empty, and so does the folder "C:\Users\Administrator\Documents\GitHub\DiffDVR\build__cmrc_Renderer-kernels\intermediate\renderer", I can now successfully build the Renderer_kernals project. However, when I try to build the Renderer projects, the four errors persists as below (I just show one of them since all four are simialr) Severity Code Description Project File Line Suppression State |
Hi Sebastian, |
Hi, sounds good. Sorry that I couldn't help you further with the Windows version |
Hi Sebastian,
Now I have successfully run cmake. However, when I use VS2022 to open the solution file generated by cmake and build the Renderer project, I find there are 4 similar errors as show in the end. It seems my nvcc fails to compile due to some reason. Do you have any clue? One strange thing I notice is that the commend uses cuda v11.7, but actually my NVCC_INCLUDE_DIR is set for v11.6. I used to use 11.7 in my windows PC, but I have just switch to v11.6 to be compatible with pytorch 1.12.1.
Thanks a lot!
(below is one of the error, all four errors are similar but for different files)
Error MSB3721 The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc.exe" -gencode=arch=compute_61,code="sm_61,compute_61" -gencode=arch=compute_61,code="sm_61,compute_61" -gencode=arch=compute_61,code="compute_61,compute_61" -gencode=arch=compute_61,code="sm_61,compute_61" -gencode=arch=compute_72,code="compute_72,compute_72" -gencode=arch=compute_72,code="sm_72,compute_72" -gencode=arch=compute_61,code="sm_61,compute_61" --use-local-env -ccbin "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\HostX64\x64" -x cu -IC:\Users\Administrator\Documents\GitHub\DiffDVR\renderer -IC:\ProgramData\Anaconda3\envs\diffDVR\include -IC:\Users\Administrator\Desktop\OpenGL\includes\glm -I"C:\ProgramData\Anaconda3\envs\diffDVR\Lib\site-packages\torch\include" -I"C:\ProgramData\Anaconda3\envs\diffDVR\Lib\site-packages\torch\include\torch\csrc\api\include" -I"C:\Users\Administrator\Documents\GitHub\DiffDVR\third-party\cuMat" -I"C:\Users\Administrator\Documents\GitHub\DiffDVR\third-party\magic_enum\include" -I"C:\Users\Administrator\Documents\GitHub\DiffDVR\third-party\cudad\include\cudAD" -I"C:\Users\Administrator\Documents\GitHub\DiffDVR\third-party\tinyformat" -I"C:\Users\Administrator\Documents\GitHub\DiffDVR\third-party\lz4\lib" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" --keep-dir x64\Debug -use_fast_math -maxrregcount=0 --machine 64 --compile -cudart static -std=c++17 --generate-line-info --expt-relaxed-constexpr --extended-lambda –Xptxas -v -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=integer_sign_change,--diag_suppress=useless_using_declaration,--diag_suppress=set_but_not_used,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppress=dll_interface_conflict_dllexport_assumed,--diag_suppress=implicit_return_from_non_void_function,--diag_suppress=unsigned_compare_with_zero,--diag_suppress=declared_but_not_referenced,--diag_suppress=bad_friend_decl --Werror cross-execution-space-call --no-host-device-move-forward --expt-relaxed-constexpr --expt-extended-lambda -std=c++17 --generate-line-info --expt-relaxed-constexpr --extended-lambda –Xptxas -v -std=c++17 -Xcompiler="/EHsc -Zi -Ob0" -g -D_WINDOWS -DONNX_NAMESPACE=onnx_c2 -D"RENDERER_SHADER_DIRS={"C:/Users/Administrator/Documents/GitHub/DiffDVR/renderer","C:/Users/Administrator/Documents/GitHub/DiffDVR/third-party/cudad/include/cudAD",}" -DRENDERER_RUNTIME_COMPILATION=1 -D"NVCC_ARGS="arch=compute_61,code=sm_61"" -D"NVCC_INCLUDE_DIR=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include" -DRENDERER_BUILD_CPU_KERNELS=1 -DUSE_DOUBLE_PRECISION=0 -DNOMINMAX -DCUMAT_SINGLE_THREAD_CONTEXT=1 -DTHRUST_IGNORE_CUB_VERSION_CHECK=1 -D"CMAKE_INTDIR="Debug"" -D_MBCS -DWIN32 -D_WINDOWS -D"RENDERER_SHADER_DIRS={"C:/Users/Administrator/Documents/GitHub/DiffDVR/renderer","C:/Users/Administrator/Documents/GitHub/DiffDVR/third-party/cudad/include/cudAD",}" -DRENDERER_RUNTIME_COMPILATION=1 -D"NVCC_ARGS="arch=compute_61,code=sm_61"" -D"NVCC_INCLUDE_DIR=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.6/include" -DRENDERER_BUILD_CPU_KERNELS=1 -DUSE_DOUBLE_PRECISION=0 -DNOMINMAX -DCUMAT_SINGLE_THREAD_CONTEXT=1 -DTHRUST_IGNORE_CUB_VERSION_CHECK=1 -D"CMAKE_INTDIR="Debug"" -Xcompiler "/EHsc /W1 /nologo /Od /FdC:\Users\Administrator\Documents\GitHub\DiffDVR\build\renderer\Debug\Renderer.pdb /FS /Zi /RTC1 /MDd /GR" -o Renderer.dir\Debug\renderer_cuda_impl.obj "C:\Users\Administrator\Documents\GitHub\DiffDVR\renderer\renderer_cuda_impl.cu"" exited with code 1. Renderer C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\CUDA 11.7.targets 790
The text was updated successfully, but these errors were encountered: