Some error with install MultiScaleDeformableAttention package
when i run"python src/trackformer/models/ops/setup.py build --build-base=src/trackformer/models/ops/ install " to install MultiScaleDeformableAttention package,I get" running build running build_ext building 'MultiScaleDeformableAttention' extension creating /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37 creating /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root creating /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer creating /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src creating /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer creating /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models creating /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models/ops creating /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models/ops/src creating /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models/ops/src/cpu creating /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models/ops/src/cuda /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/cuda/init.py:104: UserWarning: B1.gpu.small with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70 sm_75. If you want to use the B1.gpu.small GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/
warnings.warn(incompatible_device_warn.format(device_name, capability, " ".join(arch_list), device_name)) Emitting ninja build file /root/trackformer/src/trackformer/models/ops/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/root/trackformer/src/trackformer/models/ops/src -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/TH -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/root/anaconda3/envs/bishe37/include/python3.7m -c -c /root/trackformer/src/trackformer/models/ops/src/cuda/ms_deform_attn_cuda.cu -o /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models/ops/src/cuda/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_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 -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models/ops/src/cuda/ms_deform_attn_cuda.o /usr/local/cuda/bin/nvcc -DWITH_CUDA -I/root/trackformer/src/trackformer/models/ops/src -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/TH -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/root/anaconda3/envs/bishe37/include/python3.7m -c -c /root/trackformer/src/trackformer/models/ops/src/cuda/ms_deform_attn_cuda.cu -o /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models/ops/src/cuda/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_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 -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -std=c++14 nvcc fatal : Unsupported gpu architecture 'compute_86' [2/3] c++ -MMD -MF /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models/ops/src/cpu/ms_deform_attn_cpu.o.d -pthread -B /root/anaconda3/envs/bishe37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/root/trackformer/src/trackformer/models/ops/src -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/TH -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/root/anaconda3/envs/bishe37/include/python3.7m -c -c /root/trackformer/src/trackformer/models/ops/src/cpu/ms_deform_attn_cpu.cpp -o /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models/ops/src/cpu/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -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++ [3/3] c++ -MMD -MF /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models/ops/src/vision.o.d -pthread -B /root/anaconda3/envs/bishe37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/root/trackformer/src/trackformer/models/ops/src -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/TH -I/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/root/anaconda3/envs/bishe37/include/python3.7m -c -c /root/trackformer/src/trackformer/models/ops/src/vision.cpp -o /root/trackformer/src/trackformer/models/ops/temp.linux-x86_64-cpython-37/root/trackformer/src/trackformer/models/ops/src/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -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 /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:149, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /root/trackformer/src/trackformer/models/ops/src/cpu/ms_deform_attn_cpu.h:2, from /root/trackformer/src/trackformer/models/ops/src/ms_deform_attn.h:3, from /root/trackformer/src/trackformer/models/ops/src/vision.cpp:2: /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84 | #pragma omp parallel for if ((end - begin) >= grain_size) | In file included from /root/trackformer/src/trackformer/models/ops/src/vision.cpp:2: /root/trackformer/src/trackformer/models/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&, int)’: /root/trackformer/src/trackformer/models/ops/src/ms_deform_attn.h:18: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] 18 | if (value.type().is_cuda()) | ^ In file included from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/ATen/Context.h:4, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /root/trackformer/src/trackformer/models/ops/src/cpu/ms_deform_attn_cpu.h:2, from /root/trackformer/src/trackformer/models/ops/src/ms_deform_attn.h:3, from /root/trackformer/src/trackformer/models/ops/src/vision.cpp:2: /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here 277 | DeprecatedTypeProperties & type() const { | ^~~~ In file included from /root/trackformer/src/trackformer/models/ops/src/vision.cpp:2: /root/trackformer/src/trackformer/models/ops/src/ms_deform_attn.h: In function ‘std::vectorat::Tensor ms_deform_attn_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’: /root/trackformer/src/trackformer/models/ops/src/ms_deform_attn.h:39: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] 39 | if (value.type().is_cuda()) | ^ In file included from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/ATen/Context.h:4, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /root/trackformer/src/trackformer/models/ops/src/cpu/ms_deform_attn_cpu.h:2, from /root/trackformer/src/trackformer/models/ops/src/ms_deform_attn.h:3, from /root/trackformer/src/trackformer/models/ops/src/vision.cpp:2: /root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here 277 | DeprecatedTypeProperties & type() const { | ^~~~ ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/root/anaconda3/envs/bishe37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1522, in _run_ninja_build env=env) File "/root/anaconda3/envs/bishe37/lib/python3.7/subprocess.py", line 512, 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 "src/trackformer/models/ops/setup.py", line 65, in
Environment:
Provide your environment information using the following command:
PyTorch version: 1.7.1
Is debug build: False
CUDA used to build PyTorch: 11.0
ROCM used to build PyTorch: N/A
OS: Ubuntu 20.04.3 LTS (x86_64)
GCC version: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Clang version: Could not collect
CMake version: version 3.26.3
Python version: 3.7 (64-bit runtime)
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration:
Nvidia driver version: Could not collect
cuDNN version: Probably one of the following:
/opt/orion/lib/orion-cuda-11.0/libcudnn_orion.so.11.0.8
/usr/lib/x86_64-linux-gnu/libcudnn_adv_infer.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_adv_train.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_infer.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_cnn_train.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_ops_infer.so.8.0.5
/usr/lib/x86_64-linux-gnu/libcudnn_ops_train.so.8.0.5
HIP runtime version: N/A
MIOpen runtime version: N/A
Versions of relevant libraries:
[pip3] numpy==1.21.5
[pip3] torch==1.7.1
[pip3] torchaudio==0.7.0a0+a853dff
[pip3] torchfile==0.1.0
[pip3] torchvision==0.8.2
[conda] blas 1.0 mkl
[conda] cudatoolkit 11.0.221 h6bb024c_0
[conda] mkl 2021.4.0 h06a4308_640
[conda] mkl-service 2.4.0 py37h7f8727e_0
[conda] mkl_fft 1.3.1 py37hd3c417c_0
[conda] mkl_random 1.2.2 py37h51133e4_0
[conda] numpy 1.18.5 pypi_0 pypi
[conda] numpy-base 1.21.5 py37ha15fc14_3
[conda] pytorch 1.7.1 py3.7_cuda11.0.221_cudnn8.0.5_0 pytorch
[conda] torchaudio 0.7.2 py37 pytorch
[conda] torchfile 0.1.0 pypi_0 pypi
[conda] torchvision 0.8.2 py37_cu110 pytorch