Megvii-BaseDetection / BEVDepth

Official code for BEVDepth.
MIT License
684 stars 94 forks source link

python setup.py develop Error #157

Open yukaizhou opened 1 year ago

yukaizhou commented 1 year ago

(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 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_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 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_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.

yukaizhou commented 1 year ago

(bevdepth_sec) root@workspace:/dfs/data/code_python/detection_3d/BEVDepth# pip list Package Version Editable project location


absl-py 1.2.0 addict 2.4.0 aiohttp 3.8.4 aiosignal 1.3.1 alabaster 0.7.13 anybadge 1.14.0 appdirs 1.4.4 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 arrow 1.2.1 aspy.refactor-imports 3.0.2 astroid 2.14.2 asttokens 2.0.8 async-timeout 4.0.2 attrs 22.1.0 autoflake 1.4 Babel 2.11.0 backcall 0.2.0 beautifulsoup4 4.11.1 black 20.8b1 bleach 5.0.1 cachetools 5.2.0 certifi 2022.6.15 cffi 1.15.1 cfgv 3.3.1 charset-normalizer 2.1.1 click 8.0.3 colorama 0.4.6 commonmark 0.9.1 coverage 7.1.0 css-html-js-minify 2.5.5 cycler 0.11.0 debugpy 1.6.3 decorator 5.1.1 defusedxml 0.7.1 descartes 1.1.0 distlib 0.3.6 docutils 0.16 entrypoints 0.4 executing 0.10.0 fastjsonschema 2.16.1 filelock 3.9.0 fire 0.4.0 flake8 4.0.1 flake8-polyfill 1.0.2 fonttools 4.36.0 frozenlist 1.3.3 fsspec 2023.1.0 future 0.18.3 gitlint 0.18.0 gitlint-core 0.18.0 google-auth 2.11.0 google-auth-oauthlib 0.4.6 grpcio 1.47.0 huggingface-hub 0.12.0 identify 2.5.18 idna 3.3 imageio 2.4.1 imagesize 1.4.1 importlib-metadata 4.12.0 importlib-resources 5.9.0 iniconfig 1.1.1 ipdb 0.13.11 ipykernel 6.15.1 ipython 8.4.0 ipython-genutils 0.2.0 ipywidgets 8.0.1 isort 4.3.21 jedi 0.18.1 Jinja2 3.1.2 joblib 1.1.0 jsonschema 4.14.0 jupyter 1.0.0 jupyter-client 7.3.4 jupyter-console 6.4.4 jupyter-core 4.11.1 jupyterlab-pygments 0.2.2 jupyterlab-widgets 3.0.2 kiwisolver 1.4.4 lazy-object-proxy 1.9.0 llvmlite 0.36.0 lxml 4.9.1 lyft-dataset-sdk 0.0.8 mando 0.6.4 Markdown 3.4.1 MarkupSafe 2.1.1 matplotlib 3.5.3 matplotlib-inline 0.1.6 mccabe 0.6.1 mistune 2.0.4 mmcls 0.25.0 mmcv-full 1.5.2 mmdet 2.24.0 mmdet3d 1.0.0rc4 /dfs/data/code_python/detection_3d/BEVDepth/bevdepth/mmdetection3d-1.0.0rc4 mmsegmentation 0.26.0 multidict 6.0.4 mypy-extensions 0.4.3 nbclient 0.6.7 nbconvert 7.0.0 nbformat 5.4.0 nbsphinx 0.8.12 nest-asyncio 1.5.5 networkx 2.2 nodeenv 1.7.0 notebook 6.4.12 numba 0.53.0 numpy 1.19.5 nuscenes-devkit 1.1.9 oauthlib 3.2.0 opencv-python 4.6.0.66 opencv-python-headless 4.7.0.68 packaging 21.3 pandas 1.4.3 pandocfilters 1.5.0 parso 0.8.3 pathspec 0.9.0 pexpect 4.8.0 pickleshare 0.7.5 Pillow 9.2.0 pip 22.1.2 pkgutil_resolve_name 1.3.10 platformdirs 2.5.2 plotly 5.10.0 pluggy 1.0.0 plyfile 0.7.4 pre-commit 3.0.4 prettytable 3.3.0 prometheus-client 0.14.1 prompt-toolkit 3.0.30 protobuf 3.19.4 psutil 5.9.1 ptyprocess 0.7.0 pure-eval 0.2.2 py 1.11.0 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycocotools 2.0.4 pycodestyle 2.8.0 pycparser 2.21 pyDeprecate 0.3.2 pyflakes 2.4.0 Pygments 2.13.0 pylint 2.3.1 pyparsing 3.0.9 pyquaternion 0.9.9 pyrsistent 0.18.1 pytest 7.1.2 pytest-cov 4.0.0 python-dateutil 2.8.2 python-slugify 8.0.0 pytorch-lightning 1.6.0 pytz 2022.2.1 PyWavelets 1.1.1 PyYAML 6.0 pyzmq 23.2.1 qtconsole 5.3.1 QtPy 2.2.0 radon 4.2.0 recommonmark 0.7.1 regex 2022.10.31 requests 2.28.1 requests-oauthlib 1.3.1 rsa 4.9 scikit-image 0.19.3 scikit-learn 1.1.2 scipy 1.9.0 seed-isort-config 2.2.0 Send2Trash 1.8.0 setuptools 59.5.0 sh 1.14.2 Shapely 1.8.4 six 1.16.0 snowballstemmer 2.2.0 soupsieve 2.3.2.post1 Sphinx 3.5.4 sphinx-markdown-tables 0.0.17 sphinx-material 0.0.35 sphinxcontrib-applehelp 1.0.4 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp 2.0.1 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.5 stack-data 0.4.0 tenacity 8.0.1 tensorboard 2.10.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.1 tensorboardX 2.6 termcolor 1.1.0 terminado 0.15.0 terminaltables 3.1.10 text-unidecode 1.3 threadpoolctl 3.1.0 tifffile 2019.7.26 timm 0.6.12 tinycss2 1.1.1 toml 0.10.2 tomli 2.0.1 torch 1.9.0 torchmetrics 0.11.1 torchvision 0.10.0 tornado 6.2 tqdm 4.64.0 traitlets 5.3.0 trimesh 2.35.39 typed-ast 1.5.4 typing_extensions 4.3.0 Unidecode 1.3.6 urllib3 1.26.12 virtualenv 20.19.0 wcwidth 0.2.5 webencodings 0.5.1 Werkzeug 2.2.2 wheel 0.37.1 widgetsnbextension 4.0.2 wrapt 1.14.1 yapf 0.32.0 yarl 1.8.2 zipp 3.8.1

jose-zhou commented 1 year ago

你好,问题解决了么

yukaizhou commented 1 year ago

你好,问题解决了么

没有呢,你也遇到了吗?有没有解决呢?

jose-zhou commented 1 year ago

ROCM 4.2 (Linux only)

pip install torch==1.9.0+rocm4.2 torchvision==0.10.0+rocm4.2 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

ROCM 4.1 (Linux only)

pip install torch==1.9.0+rocm4.1 torchvision==0.10.0+rocm4.1 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

ROCM 4.0.1 (Linux only)

pip install torch==1.9.0+rocm4.0.1 torchvision==0.10.0+rocm4.0.1 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

CUDA 11.1

pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

CUDA 10.2

pip install torch==1.9.0+cu102 torchvision==0.10.0+cu102 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

CPU only

pip install torch==1.9.0+cpu torchvision==0.10.0+cpu torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_sta 用这个重新安装pytorch可以了

jose-zhou commented 1 year ago

我用的是这个 pip install torch==1.9.0+cu102 torchvision==0.10.0+cu102 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

IranQin commented 1 year ago

我试了几乎所有版本的torch都没解决这个问题 image

Mandylove1993 commented 1 year ago

我也遇到了这个bevdepth/ops/voxel_pooling_train/src/voxel_pooling_train_forward_cuda.cu(60): error: no instance of overloaded function "atomicAdd" matches the argument list错误,,是不是和硬件有关?我用的3080,唉,试了很多pytorch版本了已经