ashawkey / torch-ngp

A pytorch CUDA extension implementation of instant-ngp (sdf and nerf), with a GUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RuntimeError: Error compiling objects for extension while building extension

tempdeltavalue opened this issue · comments

Windows 10, cuda 11.3 (which is works in vs), torch 1.11, torchvision 0.12.0+cu113

command:

cd raymarching
python setup.py build_ext --inplace

result :
...
objects = self.compiler.compile(
File "C:\Users\mykha\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\utils\cpp_extension.py", line 714, in win_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "C:\Users\mykha\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\utils\cpp_extension.py", line 1419, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "C:\Users\mykha\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\utils\cpp_extension.py", line 1756, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

facebookresearch/maskrcnn-benchmark#1236

I'm installed cuda 10.1
and
torch==1.8.1+cu101 torchvision==0.9.1+cu101 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html

and I get same issue as above

but in this case is related to vs , probably
Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/include\yvals_core.h(565): fatal error C1189: #error: STL1002: Unexpected compiler version, expected CUDA 10.1 Update 2 or newer.

also same for torch 1.12.1+cu113