facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.75k stars 1.31k forks source link

How to install Pytorch3D in Windows with CUDA 11.1 and Pytorch 1.8 #957

Closed sunshinewhy closed 2 years ago

sunshinewhy commented 2 years ago

❓ Questions on how to use PyTorch3D

I am trying to install Pytorch3D in Windows10 with CUDA 11.1, VS2019, and Pytorch 1.8. I tried the following commands and got the following errors. Would you mind letting me know what I did wrong and how to correctly install it?

Thank you very much for your time and help!

The error is:

ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "D:\Anaconda\lib\site-packages\torch\utils\cpp_extension.py", line 1667, in _run_ninja_build
    subprocess.run(
  File "D:\Anaconda\lib\subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
sunshinewhy commented 2 years ago

The log file is here. error.txt

LewisSean commented 2 years ago

pytorch1.8 + cuda 11.2 + win10 my first install meets the same problem with your compile log then i comment out Line 60 in setup.py # "-std=c++14", it worked out ! maybe this problem is due to an older compiler

sunshinewhy commented 2 years ago

@LewisSean Thanks, I have installed it.

zuo12138 commented 2 years ago

thank you very much!!!!!

pytorch1.8 + cuda 11.2 + win10 我的第一次安装遇到了与编译日志相同的问题,然后我注释掉了第60行,setup.py它解决了!也许这个问题是由于较旧的编译器造成的# "-std=c++14",

vivi-gomez commented 1 year ago

pytorch1.8 + cuda 11.2 + win10 my first install meets the same problem with your compile log then i comment out Line 60 in setup.py # "-std=c++14", it worked out ! maybe this problem is due to an older compiler

Thank you. This was the key for me to install it on w11. I used torch==1.12.0+cu116 torchvision==0.13.0+cu116 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu116

editing setup.py Linea 52

extra_compile_args = {"cxx": ["-std=c++14"]}

extra_compile_args = {"cxx": [""]}

and linea 77 if os.name != "nt":

nvcc_args.append("-std=c++14")

          nvcc_args.append("")
BhavinPrajapti commented 1 year ago

@txirrindulari I tried this but having same error:

File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\utils\cpp_extension.py", line 1683, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension

BhavinPrajapti commented 1 year ago

Hello, cuda 11.1 pytorch 1.8 win11

setup.py:84: UserWarning: The environment variable CUB_HOME was not found. NVIDIA CUB is required for compilation and can be downloaded from https://github.com/NVIDIA/cub/releases. You can unpack it to a location of your choice and set the environment variable CUB_HOME to the folder containing the CMakeListst.txt file. warnings.warn( running install C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer, pypa/build or
    other standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!! self.initialize_options() C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated. !!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer, pypa/build or
    other standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!! self.initialize_options() running bdist_egg running egg_info writing pytorch3d.egg-info\PKG-INFO writing dependency_links to pytorch3d.egg-info\dependency_links.txt writing entry points to pytorch3d.egg-info\entry_points.txt writing requirements to pytorch3d.egg-info\requires.txt writing top-level names to pytorch3d.egg-info\top_level.txt reading manifest file 'pytorch3d.egg-info\SOURCES.txt' adding license file 'LICENSE' adding license file 'LICENSE-3RD-PARTY' writing manifest file 'pytorch3d.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py running build_ext C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\utils\cpp_extension.py:304: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') building 'pytorch3d._C' extension Emitting ninja build file C:\Users\hp\pytorch3d\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/67] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\ball_query\ball_query_cpu.cpp /FoC:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\ball_query\ball_query_cpu.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 FAILED: C:/Users/hp/pytorch3d/build/temp.win-amd64-cpython-38/Release/Users/hp/pytorch3d/pytorch3d/csrc/ball_query/ball_query_cpu.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\ball_query\ball_query_cpu.cpp /FoC:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\ball_query\ball_query_cpu.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [2/67] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\weighted_sum_cpu.cpp /FoC:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\weighted_sum_cpu.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 FAILED: C:/Users/hp/pytorch3d/build/temp.win-amd64-cpython-38/Release/Users/hp/pytorch3d/pytorch3d/csrc/compositing/weighted_sum_cpu.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\weighted_sum_cpu.cpp /FoC:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\weighted_sum_cpu.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [3/67] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\norm_weighted_sum_cpu.cpp /FoC:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\norm_weighted_sum_cpu.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 FAILED: C:/Users/hp/pytorch3d/build/temp.win-amd64-cpython-38/Release/Users/hp/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\norm_weighted_sum_cpu.cpp /FoC:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\norm_weighted_sum_cpu.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [4/67] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\blending\sigmoid_alpha_blend_cpu.cpp /FoC:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\blending\sigmoid_alpha_blend_cpu.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 FAILED: C:/Users/hp/pytorch3d/build/temp.win-amd64-cpython-38/Release/Users/hp/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\blending\sigmoid_alpha_blend_cpu.cpp /FoC:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\blending\sigmoid_alpha_blend_cpu.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [5/67] cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\alpha_composite_cpu.cpp /FoC:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\alpha_composite_cpu.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 FAILED: C:/Users/hp/pytorch3d/build/temp.win-amd64-cpython-38/Release/Users/hp/pytorch3d/pytorch3d/csrc/compositing/alpha_composite_cpu.obj cl /showIncludes /nologo /O2 /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\alpha_composite_cpu.cpp /FoC:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\alpha_composite_cpu.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14 C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include\cstddef(12): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [6/67] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\norm_weighted_sum.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 -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\norm_weighted_sum.cu -o C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\norm_weighted_sum.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 FAILED: C:/Users/hp/pytorch3d/build/temp.win-amd64-cpython-38/Release/Users/hp/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\norm_weighted_sum.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 -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\norm_weighted_sum.cu -o C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\norm_weighted_sum.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory norm_weighted_sum.cu [7/67] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\ball_query\ball_query.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 -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\ball_query\ball_query.cu -o C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\ball_query\ball_query.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 FAILED: C:/Users/hp/pytorch3d/build/temp.win-amd64-cpython-38/Release/Users/hp/pytorch3d/pytorch3d/csrc/ball_query/ball_query.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\ball_query\ball_query.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 -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\ball_query\ball_query.cu -o C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\ball_query\ball_query.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory ball_query.cu [8/67] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\blending\sigmoid_alpha_blend.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 -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\blending\sigmoid_alpha_blend.cu -o C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\blending\sigmoid_alpha_blend.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 FAILED: C:/Users/hp/pytorch3d/build/temp.win-amd64-cpython-38/Release/Users/hp/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\blending\sigmoid_alpha_blend.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 -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\blending\sigmoid_alpha_blend.cu -o C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\blending\sigmoid_alpha_blend.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory sigmoid_alpha_blend.cu [9/67] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\alpha_composite.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 -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\alpha_composite.cu -o C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\alpha_composite.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 FAILED: C:/Users/hp/pytorch3d/build/temp.win-amd64-cpython-38/Release/Users/hp/pytorch3d/pytorch3d/csrc/compositing/alpha_composite.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\alpha_composite.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 -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\alpha_composite.cu -o C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\alpha_composite.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory alpha_composite.cu [10/67] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\weighted_sum.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 -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\weighted_sum.cu -o C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\weighted_sum.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 FAILED: C:/Users/hp/pytorch3d/build/temp.win-amd64-cpython-38/Release/Users/hp/pytorch3d/pytorch3d/csrc/compositing/weighted_sum.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc --generate-dependencies-with-compile --dependency-output C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\weighted_sum.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 -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -IC:\Users\hp\pytorch3d\pytorch3d\csrc -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\TH -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\include -IC:\Users\hp\anaconda3\envs\6D_CUDA11.1\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" -c C:\Users\hp\pytorch3d\pytorch3d\csrc\compositing\weighted_sum.cu -o C:\Users\hp\pytorch3d\build\temp.win-amd64-cpython-38\Release\Users\hp\pytorch3d\pytorch3d\csrc\compositing\weighted_sum.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.36.32532/include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory weighted_sum.cu ninja: build stopped: subcommand failed. Traceback (most recent call last): File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\utils\cpp_extension.py", line 1667, in _run_ninja_build subprocess.run( File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\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 144, in setup( File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools__init__.py", line 107, in setup return distutils.core.setup(**attrs) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\core.py", line 185, in setup return run_commands(dist) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands dist.run_commands() File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands self.run_command(cmd) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools\dist.py", line 1244, in run_command super().run_command(command) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools\command\install.py", line 80, in run self.do_egg_install() File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools\command\install.py", line 129, in do_egg_install self.run_command('bdist_egg') File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools\dist.py", line 1244, in run_command super().run_command(command) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools\command\bdist_egg.py", line 164, in run cmd = self.call_command('install_lib', warn_dir=0) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools\command\bdist_egg.py", line 150, in call_command self.run_command(cmdname) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools\dist.py", line 1244, in run_command super().run_command(command) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools\command\install_lib.py", line 11, in run self.build() File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\command\install_lib.py", line 111, in build self.run_command('build_ext') File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools\dist.py", line 1244, in run_command super().run_command(command) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools\command\build_ext.py", line 84, in run _build_ext.run(self) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 345, in run self.build_extensions() File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\utils\cpp_extension.py", line 708, in build_extensions build_ext.build_extensions(self) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 467, in build_extensions self._build_extensions_serial() File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 493, in _build_extensions_serial self.build_extension(ext) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools\command\build_ext.py", line 246, in build_extension _build_ext.build_extension(self, ext) File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 548, in build_extension objects = self.compiler.compile( File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\utils\cpp_extension.py", line 681, in win_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\utils\cpp_extension.py", line 1354, in _write_ninja_file_and_compile_objects _run_ninja_build( File "C:\Users\hp\anaconda3\envs\6D_CUDA11.1\lib\site-packages\torch\utils\cpp_extension.py", line 1683, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension

bottler commented 1 year ago

@BhavinPrajapti Please open a new issue if you still need help, detailing what you did and what went wrong. This issue is old and closed.