nerfstudio-project / nerfstudio

A collaboration friendly studio for NeRFs
https://docs.nerf.studio
Apache License 2.0
9.55k stars 1.3k forks source link

[WInErr] fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. #3171

Closed Wansh619 closed 5 months ago

Wansh619 commented 5 months ago

I am encountering an error when trying to install the Tiny CUDA Neural Networks (tiny-cuda-nn) bindings for Torch. I have installed Visual Studio 2022 and Torch 2.1.2 with CUDA 11.8. Despite these installations, I still face issues during the installation process in my window 10 instance.

pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch

ERROR:


(nerfstudio) C:\Users\Administrator>pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
Collecting git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
  Cloning https://github.com/NVlabs/tiny-cuda-nn/ to c:\users\administrator\appdata\local\temp\2\pip-req-build-dg5t1d_o
  Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/tiny-cuda-nn/ 'C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o'
  Resolved https://github.com/NVlabs/tiny-cuda-nn/ to commit 4892659e015b12bd2fce446b8a8e33e646b21746
  Running command git submodule update --init --recursive -q
  Preparing metadata (setup.py) ... done
Collecting ninja
  Using cached ninja-1.11.1.1-py2.py3-none-win_amd64.whl.metadata (5.4 kB)
Using cached ninja-1.11.1.1-py2.py3-none-win_amd64.whl (312 kB)
Building wheels for collected packages: tinycudann
  Building wheel for tinycudann (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [152 lines of output]
      C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings/torch\setup.py:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
        from pkg_resources import parse_version
      Building PyTorch extension for tiny-cuda-nn version 1.7
      Obtained compute capability 86 from PyTorch
      nvcc: NVIDIA (R) Cuda compiler driver
      Copyright (c) 2005-2022 NVIDIA Corporation
      Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
      Cuda compilation tools, release 11.8, V11.8.89
      Build cuda_11.8.r11.8/compiler.31833905_0
      Detected CUDA version 11.8
      Targeting C++ standard 17
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-38
      creating build\lib.win-amd64-cpython-38\tinycudann
      copying tinycudann\modules.py -> build\lib.win-amd64-cpython-38\tinycudann
      copying tinycudann\__init__.py -> build\lib.win-amd64-cpython-38\tinycudann
      running egg_info
      creating tinycudann.egg-info
      writing tinycudann.egg-info\PKG-INFO
      writing dependency_links to tinycudann.egg-info\dependency_links.txt
      writing top-level names to tinycudann.egg-info\top_level.txt
      writing manifest file 'tinycudann.egg-info\SOURCES.txt'
      reading manifest file 'tinycudann.egg-info\SOURCES.txt'
      writing manifest file 'tinycudann.egg-info\SOURCES.txt'
      copying tinycudann\bindings.cpp -> build\lib.win-amd64-cpython-38\tinycudann
      running build_ext
      building 'tinycudann_bindings._86_C' extension
      creating C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\dependencies
      creating C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\dependencies\fmt
      creating C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\dependencies\fmt\src
      creating C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src
      creating C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\temp.win-amd64-cpython-38
      creating C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\temp.win-amd64-cpython-38\Release
      creating C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\temp.win-amd64-cpython-38\Release\tinycudann
      Emitting ninja build file C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\temp.win-amd64-cpython-38\Release\build.ninja...
      Compiling objects...
      Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
      [1/10] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/cpp_api.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -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\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/tools/util/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/fmt/include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\ProgramData\anaconda3\envs\nerfstudio\include -IC:\ProgramData\anaconda3\envs\nerfstudio\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\src\cpp_api.cu -o C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/cpp_api.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -std=c++17 --extended-lambda --expt-relaxed-constexpr -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -DTCNN_PARAMS_UNALIGNED -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0
      FAILED: C:/Users/Administrator/AppData/Local/Temp/2/pip-req-build-dg5t1d_o/bindings/torch/build/src/cpp_api.obj
      C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/cpp_api.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -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\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/tools/util/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/fmt/include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\ProgramData\anaconda3\envs\nerfstudio\include -IC:\ProgramData\anaconda3\envs\nerfstudio\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\src\cpp_api.cu -o C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/cpp_api.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -std=c++17 --extended-lambda --expt-relaxed-constexpr -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -DTCNN_PARAMS_UNALIGNED -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF_OPERATORS__' with '/U__CUDA_NO_HALF_OPERATORS__'
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF_CONVERSIONS__' with '/U__CUDA_NO_HALF_CONVERSIONS__'
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF2_OPERATORS__' with '/U__CUDA_NO_HALF2_OPERATORS__'
      cpp_api.cu
      C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\crt/host_config.h(153): fatal error C1189: #error:  -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
      cpp_api.cu

      [2/10] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/cutlass_mlp.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -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\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/tools/util/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/fmt/include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\ProgramData\anaconda3\envs\nerfstudio\include -IC:\ProgramData\anaconda3\envs\nerfstudio\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\src\cutlass_mlp.cu -o C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/cutlass_mlp.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -std=c++17 --extended-lambda --expt-relaxed-constexpr -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -DTCNN_PARAMS_UNALIGNED -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0
      FAILED: C:/Users/Administrator/AppData/Local/Temp/2/pip-req-build-dg5t1d_o/bindings/torch/build/src/cutlass_mlp.obj
      C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/cutlass_mlp.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -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\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/tools/util/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/fmt/include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\ProgramData\anaconda3\envs\nerfstudio\include -IC:\ProgramData\anaconda3\envs\nerfstudio\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\src\cutlass_mlp.cu -o C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/cutlass_mlp.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -std=c++17 --extended-lambda --expt-relaxed-constexpr -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -DTCNN_PARAMS_UNALIGNED -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF_OPERATORS__' with '/U__CUDA_NO_HALF_OPERATORS__'
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF_CONVERSIONS__' with '/U__CUDA_NO_HALF_CONVERSIONS__'
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF2_OPERATORS__' with '/U__CUDA_NO_HALF2_OPERATORS__'
      cutlass_mlp.cu
      C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\crt/host_config.h(153): fatal error C1189: #error:  -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.

      cutlass_mlp.cu

      [3/10] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/tools/util/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/fmt/include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\ProgramData\anaconda3\envs\nerfstudio\include -IC:\ProgramData\anaconda3\envs\nerfstudio\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\dependencies\fmt\src\os.cc /FoC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\dependencies/fmt/src/os.obj /std:c++17 -DTCNN_PARAMS_UNALIGNED -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0
      [4/10] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/encoding.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -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\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/tools/util/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/fmt/include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\ProgramData\anaconda3\envs\nerfstudio\include -IC:\ProgramData\anaconda3\envs\nerfstudio\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\src\encoding.cu -o C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/encoding.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -std=c++17 --extended-lambda --expt-relaxed-constexpr -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -DTCNN_PARAMS_UNALIGNED -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0
      FAILED: C:/Users/Administrator/AppData/Local/Temp/2/pip-req-build-dg5t1d_o/bindings/torch/build/src/encoding.obj
      C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/encoding.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -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\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/tools/util/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/fmt/include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\ProgramData\anaconda3\envs\nerfstudio\include -IC:\ProgramData\anaconda3\envs\nerfstudio\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\src\encoding.cu -o C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/encoding.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -std=c++17 --extended-lambda --expt-relaxed-constexpr -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -DTCNN_PARAMS_UNALIGNED -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF_OPERATORS__' with '/U__CUDA_NO_HALF_OPERATORS__'
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF_CONVERSIONS__' with '/U__CUDA_NO_HALF_CONVERSIONS__'
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF2_OPERATORS__' with '/U__CUDA_NO_HALF2_OPERATORS__'

      encoding.cu

      C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\crt/host_config.h(153): fatal error C1189: #error:  -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.

      encoding.cu

      [5/10] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/common_host.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -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\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/tools/util/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/fmt/include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\ProgramData\anaconda3\envs\nerfstudio\include -IC:\ProgramData\anaconda3\envs\nerfstudio\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\src\common_host.cu -o C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/common_host.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -std=c++17 --extended-lambda --expt-relaxed-constexpr -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -DTCNN_PARAMS_UNALIGNED -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0
      FAILED: C:/Users/Administrator/AppData/Local/Temp/2/pip-req-build-dg5t1d_o/bindings/torch/build/src/common_host.obj
      C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/common_host.obj.d -std=c++17 --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /wd4624 -Xcompiler /wd4067 -Xcompiler /wd4068 -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\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/tools/util/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/fmt/include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\ProgramData\anaconda3\envs\nerfstudio\include -IC:\ProgramData\anaconda3\envs\nerfstudio\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\src\common_host.cu -o C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\src/common_host.obj -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -std=c++17 --extended-lambda --expt-relaxed-constexpr -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -DTCNN_PARAMS_UNALIGNED -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF_OPERATORS__' with '/U__CUDA_NO_HALF_OPERATORS__'
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF_CONVERSIONS__' with '/U__CUDA_NO_HALF_CONVERSIONS__'
      cl : Command line warning D9025 : overriding '/D__CUDA_NO_HALF2_OPERATORS__' with '/U__CUDA_NO_HALF2_OPERATORS__'
      common_host.cu
      C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\crt/host_config.h(153): fatal error C1189: #error:  -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.

      common_host.cu

      [6/10] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/cutlass/tools/util/include -IC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o/dependencies/fmt/include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -IC:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\ProgramData\anaconda3\envs\nerfstudio\include -IC:\ProgramData\anaconda3\envs\nerfstudio\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\dependencies\fmt\src\format.cc /FoC:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings\torch\build\dependencies/fmt/src/format.obj /std:c++17 -DTCNN_PARAMS_UNALIGNED -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_86_C -D_GLIBCXX_USE_CXX11_ABI=0
      ninja: build stopped: subcommand failed.
      Traceback (most recent call last):
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\utils\cpp_extension.py", line 2100, in _run_ninja_build
          subprocess.run(
        File "C:\ProgramData\anaconda3\envs\nerfstudio\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 "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Administrator\AppData\Local\Temp\2\pip-req-build-dg5t1d_o\bindings/torch\setup.py", line 189, in <module>
          setup(
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\__init__.py", line 104, in setup
          return distutils.core.setup(**attrs)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\core.py", line 184, in setup
          return run_commands(dist)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\core.py", line 200, in run_commands
          dist.run_commands()
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\dist.py", line 967, in run_command
          super().run_command(command)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\wheel\bdist_wheel.py", line 368, in run
          self.run_command("build")
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\dist.py", line 967, in run_command
          super().run_command(command)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
          self.run_command(cmd_name)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
          self.distribution.run_command(command)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\dist.py", line 967, in run_command
          super().run_command(command)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\command\build_ext.py", line 91, in run
          _build_ext.run(self)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run
          self.build_extensions()
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\utils\cpp_extension.py", line 873, in build_extensions
          build_ext.build_extensions(self)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 479, in build_extensions
          self._build_extensions_serial()
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 505, in _build_extensions_serial
          self.build_extension(ext)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\command\build_ext.py", line 252, in build_extension
          _build_ext.build_extension(self, ext)
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 560, in build_extension
          objects = self.compiler.compile(
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\utils\cpp_extension.py", line 845, in win_wrap_ninja_compile
          _write_ninja_file_and_compile_objects(
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\utils\cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects
          _run_ninja_build(
        File "C:\ProgramData\anaconda3\envs\nerfstudio\lib\site-packages\torch\utils\cpp_extension.py", line 2116, in _run_ninja_build
          raise RuntimeError(message) from e
      RuntimeError: Error compiling objects for extension
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for tinycudann
  Running setup.py clean for tinycudann
Failed to build tinycudann
ERROR: Could not build wheels for tinycudann, which is required to install pyproject.toml-based projects

encountering this issue even after installin VS2022 :

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\crt/host_config.h(153): fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.

abrahamezzeddine commented 5 months ago

Hello,

Please see this issue if it fits you. This is because latest VS2022 is 17.10 and not 17.9x.

17.10 is not supported. Also make sure you have installed setuptools 69.5.1. Gsplat does not compile with setuptools 70.0.0 which was released a few days ago.

3157

Wansh619 commented 5 months ago

@abrahamezzeddine Thanks for your help it really worked

s1eeveW commented 5 months ago

@Wansh619 Hi, mate. How do you download VS 17.9? I cannot find any old version download link on VS official website :(

Wansh619 commented 5 months ago

I downloaded the enterprise version 17.9.6

abrahamezzeddine commented 5 months ago

@Wansh619 Hi, mate. How do you download VS 17.9? I cannot find any old version download link on VS official website :(

Check #3157

s1eeveW commented 5 months ago

@Wansh619 @abrahamezzeddine

Thanks guys! I have successfully installed the nerfstudio.

SinianDragon commented 5 months ago

@s1eeveW Where did you download the 17,9version , i can not find the website either

q576333 commented 5 months ago

@s1eeveW Where did you download the 17,9version , i can not find the website either

I found link as here and how to reinstall it. https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history https://learn.microsoft.com/en-us/answers/questions/770494/is-it-possible-to-install-a-prior-build-version-of

sancelot commented 4 months ago

I agree it is not bulletproof to do.

at my own risk , I have allowed 17.10 version nerfstudio\include\crt/host_config.h

#if defined(sucks)
#if defined(_WIN32)

#if _MSC_VER < 1910 || _MSC_VER >= 1940

#error -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.

#elif _MSC_VER >= 1910 && _MSC_VER < 1910

#pragma message("support for this version of Microsoft Visual Studio has been deprecated! Only the versions between 2017 and 2022 (inclusive) are supported!")

#endif /* (_MSC_VER < 1910 || _MSC_VER >= 1940) || (_MSC_VER >= 1910 && _MSC_VER < 1910) */

#endif /* _WIN32 */
#endif
RPFey commented 4 months ago

One quick fix up is to add ‘-allow-unsupported-compiler’ flags for nvcc. This works for me.

Nabuyay commented 4 months ago

One quick fix up is to add ‘-allow-unsupported-compiler’ flags for nvcc. This works for me.

May I ask how to add flags for nvcc? I am new to this and I've been searching through the internet and still got no results. Thank you so much for the help in advance!

DanBurkhardt commented 3 months ago

One quick fix up is to add ‘-allow-unsupported-compiler’ flags for nvcc. This works for me.

May I ask how to add flags for nvcc? I am new to this and I've been searching through the internet and still got no results. Thank you so much for the help in advance!

You can add an additional flag to your CMAKE_ARGS for CUDA and just string all of the flags you need to pass to nvcc like so:

CMAKE_ARGS="-DCMAKE_CUDA_FLAGS=-allow-unsupported-compiler ... {other_args}"

For example, adding this flag to my args worked perfectly for building llama_cpp_python against my specific GPU architecture in native windows PowerShell:

$env:CMAKE_ARGS="-DLLAMA_OPENBLAS=on -DGGML_BLAS_VENDOR=OpenBLAS -DLLAMA_CUDA=on -DCMAKE_CUDA_ARCHITECTURES=89 -DCMAKE_CUDA_FLAGS=-allow-unsupported-compiler"

...

Strangely though, a bunch of the nvcc comilation tasks ended up finding my 2022 version of Visual Studio anyway, and I saw this in the logs:

... bin\nvcc.exe"  --use-local-env -ccbin "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools ... "

idk why it didn't find it in the first place.

¯_(ツ)_/¯

glhf

ayushanbh commented 3 weeks ago

Hello,

Please see this issue if it fits you. This is because latest VS2022 is 17.10 and not 17.9x.

17.10 is not supported. Also make sure you have installed setuptools 69.5.1. Gsplat does not compile with setuptools 70.0.0 which was released a few days ago.

3157

For People downloading it post September, Here is the link for the Visual Studio 17.9.0 Professional

I am running on RTX3060 12 GB VRAM with Cuda 11.8 and VS Professional 17.9.0