IDEA-Research / DINO

[ICLR 2023] Official implementation of the paper "DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection"
Apache License 2.0
2.24k stars 250 forks source link

Problems about Compiling CUDA operators #113

Closed little-spoon closed 2 years ago

little-spoon commented 2 years ago

os: ubuntu cuda version: 11.4 python: 3.7.3 torch version: 1.12.1 torchvision version: 0.13.1 When I execute "python setup.py build install", the following error occurred. How can I solve this? Thank you. running build running build_py running build_ext /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/utils/cpp_extension.py:813: UserWarning: The detected CUDA version (11.1) has a minor version mismatch with the version that was used to compile PyTorch (11.3). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'MultiScaleDeformableAttention' extension Emitting ninja build file /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/3] /usr/local/cuda/bin/nvcc -DWITH_CUDA -I/home/host/mounted2/lsy/DINO/models/dino/ops/src -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/TH -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/host/mounted2/anaconda3/envs/DINO/include/python3.7m -c -c /home/host/mounted2/lsy/DINO/models/dino/ops/src/cuda/ms_deform_attn_cuda.cu -o /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/cuda/ms_deform_attn_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/cuda/ms_deform_attn_cuda.o /usr/local/cuda/bin/nvcc -DWITH_CUDA -I/home/host/mounted2/lsy/DINO/models/dino/ops/src -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/TH -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/host/mounted2/anaconda3/envs/DINO/include/python3.7m -c -c /home/host/mounted2/lsy/DINO/models/dino/ops/src/cuda/ms_deform_attn_cuda.cu -o /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/cuda/ms_deform_attn_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 nvcc fatal : Failed to preprocess host compiler properties. [2/3] c++ -MMD -MF /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/cpu/ms_deform_attn_cpu.o.d -pthread -B /home/host/mounted2/anaconda3/envs/DINO/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/host/mounted2/lsy/DINO/models/dino/ops/src -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/TH -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/host/mounted2/anaconda3/envs/DINO/include/python3.7m -c -c /home/host/mounted2/lsy/DINO/models/dino/ops/src/cpu/ms_deform_attn_cpu.cpp -o /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/cpu/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/cpu/ms_deform_attn_cpu.o c++ -MMD -MF /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/cpu/ms_deform_attn_cpu.o.d -pthread -B /home/host/mounted2/anaconda3/envs/DINO/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/host/mounted2/lsy/DINO/models/dino/ops/src -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/TH -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/host/mounted2/anaconda3/envs/DINO/include/python3.7m -c -c /home/host/mounted2/lsy/DINO/models/dino/ops/src/cpu/ms_deform_attn_cpu.cpp -o /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/cpu/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ /home/host/mounted2/lsy/DINO/models/dino/ops/src/cpu/ms_deform_attn_cpu.cpp:40:1: fatal error: error writing to /tmp/cczf8vnA.s: No space left on device } ^ compilation terminated. [3/3] c++ -MMD -MF /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.o.d -pthread -B /home/host/mounted2/anaconda3/envs/DINO/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/host/mounted2/lsy/DINO/models/dino/ops/src -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/TH -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/host/mounted2/anaconda3/envs/DINO/include/python3.7m -c -c /home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.cpp -o /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.o c++ -MMD -MF /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.o.d -pthread -B /home/host/mounted2/anaconda3/envs/DINO/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/host/mounted2/lsy/DINO/models/dino/ops/src -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/TH -I/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/host/mounted2/anaconda3/envs/DINO/include/python3.7m -c -c /home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.cpp -o /home/host/mounted2/lsy/DINO/models/dino/ops/build/temp.linux-x86_64-cpython-37/home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.cpp:11:0: /home/host/mounted2/lsy/DINO/models/dino/ops/src/ms_deform_attn.h: In function ‘at::Tensor ms_deform_attn_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’: /home/host/mounted2/lsy/DINO/models/dino/ops/src/ms_deform_attn.h:29:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] if (value.type().is_cuda()) ^ In file included from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/ATen/core/Tensor.h:3:0, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/ATen/DeviceGuard.h:4, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/ATen/ATen.h:11, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /home/host/mounted2/lsy/DINO/models/dino/ops/src/cpu/ms_deform_attn_cpu.h:12, from /home/host/mounted2/lsy/DINO/models/dino/ops/src/ms_deform_attn.h:13, from /home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.cpp:11: /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:213:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ In file included from /home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.cpp:11:0: /home/host/mounted2/lsy/DINO/models/dino/ops/src/ms_deform_attn.h: In function ‘std::vector ms_deform_attn_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’: /home/host/mounted2/lsy/DINO/models/dino/ops/src/ms_deform_attn.h:51:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] if (value.type().is_cuda()) ^ In file included from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/ATen/core/Tensor.h:3:0, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/ATen/DeviceGuard.h:4, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/ATen/ATen.h:11, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /home/host/mounted2/lsy/DINO/models/dino/ops/src/cpu/ms_deform_attn_cpu.h:12, from /home/host/mounted2/lsy/DINO/models/dino/ops/src/ms_deform_attn.h:13, from /home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.cpp:11: /home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:213:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ /home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.cpp: At global scope: /home/host/mounted2/lsy/DINO/models/dino/ops/src/vision.cpp:16:1: fatal error: error writing to /tmp/ccF7RCsJ.s: No space left on device } ^ compilation terminated. ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1814, in _run_ninja_build env=env) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/subprocess.py", line 487, in run output=stdout, stderr=stderr) 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 72, in cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension}, File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/init.py", line 87, in setup return distutils.core.setup(**attrs) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 973, in run_commands self.run_command(cmd) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command super().run_command(command) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 992, in run_command cmd_obj.run() File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/command/build.py", line 24, in run super().run() File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/_distutils/command/build.py", line 132, in run self.run_command(cmd_name) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command self.distribution.run_command(command) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/dist.py", line 1217, in run_command super().run_command(command) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 992, in run_command cmd_obj.run() File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/home/host/.local/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run self.build_extensions() File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 765, in build_extensions build_ext.build_extensions(self) File "/home/host/.local/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions self._build_extensions_serial() File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial self.build_extension(ext) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 202, in build_extension _build_ext.build_extension(self, ext) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 554, in build_extension depends=ext.depends, File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 595, in unix_wrap_ninja_compile with_cuda=with_cuda) File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1492, in _write_ninja_file_and_compile_objects error_prefix='Error compiling objects for extension') File "/home/host/mounted2/anaconda3/envs/DINO/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1824, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension