Closed Shank2358 closed 3 years ago
also CUDA11.1, pytorch1.7, RTX3090, except no conda, just python3.6.9: same error to me, waiting for the solution...
also CUDA11.1, pytorch1.7, RTX3090, except no conda, just python3.6.9: same error to me, waiting for the solution...
I found that the signatures are changed in https://github.com/pytorch/pytorch/blob/master/aten/src/THC/THCBlas.h when using the latest pytorch. The THCudaBlas_Sgemv and THCudaBlas_Sgemm ares not there. May be we should use THCudaBlas_SgemmBatched?
same error, waiting...
Downgrading pytorch to 1.0 worked for me.
but rtx3090 can only run work on pytorch1.7
---Original--- From: "Sina Radmard"<notifications@github.com> Date: Wed, Nov 11, 2020 07:43 AM To: "CharlesShang/DCNv2"<DCNv2@noreply.github.com>; Cc: "Comment"<comment@noreply.github.com>;"cctge123"<66011@qq.com>; Subject: Re: [CharlesShang/DCNv2] Error compiling objects for extension in CUDA11.1, pytorch1.7, RTX3090 (#90)
Downgrading pytorch to 1.0 worked for me.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Sorry, I have rtx2070.
same error, waiting...
I don't know if it works to compile pytorch1.6 on RTX3090/CUDA11.1
also CUDA11.1, pytorch1.7, RTX3090, except no conda, just python3.6.9: same error to me, waiting for the solution...
I found that the signatures are changed in https://github.com/pytorch/pytorch/blob/master/aten/src/THC/THCBlas.h when using the latest pytorch. The THCudaBlas_Sgemv and THCudaBlas_Sgemm ares not there. May be we should use THCudaBlas_SgemmBatched?
I have no idea, that is a little hard for me, beyond my current ability.
same error, waiting...
I don't know if it works to compile pytorch1.6 on RTX3090/CUDA11.1
I also tried pytorch 1.6 and used the code from this repository. https://github.com/jinfagang/DCNv2_latest/ It can be compiled successfully, but it cannot work normally on the 30 series GPU. By the way, I hate the leather swordsmen who play monkeys!
also CUDA11.1, pytorch1.7, RTX3090, except no conda, just python3.6.9: same error to me, waiting for the solution...
I found that the signatures are changed in https://github.com/pytorch/pytorch/blob/master/aten/src/THC/THCBlas.h when using the latest pytorch. The THCudaBlas_Sgemv and THCudaBlas_Sgemm ares not there. May be we should use THCudaBlas_SgemmBatched?
I have no idea, that is a little hard for me, beyond my current ability.
I am learning and trying to modify, it seems a bit difficult。
THCudaBlas_Sgemv, THCudaBlas_Sgemm, these errors is solved. https://github.com/CharlesShang/DCNv2/pull/71
ubuntu20.04, RTX3090, CUDA11.1, Pytorch1.8
May be you are right. I have tried #71 in torch1.8 but failed, the same error.
This issue is solved by MatthewHowe #92 I compiled it successfully in pytorch1.7 cuda11.1 RTX3090.
print(torch.version) shows pytorch1.7+cuda110. My cuda is 11.0, RTX3060. I have checked the possible solutions above but still have Error compiling objects for extension. Please help.
running build running build_ext building 'ext' extension creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6 creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2 creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu creating /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda Emitting ninja build file /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/7] /usr/local/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/peng/anaconda3/envs/CenterNet/include/python3.6m -c -c /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_cuda.cu -o /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_cuda.o -DCUDA_NO_HALFOPERATORS -DCUDA_NO_HALF_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 -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -ccbin g++ -std=c++14 FAILED: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_cuda.o /usr/local/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/peng/anaconda3/envs/CenterNet/include/python3.6m -c -c /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_cuda.cu -o /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_cuda.o -DCUDA_NO_HALFOPERATORS -DCUDA_NO_HALF_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 -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -ccbin g++ -std=c++14 nvcc fatal : Unsupported gpu architecture 'compute_86' [2/7] /usr/local/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/peng/anaconda3/envs/CenterNet/include/python3.6m -c -c /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_psroi_pooling_cuda.cu -o /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_psroi_pooling_cuda.o -DCUDA_NO_HALFOPERATORS -DCUDA_NO_HALF_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 -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -ccbin g++ -std=c++14 FAILED: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_psroi_pooling_cuda.o /usr/local/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/peng/anaconda3/envs/CenterNet/include/python3.6m -c -c /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_psroi_pooling_cuda.cu -o /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_psroi_pooling_cuda.o -DCUDA_NO_HALFOPERATORS -DCUDA_NO_HALF_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 -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -ccbin g++ -std=c++14 nvcc fatal : Unsupported gpu architecture 'compute_86' [3/7] /usr/local/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/peng/anaconda3/envs/CenterNet/include/python3.6m -c -c /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_im2col_cuda.cu -o /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_im2col_cuda.o -DCUDA_NO_HALFOPERATORS -DCUDA_NO_HALF_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 -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -ccbin g++ -std=c++14 FAILED: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_im2col_cuda.o /usr/local/cuda-11.0/bin/nvcc -DWITH_CUDA -I/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/peng/anaconda3/envs/CenterNet/include/python3.6m -c -c /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_im2col_cuda.cu -o /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cuda/dcn_v2_im2col_cuda.o -DCUDA_NO_HALFOPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=sm_86 -ccbin g++ -std=c++14 nvcc fatal : Unsupported gpu architecture 'compute_86' [4/7] c++ -MMD -MF /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_im2col_cpu.o.d -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/peng/anaconda3/envs/CenterNet/include/python3.6m -c -c /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_im2col_cpu.cpp -o /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_im2col_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -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/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH/THTensorApply.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH/THTensor.h:5, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH/TH.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_im2col_cpu.cpp:9: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/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) |
---|
[5/7] c++ -MMD -MF /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.o.d -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/peng/anaconda3/envs/CenterNet/include/python3.6m -c -c /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp -o /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -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/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH/THTensorApply.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH/THTensor.h:5, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH/TH.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:7: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/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) |
---|
/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp: In function ‘std::vectorat::Tensor dcn_v2_cpu_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int, int, int, int, int, int, int, int)’: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:211:70: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 211 | modulated_deformable_col2im_coord_cpu(columns.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:212:71: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 212 | input_n.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:213:72: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 213 | offset_n.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:214:70: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 214 | mask_n.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:219:77: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 219 | grad_offset_n.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:220:75: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 220 | grad_mask_n.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:222:64: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 222 | modulated_deformable_col2im_cpu(columns.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:223:66: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 223 | offset_n.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:224:64: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 224 | mask_n.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:229:70: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 229 | grad_input_n.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:232:64: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 232 | modulated_deformable_im2col_cpu(input_n.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:233:66: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 233 | offset_n.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:234:64: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 234 | mask_n.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:239:65: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 239 | columns.data |
^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here 363 | T * data() const { | ^~~~ [6/7] c++ -MMD -MF /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.o.d -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/peng/anaconda3/envs/CenterNet/include/python3.6m -c -c /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp -o /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -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/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH/THTensorApply.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH/THTensor.h:5, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH/TH.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:18: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/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 /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:41: 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] 324 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:137:28: note: in definition of macro ‘AT_DISPATCH_FLOATING_TYPES’ 137 | const auto& the_type = TYPE; | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here 277 | DeprecatedTypeProperties & type() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:139: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] 139 | at::ScalarType _st = ::detail::scalar_type(the_type); | ^ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ 324 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { | ^ |
at::ScalarType _st = ::detail::scalar_type(the_type); | ^ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ 324 | AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { | ^ |
input.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:333:42: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 333 | bbox.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:334:43: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 334 | trans.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:343:28: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 343 | out.data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:344:34: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 344 | top_count.data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:327:43: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 327 | input.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:333:42: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 333 | bbox.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:334:43: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 334 | trans.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:343:28: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 343 | out.data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:344:34: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 344 | top_count.data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { | ^ |
T * data() const { | ^~~~ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In function ‘std::tuple<at::Tensor, at::Tensor> dcn_v2_psroi_pooling_cpu_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, int, int, int, int, int, float)’: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:295:13: warning: unused variable ‘batch’ [-Wunused-variable] 295 | const int batch = input.size(0); | ^~~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:44: 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] 398 | AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:137:28: note: in definition of macro ‘AT_DISPATCH_FLOATING_TYPES’ 137 | const auto& the_type = TYPE; | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here 277 | DeprecatedTypeProperties & type() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:139: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] 139 | at::ScalarType _st = ::detail::scalar_type(the_type); | ^ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ 398 | AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { | ^ |
at::ScalarType _st = ::detail::scalar_type(the_type); | ^ /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ 398 | AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { | ^ |
out_grad.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:402:47: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 402 | top_count.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:411:48: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 411 | input_grad.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:412:48: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 412 | trans_grad.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:413:43: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 413 | input.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:414:42: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 414 | bbox.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:415:43: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 415 | trans.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:401:46: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 401 | out_grad.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:402:47: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 402 | top_count.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:411:48: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 411 | input_grad.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:412:48: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 412 | trans_grad.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:413:43: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 413 | input.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:414:42: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 414 | bbox.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:415:43: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] 415 | trans.contiguous().data |
^ /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’ 13 | return VA_ARGS(); | ^ |
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { | ^ |
T * data() const { | ^~~~ [7/7] c++ -MMD -MF /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.o.d -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/TH -I/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/peng/anaconda3/envs/CenterNet/include/python3.6m -c -c /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp -o /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/build/temp.linux-x86_64-3.6/home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -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/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/vision.h:2, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h:3, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp:2: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/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 /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp:2: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h: In function ‘at::Tensor dcn_v2_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int, int, int, int, int, int, int, int)’: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h:25: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] 25 | if (input.type().is_cuda()) | ^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/vision.h:2, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h:3, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp:2: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here 277 | DeprecatedTypeProperties & type() const { | ^~~~ In file included from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp:2: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h: In function ‘std::vectorat::Tensor dcn_v2_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int, int, int, int, int, int, int, int)’: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h:61: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] 61 | if (input.type().is_cuda()) | ^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/vision.h:2, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h:3, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp:2: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here 277 | DeprecatedTypeProperties & type() const { | ^~~~ In file included from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp:2: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h: In function ‘std::tuple<at::Tensor, at::Tensor> dcn_v2_psroi_pooling_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, int, int, int, int, int, float)’: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h:107: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] 107 | if (input.type().is_cuda()) | ^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/vision.h:2, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h:3, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp:2: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here 277 | DeprecatedTypeProperties & type() const { | ^~~~ In file included from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp:2: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h: In function ‘std::tuple<at::Tensor, at::Tensor> dcn_v2_psroi_pooling_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, int, int, int, int, int, float)’: /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h:155: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] 155 | if (input.type().is_cuda()) | ^ In file included from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/cpu/vision.h:2, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h:3, from /home/peng/Documents/open_sources/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp:2: /home/peng/anaconda3/envs/CenterNet/lib/python3.6/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 "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1522, in _run_ninja_build env=env) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/subprocess.py", line 438, 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 64, in cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension}, File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(**attrs) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 653, in build_extensions build_ext.build_extensions(self) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 202, in build_extension _build_ext.build_extension(self, ext) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 482, in unix_wrap_ninja_compile with_cuda=with_cuda) File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1238, in _write_ninja_file_and_compile_objects error_prefix='Error compiling objects for extension') File "/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1538, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension
这个问题由MatthewHowe解决#92 我在pytorch1.7 cuda11.1 RTX3090编译成功。
My envorment is the same as yours,but i got:g++: error: /home/lq/code/TREG/TREG/ltr/external/DCNv2_latest-master/build/temp.linux-x86_64-3.7/home/lq/code/TREG/TREG/ltr/external/DCNv2_latest-master/src/cuda/dcn_v2_psroi_pooling_cuda.o: 没有那个文件或目录 g++: error: /home/lq/code/TREG/TREG/ltr/external/DCNv2_latest-master/build/temp.linux-x86_64-3.7/home/lq/code/TREG/TREG/ltr/external/DCNv2_latest-master/src/cuda/dcn_v2_cuda.o: 没有那个文件或目录 error: command 'g++' failed with exit status 1 Can you help me?
print(torch.version) shows pytorch1.8.0+cuda11.1. My cuda is 11.1, RTX3080ti. I have checked the possible solutions above but still have Error compiling objects for extension. Please help. Thanks in advance! torch.version = 1.8.0
Compiling cuda extensions with nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2020 NVIDIA Corporation Built on Tue_Sep_15_19:10:02_PDT_2020 Cuda compilation tools, release 11.1, V11.1.74 Build cuda_11.1.TC455_06.29069683_0 from /usr/local/cuda/bin
running install
running bdist_egg
running egg_info
writing apex.egg-info/PKG-INFO
writing dependency_links to apex.egg-info/dependency_links.txt
writing top-level names to apex.egg-info/top_level.txt
reading manifest file 'apex.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'apex.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'apex_C' extension
Emitting ninja build file /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
setup.py:46: UserWarning: Option --pyprof not specified. Not installing PyProf dependencies!
warnings.warn("Option --pyprof not specified. Not installing PyProf dependencies!")
ninja: no work to do.
g++ -pthread -shared -B /home/jjh/anaconda3/envs/sgb/compiler_compat -L/home/jjh/anaconda3/envs/sgb/lib -Wl,-rpath=/home/jjh/anaconda3/envs/sgb/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/flatten_unflatten.o -L/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-3.7/apex_C.cpython-37m-x86_64-linux-gnu.so
building 'amp_C' extension
Emitting ninja build file /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/10] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_adam.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -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/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o
/usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o.d -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/TH -I/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jjh/anaconda3/envs/sgb/include/python3.7m -c -c /home/jjh/projects/SGB/apex/csrc/multi_tensor_adam.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/usr/include/c++/10/chrono: In substitution of ‘template<class _Rep, class _Period> template |
_S_gcd(intmax_t __m, intmax_t __n) noexcept | ^ |
_S_gcd(intmax_t __m, intmax_t __n) noexcept | ^ |
_S_gcd(intmax_t __m, intmax_t __n) noexcept | ^ |
_S_gcd(intmax_t __m, intmax_t __n) noexcept | ^ |
_S_gcd(intmax_t __m, intmax_t __n) noexcept | ^ |
_S_gcd(intmax_t __m, intmax_t __n) noexcept | ^ |
_S_gcd(intmax_t __m, intmax_t __n) noexcept | ^ |
_S_gcd(intmax_t __m, intmax_t __n) noexcept | ^ |
_S_gcd(intmax_t __m, intmax_t __n) noexcept | ^ |
#pragma omp parallel for if ((end - begin) >= grain_size) |
---|
ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1673, in _run_ninja_build env=env) File "/home/jjh/anaconda3/envs/sgb/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 "setup.py", line 300, in
Maybe u can try this : https://github.com/lbin/DCNv2. It's work for me.
Thanks. I am really appreciate.
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年3月23日(星期三) 下午5:21 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [CharlesShang/DCNv2] Error compiling objects for extension in CUDA11.1, pytorch1.7 or pytorch-nightly(1.8), RTX3090 (#90)
Maybe u can try this : https://github.com/lbin/DCNv2. It's work for me.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Downgrading pytorch to 1.0 worked for me.
Thanks,it works for me too.
Error compiling objects for extension in CUDA11.1, pytorch1.7, RTX3090
ninja: build stopped: subcommand failed. Traceback (most recent call last): File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1539, in _run_ninja_build env=env) File "D:\anaconda3\envs\pytorch\lib\subprocess.py", line 438, 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 70, in
cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension},
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "D:\anaconda3\envs\pytorch\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\anaconda3\envs\pytorch\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "D:\anaconda3\envs\pytorch\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\install.py", line 67, in run
self.do_egg_install()
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "D:\anaconda3\envs\pytorch\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda3\envs\pytorch\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "D:\anaconda3\envs\pytorch\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda3\envs\pytorch\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "D:\anaconda3\envs\pytorch\lib\distutils\command\install_lib.py", line 107, in build
self.run_command('build_ext')
File "D:\anaconda3\envs\pytorch\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda3\envs\pytorch\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "D:\anaconda3\envs\pytorch\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "D:\anaconda3\envs\pytorch\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 674, in build_extensions
build_ext.build_extensions(self)
File "D:\anaconda3\envs\pytorch\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "D:\anaconda3\envs\pytorch\lib\distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "D:\anaconda3\envs\pytorch\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "D:\anaconda3\envs\pytorch\lib\site-packages\setuptools\command\build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "D:\anaconda3\envs\pytorch\lib\distutils\command\build_ext.py", line 533, in build_extension
depends=ext.depends)
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 656, in win_wrap_ninja_compile
with_cuda=with_cuda)
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1257, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\cpp_extension.py", line 1555, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension