Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling objects for extension in CUDA11.1, pytorch1.7 or pytorch-nightly(1.8), RTX3090 #90

Closed
Shank2358 opened this issue Nov 5, 2020 · 19 comments

Comments

@Shank2358
Copy link

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

@CosmosHua
Copy link

CosmosHua commented Nov 9, 2020

also CUDA11.1, pytorch1.7, RTX3090, except no conda, just python3.6.9:
same error to me, waiting for the solution...

@Shank2358
Copy link
Author

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?

@SEU-zhc
Copy link

SEU-zhc commented Nov 10, 2020

same error, waiting...

@sradmard
Copy link

Downgrading pytorch to 1.0 worked for me.

@SEU-zhc
Copy link

SEU-zhc commented Nov 11, 2020 via email

@sradmard
Copy link

Sorry, I have rtx2070.

@CosmosHua
Copy link

same error, waiting...

I don't know if it works to compile pytorch1.6 on RTX3090/CUDA11.1

@CosmosHua
Copy link

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.

@Shank2358
Copy link
Author

Shank2358 commented Nov 13, 2020

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!

@Shank2358
Copy link
Author

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。

@khiratsuka
Copy link

THCudaBlas_Sgemv, THCudaBlas_Sgemm, these errors is solved.
#71

but I have this error.

‘THFloatBlas_gemm’ was not declared in this scope; did you mean ‘THFloatBlas_axpy’?

ubuntu20.04, RTX3090, CUDA11.1, Pytorch1.8

@Shank2358
Copy link
Author

Shank2358 commented Nov 13, 2020

May be you are right.
I have tried #71 in torch1.8 but failed, the same error.

@Shank2358 Shank2358 changed the title Error compiling objects for extension in CUDA11.1, pytorch1.7, RTX3090 Error compiling objects for extension in CUDA11.1, pytorch1.7 or pytorch-nightly(1.8), RTX3090 Nov 13, 2020
@Shank2358
Copy link
Author

This issue is solved by MatthewHowe #92
I compiled it successfully in pytorch1.7 cuda11.1 RTX3090.

@GeLink9999
Copy link

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 -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=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 -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=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 -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=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 -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=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 -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=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 -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=_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<scalar_t>(),
| ^
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<scalar_t>(),
| ^
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<scalar_t>(),
| ^
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<scalar_t>(),
| ^
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<scalar_t>(),
| ^
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<scalar_t>());
| ^
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<scalar_t>(),
| ^
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<scalar_t>(),
| ^
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<scalar_t>(),
| ^
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<scalar_t>());
| ^
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<scalar_t>(),
| ^
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<scalar_t>(),
| ^
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<scalar_t>(),
| ^
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<scalar_t>());
| ^
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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:66:23: note: declared here
66 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:66:23: note: declared here
66 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
| ^~~~~~~~~~~
/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 = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
327 | input.contiguous().data<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>());
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>());
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:66:23: note: declared here
66 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/peng/anaconda3/envs/CenterNet/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:66:23: note: declared here
66 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
| ^~~~~~~~~~~
/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 = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
401 | out_grad.contiguous().data<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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<scalar_t>(),
| ^
/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();
| ^~~~~~~~~~~
/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", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
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:363:7: note: declared here
363 | 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

@bigboomclap
Copy link

这个问题由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?

@jiajunhua
Copy link

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 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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 -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
_ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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 using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’:
/usr/include/c++/10/chrono:473:154: required from here
/usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault
428 | S_gcd(intmax_t m, intmax_t n) noexcept
| ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-10/README.Bugs for instructions.
[2/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_sgd_kernel.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_sgd_kernel.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_sgd_kernel.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_sgd_kernel.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_sgd_kernel.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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 using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’:
/usr/include/c++/10/chrono:473:154: required from here
/usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault
428 | S_gcd(intmax_t m, intmax_t n) noexcept
| ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-10/README.Bugs for instructions.
[3/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_scale_kernel.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_scale_kernel.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_scale_kernel.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_scale_kernel.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_scale_kernel.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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 using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’:
/usr/include/c++/10/chrono:473:154: required from here
/usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault
428 | S_gcd(intmax_t m, intmax_t n) noexcept
| ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-10/README.Bugs for instructions.
[4/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_novograd.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_novograd.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_novograd.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_novograd.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_novograd.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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 using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’:
/usr/include/c++/10/chrono:473:154: required from here
/usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault
428 | S_gcd(intmax_t m, intmax_t n) noexcept
| ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-10/README.Bugs for instructions.
[5/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_lamb_stage_2.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_lamb_stage_2.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_lamb_stage_2.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_lamb_stage_2.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_lamb_stage_2.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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 using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’:
/usr/include/c++/10/chrono:473:154: required from here
/usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault
428 | S_gcd(intmax_t m, intmax_t n) noexcept
| ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-10/README.Bugs for instructions.
[6/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_axpby_kernel.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_axpby_kernel.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_axpby_kernel.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_axpby_kernel.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_axpby_kernel.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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 using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’:
/usr/include/c++/10/chrono:473:154: required from here
/usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault
428 | S_gcd(intmax_t m, intmax_t n) noexcept
| ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-10/README.Bugs for instructions.
[7/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_l2norm_kernel.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_l2norm_kernel.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_l2norm_kernel.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_l2norm_kernel.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_l2norm_kernel.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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 using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’:
/usr/include/c++/10/chrono:473:154: required from here
/usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault
428 | S_gcd(intmax_t m, intmax_t n) noexcept
| ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-10/README.Bugs for instructions.
[8/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_lamb_stage_1.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_lamb_stage_1.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_lamb_stage_1.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_lamb_stage_1.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_lamb_stage_1.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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 using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(Period2::num, Period::num)))>::den == 1)> [with Period2 = Period2; Rep = Rep; Period = Period]’:
/usr/include/c++/10/chrono:473:154: required from here
/usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault
428 | S_gcd(intmax_t m, intmax_t n) noexcept
| ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-10/README.Bugs for instructions.
[9/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_lamb.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_lamb.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_lamb.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_lamb.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_lamb.cu -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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 using __is_harmonic = std::__bool_constant<(std::ratio<((_Period2::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)) * (_Period::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den))), ((_Period2::den / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::den, _Period::den)) * (_Period::num / std::chrono::duration<_Rep, _Period>::_S_gcd(_Period2::num, _Period::num)))>::den == 1)> [with _Period2 = _Period2; _Rep = _Rep; _Period = _Period]’:
/usr/include/c++/10/chrono:473:154: required from here
/usr/include/c++/10/chrono:428:27: internal compiler error: Segmentation fault
428 | _S_gcd(intmax_t __m, intmax_t __n) noexcept
| ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-10/README.Bugs for instructions.
[10/10] c++ -MMD -MF /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/amp_C_frontend.o.d -pthread -B /home/jjh/anaconda3/envs/sgb/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -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/amp_C_frontend.cpp -o /home/jjh/projects/SGB/apex/build/temp.linux-x86_64-3.7/csrc/amp_C_frontend.o -O3 -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 -std=c++14
cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140,
from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/jjh/projects/SGB/apex/csrc/amp_C_frontend.cpp:1:
/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring ‘#pragma omp parallel’ [-Wunknown-pragmas]
83 | #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
extras_require=extras,
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 164, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command
self.run_command(cmdname)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/install_lib.py", line 107, in build
self.run_command('build_ext')
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
build_ext.build_extensions(self)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 538, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1359, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/jjh/anaconda3/envs/sgb/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1683, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

@WesLee88524
Copy link

Maybe u can try this : https://github.com/lbin/DCNv2.
It's work for me.

@jiajunhua
Copy link

jiajunhua commented Mar 24, 2022 via email

@lei-smile
Copy link

Downgrading pytorch to 1.0 worked for me.

Thanks,it works for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants