Megvii-BaseDetection / Megvii-BaseDetection/BEVDepth
python setup.py develop Error
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 881
- Forks
- 124
- PR merge metrics
- No merged PRs in 30d
Description
(bevdepth_sec) root@workspace:/dfs/data/code_python/detection_3d/BEVDepth# pip install -e . -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.comLooking in indexes: http://mirrors.aliyun.com/pypi/simple/
Obtaining file:///dfs/data/code_python/detection_3d/BEVDepth
Preparing metadata (setup.py) ... done
Installing collected packages: BEVDepth
Running setup.py develop for BEVDepth
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [147 lines of output]
running develop
running egg_info
writing BEVDepth.egg-info/PKG-INFO
writing dependency_links to BEVDepth.egg-info/dependency_links.txt
writing top-level names to BEVDepth.egg-info/top_level.txt
reading manifest file 'BEVDepth.egg-info/SOURCES.txt'
adding license file 'LICENSE.md'
writing manifest file 'BEVDepth.egg-info/SOURCES.txt'
running build_ext
building 'bevdepth.ops.voxel_pooling_train.voxel_pooling_train_ext' extension
Emitting ninja build file /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
[1/2] /usr/local/cuda/bin/nvcc -DWITH_CUDA -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/include/python3.8 -c -c /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.cu -o /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=voxel_pooling_train_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.o
/usr/local/cuda/bin/nvcc -DWITH_CUDA -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/include/python3.8 -c -c /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.cu -o /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=voxel_pooling_train_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.cu(60): error: no instance of overloaded function "atomicAdd" matches the argument list
argument types are: (half *, const half)
detected during instantiation of "void voxel_pooling_train_forward_kernel(int, int, int, int, int, int, const int *, const T *, T *, int *) [with T=half]"
(99): here
1 error detected in the compilation of "/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.cu".
[2/2] c++ -MMD -MF /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.o.d -pthread -B /dfs/data/anaconda/envs/bevdepth_sec/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/include/python3.8 -c -c /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp -o /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=voxel_pooling_train_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 /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:140,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:6:
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:87: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
87 | #pragma omp parallel for if ((end - begin) >= grain_size)
|
In file included from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/core/ATenGeneral.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:13,
from /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:2:
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp: In function ‘int voxel_pooling_train_forward_wrapper(int, int, int, int, int, int, at::Tensor, at::Tensor, at::Tensor, at::Tensor)’:
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:11:22: 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]
11 | TORCH_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
| ^
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:195:64: note: in definition of macro ‘C10_UNLIKELY’
195 | #define C10_UNLIKELY(expr) (__builtin_expect(static_cast<bool>(expr), 0))
| ^~~~
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:430:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
430 | if (C10_UNLIKELY_OR_CONST(!(cond))) { \
| ^~~~~~~~~~~~~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:11:3: note: in expansion of macro ‘TORCH_CHECK’
11 | TORCH_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
| ^~~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:15:3: note: in expansion of macro ‘CHECK_CUDA’
15 | CHECK_CUDA(x); \
| ^~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:45:3: note: in expansion of macro ‘CHECK_INPUT’
45 | CHECK_INPUT(geom_xyz_tensor);
| ^~~~~~~~~~~
In file included from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
from /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:2:
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/core/ATenGeneral.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:13,
from /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:2:
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:11:22: 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]
11 | TORCH_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
| ^
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:195:64: note: in definition of macro ‘C10_UNLIKELY’
195 | #define C10_UNLIKELY(expr) (__builtin_expect(static_cast<bool>(expr), 0))
| ^~~~
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:430:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
430 | if (C10_UNLIKELY_OR_CONST(!(cond))) { \
| ^~~~~~~~~~~~~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:11:3: note: in expansion of macro ‘TORCH_CHECK’
11 | TORCH_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
| ^~~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:15:3: note: in expansion of macro ‘CHECK_CUDA’
15 | CHECK_CUDA(x); \
| ^~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:46:3: note: in expansion of macro ‘CHECK_INPUT’
46 | CHECK_INPUT(input_features_tensor);
| ^~~~~~~~~~~
In file included from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
from /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:2:
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1666, in _run_ninja_build
subprocess.run(
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/dfs/data/code_python/detection_3d/BEVDepth/setup.py", line 45, in <module>
setup(
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/develop.py", line 114, in install_for_development
self.run_command('build_ext')
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 709, in build_extensions
build_ext.build_extensions(self)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 530, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1355, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1682, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [147 lines of output]
running develop
running egg_info
writing BEVDepth.egg-info/PKG-INFO
writing dependency_links to BEVDepth.egg-info/dependency_links.txt
writing top-level names to BEVDepth.egg-info/top_level.txt
reading manifest file 'BEVDepth.egg-info/SOURCES.txt'
adding license file 'LICENSE.md'
writing manifest file 'BEVDepth.egg-info/SOURCES.txt'
running build_ext
building 'bevdepth.ops.voxel_pooling_train.voxel_pooling_train_ext' extension
Emitting ninja build file /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
[1/2] /usr/local/cuda/bin/nvcc -DWITH_CUDA -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/include/python3.8 -c -c /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.cu -o /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=voxel_pooling_train_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.o
/usr/local/cuda/bin/nvcc -DWITH_CUDA -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/include/python3.8 -c -c /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.cu -o /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS_ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=voxel_pooling_train_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_80,code=sm_80 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.cu(60): error: no instance of overloaded function "atomicAdd" matches the argument list
argument types are: (half *, const half)
detected during instantiation of "void voxel_pooling_train_forward_kernel(int, int, int, int, int, int, const int *, const T *, T *, int *) [with T=half]"
(99): here
1 error detected in the compilation of "/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.cu".
[2/2] c++ -MMD -MF /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.o.d -pthread -B /dfs/data/anaconda/envs/bevdepth_sec/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/TH -I/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/dfs/data/anaconda/envs/bevdepth_sec/include/python3.8 -c -c /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp -o /dfs/data/code_python/detection_3d/BEVDepth/build/temp.linux-x86_64-3.8/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=voxel_pooling_train_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 /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:140,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/torch/extension.h:4,
from /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:6:
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:87: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
87 | #pragma omp parallel for if ((end - begin) >= grain_size)
|
In file included from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/core/ATenGeneral.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:13,
from /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:2:
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp: In function ‘int voxel_pooling_train_forward_wrapper(int, int, int, int, int, int, at::Tensor, at::Tensor, at::Tensor, at::Tensor)’:
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:11:22: 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]
11 | TORCH_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
| ^
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:195:64: note: in definition of macro ‘C10_UNLIKELY’
195 | #define C10_UNLIKELY(expr) (__builtin_expect(static_cast<bool>(expr), 0))
| ^~~~
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:430:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
430 | if (C10_UNLIKELY_OR_CONST(!(cond))) { \
| ^~~~~~~~~~~~~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:11:3: note: in expansion of macro ‘TORCH_CHECK’
11 | TORCH_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
| ^~~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:15:3: note: in expansion of macro ‘CHECK_CUDA’
15 | CHECK_CUDA(x); \
| ^~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:45:3: note: in expansion of macro ‘CHECK_INPUT’
45 | CHECK_INPUT(geom_xyz_tensor);
| ^~~~~~~~~~~
In file included from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
from /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:2:
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/core/ATenGeneral.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:13,
from /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:2:
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:11:22: 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]
11 | TORCH_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
| ^
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/c10/macros/Macros.h:195:64: note: in definition of macro ‘C10_UNLIKELY’
195 | #define C10_UNLIKELY(expr) (__builtin_expect(static_cast<bool>(expr), 0))
| ^~~~
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:430:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
430 | if (C10_UNLIKELY_OR_CONST(!(cond))) { \
| ^~~~~~~~~~~~~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:11:3: note: in expansion of macro ‘TORCH_CHECK’
11 | TORCH_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
| ^~~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:15:3: note: in expansion of macro ‘CHECK_CUDA’
15 | CHECK_CUDA(x); \
| ^~~~~~~~~~
/dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:46:3: note: in expansion of macro ‘CHECK_INPUT’
46 | CHECK_INPUT(input_features_tensor);
| ^~~~~~~~~~~
In file included from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
from /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward.cpp:2:
/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1666, in _run_ninja_build
subprocess.run(
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/dfs/data/code_python/detection_3d/BEVDepth/setup.py", line 45, in <module>
setup(
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/develop.py", line 114, in install_for_development
self.run_command('build_ext')
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 709, in build_extensions
build_ext.build_extensions(self)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 530, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1355, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/dfs/data/anaconda/envs/bevdepth_sec/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1682, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
(bevdepth_sec) root@workspace:/dfs/data/code_python/detection_3d/BEVDepth# g++ -version
g++: error: unrecognized command line option ‘-version’
g++: fatal error: no input files
compilation terminated.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the installation with pip install -e . and inspect bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.cu around line 60, where the CUDA compilation fails in atomicAdd. Compare the CUDA, Python, and PyTorch versions involved, then verify that the extension builds successfully and the editable installation completes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- build-system, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100