aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.37k stars 646 forks source link

THC/THCDeviceUtils.cuh: No such file or directory #516

Closed an99990 closed 2 years ago

an99990 commented 2 years ago

Hi, So I am using nvidia-container to build your repo and Iget the following error log

running build
running build_py
running build_ext
building 'adet._C' extension
creating /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces
creating /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation
creating /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation
creating /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models
creating /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet
creating /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet
creating /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers
creating /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc
creating /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign
creating /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/DefROIAlign
creating /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms
Emitting ninja build file /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/6] /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc -I/opt/conda/lib/python3.8/site-packages/torch/include -I/opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.8/site-packages/torch/include/TH -I/opt/conda/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/opt/conda/include/python3.8 -c -c /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.cu -o /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.o 
/usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc -I/opt/conda/lib/python3.8/site-packages/torch/include -I/opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.8/site-packages/torch/include/TH -I/opt/conda/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/opt/conda/include/python3.8 -c -c /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.cu -o /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.cu:5:10: fatal error: THC/THCDeviceUtils.cuh: No such file or directory
    5 | #include <THC/THCDeviceUtils.cuh>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[2/6] /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc -I/opt/conda/lib/python3.8/site-packages/torch/include -I/opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.8/site-packages/torch/include/TH -I/opt/conda/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/opt/conda/include/python3.8 -c -c /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/cuda_version.cu -o /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/cuda_version.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
[3/6] c++ -MMD -MF /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.o.d -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc -I/opt/conda/lib/python3.8/site-packages/torch/include -I/opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.8/site-packages/torch/include/TH -I/opt/conda/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/opt/conda/include/python3.8 -c -c /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp -o /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:3:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h: In function ‘at::Tensor adet::BezierAlign_forward(const at::Tensor&, const at::Tensor&, float, int, int, int, bool)’:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h:62:18: 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]
   62 |   if (input.type().is_cuda()) {
      |                  ^
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/TensorUtils.h:4,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:2:
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here
  194 |   DeprecatedTypeProperties & type() const {
      |                              ^~~~
In file included from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:3:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h: In function ‘at::Tensor adet::BezierAlign_backward(const at::Tensor&, const at::Tensor&, float, int, int, int, int, int, int, int, bool)’:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h:98:17: 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]
   98 |   if (grad.type().is_cuda()) {
      |                 ^
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/TensorUtils.h:4,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:2:
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here
  194 |   DeprecatedTypeProperties & type() const {
      |                              ^~~~
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/ATen.h:13,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h:3,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:3:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp: In lambda function:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:493:50: 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]
  493 |   AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "BezierAlign_forward", [&] {
      |                                                  ^
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:278:28: note: in definition of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
  278 |     const auto& the_type = TYPE;                                               \
      |                            ^~~~
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/TensorUtils.h:4,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:2:
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here
  194 |   DeprecatedTypeProperties & type() const {
      |                              ^~~~
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/ATen.h:13,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h:3,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:3:
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:280:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations]
  280 |     at::ScalarType _st = ::detail::scalar_type(the_type);                      \
      |                                                        ^
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:493:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
  493 |   AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "BezierAlign_forward", [&] {
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:178:23: note: declared here
  178 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
      |                       ^~~~~~~~~~~
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:280:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations]
  280 |     at::ScalarType _st = ::detail::scalar_type(the_type);                      \
      |                                                        ^
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:493:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
  493 |   AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "BezierAlign_forward", [&] {
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:178:23: note: declared here
  178 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
      |                       ^~~~~~~~~~~
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp: In lambda function:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:545:49: 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]
  545 |   AT_DISPATCH_FLOATING_TYPES_AND_HALF(grad.type(), "BezierAlign_forward", [&] {
      |                                                 ^
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:278:28: note: in definition of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
  278 |     const auto& the_type = TYPE;                                               \
      |                            ^~~~
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/TensorUtils.h:4,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:2:
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here
  194 |   DeprecatedTypeProperties & type() const {
      |                              ^~~~
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/ATen.h:13,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h:3,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:3:
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:280:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations]
  280 |     at::ScalarType _st = ::detail::scalar_type(the_type);                      \
      |                                                        ^
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:545:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
  545 |   AT_DISPATCH_FLOATING_TYPES_AND_HALF(grad.type(), "BezierAlign_forward", [&] {
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:178:23: note: declared here
  178 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
      |                       ^~~~~~~~~~~
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:280:56: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations]
  280 |     at::ScalarType _st = ::detail::scalar_type(the_type);                      \
      |                                                        ^
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:545:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
  545 |   AT_DISPATCH_FLOATING_TYPES_AND_HALF(grad.type(), "BezierAlign_forward", [&] {
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:178:23: note: declared here
  178 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
      |                       ^~~~~~~~~~~
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp: In instantiation of ‘void {anonymous}::BezierAlignForward(int, const T*, const T&, int, int, int, int, int, int, const T*, T*, bool) [with T = double]’:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:493:3:   required from here
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:168:7: warning: unused variable ‘offset’ [-Wunused-variable]
  168 |     T offset = aligned ? (T)0.5 : (T)0.0;
      |       ^~~~~~
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp: In instantiation of ‘void {anonymous}::BezierAlignForward(int, const T*, const T&, int, int, int, int, int, int, const T*, T*, bool) [with T = float]’:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:493:3:   required from here
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:168:7: warning: unused variable ‘offset’ [-Wunused-variable]
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp: In instantiation of ‘void {anonymous}::BezierAlignForward(int, const T*, const T&, int, int, int, int, int, int, const T*, T*, bool) [with T = c10::Half]’:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:493:3:   required from here
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp:168:7: warning: variable ‘offset’ set but not used [-Wunused-but-set-variable]
[4/6] c++ -MMD -MF /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.o.d -pthread -B /opt/conda/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc -I/opt/conda/lib/python3.8/site-packages/torch/include -I/opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.8/site-packages/torch/include/TH -I/opt/conda/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/opt/conda/include/python3.8 -c -c /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.cpp -o /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.cpp:3:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.h: In function ‘at::Tensor adet::ml_nms(const at::Tensor&, const at::Tensor&, const at::Tensor&, float)’:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.h:18:17: 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]
   18 |   if (dets.type().is_cuda()) {
      |                 ^
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/DeviceGuard.h:4,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/ATen.h:11,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.h:2,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.cpp:3:
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here
  194 |   DeprecatedTypeProperties & type() const {
      |                              ^~~~
In file included from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.cpp:4:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign.h: In function ‘at::Tensor adet::DefROIAlign_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, float, int, int, int, float, bool)’:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign.h:47:18: 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]
   47 |   if (input.type().is_cuda()) {
      |                  ^
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/DeviceGuard.h:4,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/ATen.h:11,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.h:2,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.cpp:3:
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here
  194 |   DeprecatedTypeProperties & type() const {
      |                              ^~~~
In file included from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.cpp:4:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign.h: In function ‘at::Tensor adet::DefROIAlign_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, float, int, int, int, int, int, int, int, float, bool)’:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign.h:82:17: 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]
   82 |   if (grad.type().is_cuda()) {
      |                 ^
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/DeviceGuard.h:4,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/ATen.h:11,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.h:2,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.cpp:3:
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here
  194 |   DeprecatedTypeProperties & type() const {
      |                              ^~~~
In file included from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.cpp:5:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h: In function ‘at::Tensor adet::BezierAlign_forward(const at::Tensor&, const at::Tensor&, float, int, int, int, bool)’:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h:62:18: 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]
   62 |   if (input.type().is_cuda()) {
      |                  ^
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/DeviceGuard.h:4,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/ATen.h:11,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.h:2,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.cpp:3:
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here
  194 |   DeprecatedTypeProperties & type() const {
      |                              ^~~~
In file included from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.cpp:5:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h: In function ‘at::Tensor adet::BezierAlign_backward(const at::Tensor&, const at::Tensor&, float, int, int, int, int, int, int, int, bool)’:
/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h:98:17: 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]
   98 |   if (grad.type().is_cuda()) {
      |                 ^
In file included from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/DeviceGuard.h:4,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/ATen/ATen.h:11,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /opt/conda/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.h:2,
                 from /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/vision.cpp:3:
/opt/conda/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:194:30: note: declared here
  194 |   DeprecatedTypeProperties & type() const {
      |                              ^~~~
[5/6] /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc -I/opt/conda/lib/python3.8/site-packages/torch/include -I/opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.8/site-packages/torch/include/TH -I/opt/conda/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/opt/conda/include/python3.8 -c -c /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign_cuda.cu -o /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
[6/6] /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc -I/opt/conda/lib/python3.8/site-packages/torch/include -I/opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.8/site-packages/torch/include/TH -I/opt/conda/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/opt/conda/include/python3.8 -c -c /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cuda.cu -o /workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/build/temp.linux-x86_64-3.8/workspaces/halodi-segmentation/halodi_segmentation/models/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1723, in _run_ninja_build
    subprocess.run(
  File "/opt/conda/lib/python3.8/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 65, in <module>
    setup(
  File "/opt/conda/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/opt/conda/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/opt/conda/lib/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/opt/conda/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/opt/conda/lib/python3.8/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/opt/conda/lib/python3.8/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/opt/conda/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/opt/conda/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/opt/conda/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/opt/conda/lib/python3.8/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 741, in build_extensions
    build_ext.build_extensions(self)
  File "/opt/conda/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "/opt/conda/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/opt/conda/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "/opt/conda/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
    _build_ext.build_extension(self, ext)
  File "/opt/conda/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
    objects = self.compiler.compile(sources,
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 562, in unix_wrap_ninja_compile
    _write_ninja_file_and_compile_objects(
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1405, in _write_ninja_file_and_compile_objects
    _run_ninja_build(
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1739, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

pip list results :

absl-py                       1.0.0
alabaster                     0.7.12
antlr4-python3-runtime        4.8
apex                          0.1
appdirs                       1.4.4
argon2-cffi                   21.3.0
argon2-cffi-bindings          21.2.0
attrs                         21.4.0
audioread                     2.1.9
Babel                         2.9.1
backcall                      0.2.0
backports.functools-lru-cache 1.6.4
beautifulsoup4                4.10.0
black                         21.4b2
bleach                        4.1.0
blis                          0.7.5
brotlipy                      0.7.0
cachetools                    5.0.0
catalogue                     2.0.6
certifi                       2021.10.8
cffi                          1.15.0
chardet                       4.0.0
charset-normalizer            2.0.9
click                         8.0.3
cloudpickle                   2.0.0
codecov                       2.1.12
colorama                      0.4.4
conda                         4.11.0
conda-build                   3.21.7
conda-package-handling        1.7.3
coverage                      6.3
cryptography                  36.0.1
cudf                          21.12.0a0+293.g0930f712e6
cugraph                       21.12.0a0+95.g4b8c1330
cuml                          21.12.0a0+116.g4ce5bd609
cupy-cuda115                  9.6.0
cycler                        0.11.0
cymem                         2.0.6
Cython                        0.29.26
dask                          2021.11.2
dask-cuda                     21.12.0
dask-cudf                     21.12.0a0+293.g0930f712e6
dataclasses                   0.8
debugpy                       1.5.1
decorator                     5.1.0
defusedxml                    0.7.1
detectron2                    0.6                       /workspaces/halodi-segmentation/halodi_segmentation/models/detectron2
distributed                   2021.11.2
docutils                      0.17.1
entrypoints                   0.3
expecttest                    0.1.3
fastrlock                     0.8
filelock                      3.4.2
flake8                        3.7.9
Flask                         2.0.2
fonttools                     4.29.0
fsspec                        2022.1.0
future                        0.18.2
fvcore                        0.1.5.post20220119
glob2                         0.7
google-auth                   2.4.1
google-auth-oauthlib          0.4.6
graphsurgeon                  0.4.5
grpcio                        1.43.0
HeapDict                      1.0.1
hydra-core                    1.1.1
hypothesis                    4.50.8
idna                          3.1
imagesize                     1.3.0
importlib-metadata            4.10.1
importlib-resources           5.4.0
iniconfig                     1.1.1
iopath                        0.1.9
ipykernel                     6.7.0
ipython                       7.31.0
ipython-genutils              0.2.0
itsdangerous                  2.0.1
jedi                          0.18.1
Jinja2                        3.0.3
joblib                        1.1.0
json5                         0.9.6
jsonschema                    4.4.0
jupyter-client                7.1.2
jupyter-core                  4.9.1
jupyter-tensorboard           0.2.0
jupyterlab                    2.3.2
jupyterlab-pygments           0.1.2
jupyterlab-server             1.2.0
jupytext                      1.13.6
kiwisolver                    1.3.2
langcodes                     3.3.0
libarchive-c                  3.2
librosa                       0.8.1
llvmlite                      0.36.0
lmdb                          1.3.0
locket                        0.2.1
Markdown                      3.3.6
markdown-it-py                1.1.0
MarkupSafe                    2.0.1
matplotlib                    3.5.1
matplotlib-inline             0.1.3
mccabe                        0.6.1
mdit-py-plugins               0.3.0
mistune                       0.8.4
mock                          4.0.3
msgpack                       1.0.3
MultiScaleDeformableAttention 1.0
murmurhash                    1.0.6
mypy-extensions               0.4.3
nbclient                      0.5.10
nbconvert                     6.4.0
nbformat                      5.1.3
nest-asyncio                  1.5.4
networkx                      2.0
nltk                          3.6.7
notebook                      6.4.1
numba                         0.53.1
numpy                         1.22.0
nvidia-dali-cuda110           1.9.0
nvidia-pyindex                1.0.9
nvtx                          0.2.3
oauthlib                      3.1.1
omegaconf                     2.1.1
onnx                          1.10.1
packaging                     21.3
pandas                        1.3.5
pandocfilters                 1.5.0
parso                         0.8.3
partd                         1.2.0
pathspec                      0.9.0
pathy                         0.6.1
pexpect                       4.8.0
pickleshare                   0.7.5
Pillow                        8.2.0
pip                           21.2.4
pkginfo                       1.8.2
pluggy                        1.0.0
polygraphy                    0.33.0
pooch                         1.6.0
portalocker                   2.3.2
preshed                       3.0.6
prettytable                   3.0.0
prometheus-client             0.13.0
prompt-toolkit                3.0.24
protobuf                      3.19.3
psutil                        5.9.0
ptyprocess                    0.7.0
py                            1.11.0
pyarrow                       5.0.0
pyasn1                        0.4.8
pyasn1-modules                0.2.8
pybind11                      2.9.0
pycocotools                   2.0.4
pycodestyle                   2.5.0
pycosat                       0.6.3
pycparser                     2.21
pydantic                      1.8.2
pydot                         1.4.2
pyflakes                      2.1.1
Pygments                      2.11.1
pynvml                        11.4.1
pyOpenSSL                     21.0.0
pyparsing                     3.0.6
pyrsistent                    0.18.1
PySocks                       1.7.1
pytest                        6.2.5
pytest-cov                    3.0.0
pytest-pythonpath             0.7.3
python-dateutil               2.8.2
python-hostlist               1.21
python-nvd3                   0.15.0
python-slugify                5.0.2
pytorch-quantization          2.1.2
pytz                          2021.3
PyYAML                        6.0
pyzmq                         22.3.0
regex                         2022.1.18
requests                      2.26.0
requests-oauthlib             1.3.0
resampy                       0.2.2
revtok                        0.0.3
rmm                           21.12.0a0+31.g0acbd51
rsa                           4.8
ruamel-yaml-conda             0.15.80
sacremoses                    0.0.47
scikit-learn                  0.24.0
scipy                         1.6.3
Send2Trash                    1.8.0
setuptools                    59.5.0
shellingham                   1.4.0
six                           1.16.0
smart-open                    5.2.1
snowballstemmer               2.2.0
sortedcontainers              2.4.0
SoundFile                     0.10.3.post1
soupsieve                     2.3.1
spacy                         3.2.1
spacy-legacy                  3.0.8
spacy-loggers                 1.0.1
Sphinx                        4.4.0
sphinx-glpi-theme             0.3
sphinx-rtd-theme              1.0.0
sphinxcontrib-applehelp       1.0.2
sphinxcontrib-devhelp         1.0.2
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.3
sphinxcontrib-serializinghtml 1.1.5
srsly                         2.4.2
tabulate                      0.8.9
tblib                         1.7.0
tensorboard                   2.8.0
tensorboard-data-server       0.6.1
tensorboard-plugin-wit        1.8.1
tensorrt                      8.2.2.1
termcolor                     1.1.0
terminado                     0.12.1
testpath                      0.5.0
text-unidecode                1.3
thinc                         8.0.13
threadpoolctl                 3.0.0
toml                          0.10.2
tomli                         2.0.0
toolz                         0.11.2
torch                         1.11.0a0+bfe5ad2
torch-tensorrt                1.1.0a0
torchtext                     0.12.0a0
torchvision                   0.12.0a0
tornado                       6.1
tqdm                          4.62.3
traitlets                     5.1.1
treelite                      2.1.0
treelite-runtime              2.1.0
typer                         0.4.0
typing_extensions             4.0.1
ucx-py                        0.21.0a0+37.gbfa0450
uff                           0.6.9
urllib3                       1.26.7
wasabi                        0.9.0
wcwidth                       0.2.5
webencodings                  0.5.1
Werkzeug                      2.0.2
wget                          3.2
wheel                         0.37.0
xgboost                       1.5.0
yacs                          0.1.8
zict                          2.0.0
zipp                          3.7.0

step to reproduce

AdelaiDet/ python setup.py build develop

Please advise and let me know if you need more information

an99990 commented 2 years ago

for those using more recent versions of pytorch here if my fork with the solved issue https://github.com/an99990/AdelaiDet/tree/fix/pytorch_issue