tiny-cuda-nn icon indicating copy to clipboard operation
tiny-cuda-nn copied to clipboard

Windows10 RuntimeError: Error compiling objects for extension.What should I do?

Open dzj727 opened this issue 2 years ago • 4 comments

I have VS 2019 . I installed fmt and cutlass.Then cmake . -B build and cmake --build build --config RelWithDebInfo -j . Here's the details. (nerfstudio) D:\workspace\nerfstudio-main\tiny-cuda-nn-master>cd bindings\torch (nerfstudio) D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch>python setup.py install 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 Tue_May__3_19:00:59_Pacific_Daylight_Time_2022 Cuda compilation tools, release 11.7, V11.7.64 Build cuda_11.7.r11.7/compiler.31294372_0 Detected CUDA version 11.7 running install D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( running bdist_egg 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' installing library code to build\bdist.win-amd64\egg running install_lib 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 copying tinycudann\bindings.cpp -> build\lib.win-amd64-cpython-38\tinycudann running build_ext building 'tinycudann_bindings.86_C' extension creating D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\dependencies creating D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\dependencies\fmt creating D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\dependencies\fmt\src creating D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src creating D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\temp.win-amd64-cpython-38 creating D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\temp.win-amd64-cpython-38\Release creating D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\temp.win-amd64-cpython-38\Release\tinycudann Emitting ninja build file D:\workspace\nerfstudio-main\tiny-cuda-nn-master\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] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\dependencies\fmt\src\format.cc /FoD:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\dependencies/fmt/src/format.obj /std:c++14 -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: D:/workspace/nerfstudio-main/tiny-cuda-nn-master/bindings/torch/build/dependencies/fmt/src/format.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\dependencies\fmt\src\format.cc /FoD:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\dependencies/fmt/src/format.obj /std:c++14 -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 注意: 包含文件: D:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include\fmt/format-inl.h D:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include\fmt/format-inl.h(11): fatal error C1083: 无法 打开包括文件: “algorithm”: No such file or directory [2/10] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\dependencies\fmt\src\os.cc /FoD:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\dependencies/fmt/src/os.obj /std:c++14 -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: D:/workspace/nerfstudio-main/tiny-cuda-nn-master/bindings/torch/build/dependencies/fmt/src/os.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\dependencies\fmt\src\os.cc /FoD:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\dependencies/fmt/src/os.obj /std:c++14 -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 注意: 包含文件: D:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include\fmt/os.h D:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include\fmt/os.h(11): fatal error C1083: 无法打开包括 文件: “cerrno”: No such file or directory [3/10] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\tinycudann\bindings.cpp /FoD:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\temp.win-amd64-cpython-38\Release\tinycudann/bindings.obj /std:c++14 -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: D:/workspace/nerfstudio-main/tiny-cuda-nn-master/bindings/torch/build/temp.win-amd64-cpython-38/Release/tinycudann/bindings.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\tinycudann\bindings.cpp /FoD:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\temp.win-amd64-cpython-38\Release\tinycudann/bindings.obj /std:c++14 -DTCNN_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch/extension.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include\torch/all.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include\torch/autograd.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch/csrc/autograd/autograd.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch/csrc/autograd/variable.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch/csrc/utils/python_stub.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch/csrc/Export.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\c10/macros/Export.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\c10/macros/cmake_macros.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch/csrc/autograd/cpp_hook.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch/csrc/autograd/function_hook.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\ATen/Tensor.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\ATen/core/Tensor.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\ATen/core/TensorBody.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\c10/core/Device.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\c10/core/DeviceType.h 注意: 包含文件: D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\c10/macros/Macros.h D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\c10/macros/Macros.h(3): fatal error C1083: 无法打开包括文件: “cassert”: No such file or directory [4/10] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/cpp_api.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\cpp_api.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: D:/workspace/nerfstudio-main/tiny-cuda-nn-master/bindings/torch/build/src/cpp_api.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/cpp_api.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\cpp_api.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_OPERATORS_”(用“/U__CUDA_NO_HALF_OPERATORS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_CONVERSIONS__”(用“/U__CUDA_NO_HALF_CONVERSIONS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF2_OPERATORS__”(用“/U__CUDA_NO_HALF2_OPERATORS__”) cpp_api.cu C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include\crt/host_config.h(231): fatal error C1083: 无法打开包括文件: “crtdefs.h”: No such file or directory cpp_api.cu [5/10] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/cutlass_mlp.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\cutlass_mlp.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: D:/workspace/nerfstudio-main/tiny-cuda-nn-master/bindings/torch/build/src/cutlass_mlp.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/cutlass_mlp.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\cutlass_mlp.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_OPERATORS_”(用“/U__CUDA_NO_HALF_OPERATORS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_CONVERSIONS__”(用“/U__CUDA_NO_HALF_CONVERSIONS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF2_OPERATORS__”(用“/U__CUDA_NO_HALF2_OPERATORS__”) cutlass_mlp.cu C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include\crt/host_config.h(231): fatal error C1083: 无法打开包括文件: “crtdefs.h”: No such file or directory cutlass_mlp.cu [6/10] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/common_device.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\common_device.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/common_device.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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: D:/workspace/nerfstudio-main/tiny-cuda-nn-master/bindings/torch/build/src/common_device.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/common_device.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\common_device.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/common_device.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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_OPERATORS_”(用“/U__CUDA_NO_HALF_OPERATORS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_CONVERSIONS__”(用“/U__CUDA_NO_HALF_CONVERSIONS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF2_OPERATORS__”(用“/U__CUDA_NO_HALF2_OPERATORS__”) common_device.cu C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include\crt/host_config.h(231): fatal error C1083: 无法打开包括文件: “crtdefs.h”: No such file or directory common_device.cu [7/10] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/network.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\network.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/network.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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: D:/workspace/nerfstudio-main/tiny-cuda-nn-master/bindings/torch/build/src/network.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/network.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\network.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/network.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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_OPERATORS_”(用“/U__CUDA_NO_HALF_OPERATORS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_CONVERSIONS__”(用“/U__CUDA_NO_HALF_CONVERSIONS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF2_OPERATORS__”(用“/U__CUDA_NO_HALF2_OPERATORS__”) network.cu C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include\crt/host_config.h(231): fatal error C1083: 无法打开包括文件: “crtdefs.h”: No such file or directory network.cu [8/10] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/fully_fused_mlp.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\fully_fused_mlp.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/fully_fused_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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: D:/workspace/nerfstudio-main/tiny-cuda-nn-master/bindings/torch/build/src/fully_fused_mlp.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/fully_fused_mlp.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\fully_fused_mlp.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/fully_fused_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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_OPERATORS_”(用“/U__CUDA_NO_HALF_OPERATORS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_CONVERSIONS__”(用“/U__CUDA_NO_HALF_CONVERSIONS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF2_OPERATORS__”(用“/U__CUDA_NO_HALF2_OPERATORS__”) fully_fused_mlp.cu C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include\crt/host_config.h(231): fatal error C1083: 无法打开包括文件: “crtdefs.h”: No such file or directory fully_fused_mlp.cu [9/10] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/encoding.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\encoding.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: D:/workspace/nerfstudio-main/tiny-cuda-nn-master/bindings/torch/build/src/encoding.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/encoding.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\encoding.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_OPERATORS_”(用“/U__CUDA_NO_HALF_OPERATORS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_CONVERSIONS__”(用“/U__CUDA_NO_HALF_CONVERSIONS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF2_OPERATORS__”(用“/U__CUDA_NO_HALF2_OPERATORS__”) encoding.cu C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include\crt/host_config.h(231): fatal error C1083: 无法打开包括文件: “crtdefs.h”: No such file or directory encoding.cu [10/10] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/common.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\common.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/common.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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: D:/workspace/nerfstudio-main/tiny-cuda-nn-master/bindings/torch/build/src/common.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin\nvcc --generate-dependencies-with-compile --dependency-output D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/common.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 -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/cutlass/tools/util/include -ID:\workspace\nerfstudio-main\tiny-cuda-nn-master/dependencies/fmt/include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include" -ID:\Anaconda3\envs\nerfstudio\include -ID:\Anaconda3\envs\nerfstudio\Include -c D:\workspace\nerfstudio-main\tiny-cuda-nn-master\src\common.cu -o D:\workspace\nerfstudio-main\tiny-cuda-nn-master\bindings\torch\build\src/common.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++14 --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_MIN_GPU_ARCH=86 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=86_C -D_GLIBCXX_USE_CXX11_ABI=0 cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_OPERATORS_”(用“/U__CUDA_NO_HALF_OPERATORS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_CONVERSIONS__”(用“/U__CUDA_NO_HALF_CONVERSIONS__”) cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF2_OPERATORS__”(用“/U__CUDA_NO_HALF2_OPERATORS__”) common.cu C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\include\crt/host_config.h(231): fatal error C1083: 无法打开包括文件: “crtdefs.h”: No such file or directory common.cu ninja: build stopped: subcommand failed. Traceback (most recent call last): File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\utils\cpp_extension.py", line 1893, in _run_ninja_build subprocess.run( File "D:\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 "setup.py", line 174, in setup( File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_init_.py", line 87, in setup return distutils.core.setup(**attrs) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\core.py", line 185, in setup return run_commands(dist) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands dist.run_commands() File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands self.run_command(cmd) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\dist.py", line 1208, in run_command super().run_command(command) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\command\install.py", line 74, in run self.do_egg_install() File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\command\install.py", line 123, in do_egg_install self.run_command('bdist_egg') File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\dist.py", line 1208, in run_command super().run_command(command) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\command\bdist_egg.py", line 165, in run cmd = self.call_command('install_lib', warn_dir=0) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\command\bdist_egg.py", line 151, in call_command self.run_command(cmdname) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\dist.py", line 1208, in run_command super().run_command(command) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\command\install_lib.py", line 11, in run self.build() File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\command\install_lib.py", line 112, in build self.run_command('build_ext') File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\dist.py", line 1208, in run_command super().run_command(command) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\command\build_ext.py", line 84, in run _build_ext.run(self) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\command\build_ext.py", line 346, in run self.build_extensions() File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\utils\cpp_extension.py", line 843, in build_extensions build_ext.build_extensions(self) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\command\build_ext.py", line 468, in build_extensions self._build_extensions_serial() File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\command\build_ext.py", line 494, in _build_extensions_serial self.build_extension(ext) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension _build_ext.build_extension(self, ext) File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\setuptools_distutils\command\build_ext.py", line 549, in build_extension objects = self.compiler.compile( File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\utils\cpp_extension.py", line 815, in win_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\utils\cpp_extension.py", line 1574, in _write_ninja_file_and_compile_objects _run_ninja_build( File "D:\Anaconda3\envs\nerfstudio\lib\site-packages\torch\utils\cpp_extension.py", line 1909, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension

dzj727 avatar May 23 '23 11:05 dzj727

This is a problem with ninja builder that I didn't manage to resolve too so I switched to linux(ubuntu) and it installed. I can't think why this is happening but it seems that changing this part of the code so that cmake handles the build or other tool may fix the issue. However, devs don't seem to aknowledge the issue and this may be probably because no one tried to install nerfstudio or tiny-cuda-nn backbone in a windows system that uses ninja builder. For the record linux use GNU Make instead of ninja builder, CMAKE is a higher level tool that detects system builder and chooses the right configs in order the project to be built properly and that's because the big breach between linux gnu gcc/g++ and visual-cpp between operating systems. Sorry for the elaborative comment but it seems this issue is still open (torch-ngp project seems to have tiny-cuda-nn backbone as optional dependency and if you don't want to try linux you can see this repo torch-ngp)

ArtoriasAbyssslayer avatar May 23 '23 14:05 ArtoriasAbyssslayer

You can try installing tiny-cuda-nn using Developer Command Prompt for VS 2019. If there exists compilation errors again, you try other Command Prompt for VS 2019.

PJunGH avatar Jun 07 '23 10:06 PJunGH

@dzj727 I had basically the same problem and error message as yours. I've solved it now following the suggestion of @PJunGH :

You can try installing tiny-cuda-nn using Developer Command Prompt for VS 2019. If there exists compilation errors again, you try other Command Prompt for VS 2019.

Before that, you need to make sure CUDA and your cpu compiler are on the same architecture. It seems that msvc works in x86 by default, and my CUDA is in x64. I expect a x64 architecture so I changed the default behavior of msvs. This can be done by calling vcvarsall.bat with command "YOUR_DIR/Microsoft Visual Studio/20xx/Community/VC/Auxiliary/Build/vcvarsall.bat" x64.

Then both installing from a local clone and with pip in Developer Command Prompt worked perfectly for me. Hope this helps! And thank you so much @PJunGH !

Galaxeaaa avatar Jun 17 '23 23:06 Galaxeaaa

Thanks @Galaxeaaa! I am using miniconda3 and was running into this issue. I was able to install tiny-cuda-nn by running (within the miniconda3):

conda activate <env>
"\Program Files\Microsoft Visual Studio\2022\Professional\vc\Auxiliary\Build\vcvars32.bat" x64
pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch

idontcare999a avatar Sep 13 '23 15:09 idontcare999a