USIP
USIP copied to clipboard
Failed to compile index_max_ext in Windows 10
Thanks for sharing your code. I am trying to compile "models\index_max_ext" in windows 10. Install VS C++ 19. Please see following errors: ... [2/2] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\backup\unt\covis\projects\USIP-master\USIP-master\models\index_max_ext\build\temp.win-amd64-3.8\Release\index_max_cuda.obj.d --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -IC:\Users\Amaar\anaconda3\lib\site-packages\torch\include -IC:\Users\Amaar\anaconda3\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Amaar\anaconda3\lib\site-packages\torch\include\TH -IC:\Users\Amaar\anaconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\include" -IC:\Users\Amaar\anaconda3\include -IC:\Users\Amaar\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" -c D:\backup\unt\covis\projects\USIP-master\USIP-master\models\index_max_ext\index_max_cuda.cu -o D:\backup\unt\covis\projects\USIP-master\USIP-master\models\index_max_ext\build\temp.win-amd64-3.8\Release\index_max_cuda.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=index_max -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 FAILED: D:/backup/unt/covis/projects/USIP-master/USIP-master/models/index_max_ext/build/temp.win-amd64-3.8/Release/index_max_cuda.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\backup\unt\covis\projects\USIP-master\USIP-master\models\index_max_ext\build\temp.win-amd64-3.8\Release\index_max_cuda.obj.d --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -IC:\Users\Amaar\anaconda3\lib\site-packages\torch\include -IC:\Users\Amaar\anaconda3\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Amaar\anaconda3\lib\site-packages\torch\include\TH -IC:\Users\Amaar\anaconda3\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\include" -IC:\Users\Amaar\anaconda3\include -IC:\Users\Amaar\anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" -c D:\backup\unt\covis\projects\USIP-master\USIP-master\models\index_max_ext\index_max_cuda.cu -o D:\backup\unt\covis\projects\USIP-master\USIP-master\models\index_max_ext\build\temp.win-amd64-3.8\Release\index_max_cuda.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=index_max -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 C:\Users\Amaar\anaconda3\lib\site-packages\torch\include\pybind11\detail/common.h(108): warning C4005: 'HAVE_SNPRINTF': macro redefinition C:\Users\Amaar\anaconda3\include\pyerrors.h(315): note: see previous definition of 'HAVE_SNPRINTF' C:\Users\Amaar\anaconda3\lib\site-packages\torch\include\pybind11\detail/common.h(108): warning C4005: 'HAVE_SNPRINTF': macro redefinition C:\Users\Amaar\anaconda3\include\pyerrors.h(315): note: see previous definition of 'HAVE_SNPRINTF' C:\Users\Amaar\anaconda3\lib\site-packages\torch\include\pybind11\cast.h(1429): error: too few arguments for template template parameter "Tuple" detected during instantiation of class "pybind11::detail::tuple_caster<Tuple, Ts...> [with Tuple=std::pair, Ts=<T1, T2>]" (1507): here
C:\Users\Amaar\anaconda3\lib\site-packages\torch\include\pybind11\cast.h(1503): error: too few arguments for template template parameter "Tuple" detected during instantiation of class "pybind11::detail::tuple_caster<Tuple, Ts...> [with Tuple=std::pair, Ts=<T1, T2>]" (1507): here
2 errors detected in the compilation of "d:/backup/unt/covis/projects/usip-master/usip-master/models/index_max_ext/index_max_cuda.cu". index_max_cuda.cu ninja: build stopped: subcommand failed. Traceback (most recent call last): File "C:\Users\Amaar\anaconda3\lib\site-packages\torch\utils\cpp_extension.py", line 1666, in _run_ninja_build subprocess.run( File "C:\Users\Amaar\anaconda3\lib\subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 16, in