open-mmlab / mmdetection3d

OpenMMLab's next-generation platform for general 3D object detection.
https://mmdetection3d.readthedocs.io/en/latest/
Apache License 2.0
5.31k stars 1.54k forks source link

Failed to compile mmdet3d #494

Closed Kou-99 closed 3 years ago

Kou-99 commented 3 years ago

Thanks for your error report and we appreciate it a lot.

Checklist

  1. I have searched related issues but cannot get the expected help.
  2. The bug has not been fixed in the latest version.

Describe the bug I installed mmdetection and mmtracking according to your doc and everything went on well. However, when I tried to install mmdetection3d, it failed to compile. I noticed #273 also has a compile issue and you suggested to use a lower version of gcc, but his traceback is quite different from mine so I think that might not be the solution.

Reproduction

  1. What command or script did you run?
pip install -v -e .
  1. Did you make any modifications on the code or config? Did you understand what you have modified?
  2. What dataset did you use?

Environment

  1. Please run python mmdet3d/utils/collect_env.py to collect necessary environment infomation and paste it here. sys.platform: linux Python: 3.7.10 (default, Feb 26 2021, 18:47:35) [GCC 7.3.0] CUDA available: True GPU 0,1: GeForce GTX 1080 CUDA_HOME: /usr/local/cuda NVCC: Cuda compilation tools, release 9.0, V9.0.176 GCC: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609 PyTorch: 1.8.1 PyTorch compiling details: PyTorch built with:
    • GCC 7.3
    • C++ Version: 201402
    • Intel(R) oneAPI Math Kernel Library Version 2021.2-Product Build 20210312 for Intel(R) 64 architecture applications
    • Intel(R) MKL-DNN v1.7.0 (Git Hash 7aed236906b1f7a05c0917e5257a1af05e9ff683)
    • OpenMP 201511 (a.k.a. OpenMP 4.5)
    • NNPACK is enabled
    • CPU capability usage: AVX2
    • CUDA Runtime 10.1
    • NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-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_37,code=compute_37
    • CuDNN 7.6.3
    • Magma 2.5.2
    • Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=10.1, CUDNN_VERSION=7.6.3, CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.8.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON,

TorchVision: 0.9.1 OpenCV: 4.5.1 MMCV: 1.3.1 MMCV Compiler: GCC 7.3 MMCV CUDA Compiler: 10.1 MMDetection: 2.11.0+8a432d2

  1. You may add addition that may be helpful for locating the problem, such as
    • How you installed PyTorch [e.g., pip, conda, source] conda
    • Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Error traceback If applicable, paste the error trackback here.

 Running setup.py develop for mmdet3d
    Running command /home/jgao/.conda/envs/open-mmlab/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/jgao/mmdetection3d/setup.py'"'"'; __file__='"'"'/home/jgao/mmdetection3d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
    running develop
    running egg_info
    creating mmdet3d.egg-info
    writing mmdet3d.egg-info/PKG-INFO
    writing dependency_links to mmdet3d.egg-info/dependency_links.txt
    writing requirements to mmdet3d.egg-info/requires.txt
    writing top-level names to mmdet3d.egg-info/top_level.txt
    writing manifest file 'mmdet3d.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'mmdet3d/ops/**/*.cpp'
    warning: no files found matching 'mmdet3d/ops/**/*.cu'
    warning: no files found matching 'mmdet3d/ops/**/*.h'
    warning: no files found matching 'mmdet3d/ops/**/*.cc'
    warning: no files found matching 'mmdet3d/VERSION'
    writing manifest file 'mmdet3d.egg-info/SOURCES.txt'
    running build_ext
    building 'mmdet3d.ops.spconv.sparse_conv_ext' extension
    creating /home/jgao/mmdetection3d/build
    creating /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7
    creating /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d
    creating /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops
    creating /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv
    creating /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src
    Emitting ninja build file /home/jgao/mmdetection3d/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/7] c++ -MMD -MF /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/reordering.o.d -pthread -B /home/jgao/.conda/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/jgao/mmdetection3d/mmdet3d/ops/spconv/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/spconv/src/reordering.cc -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/reordering.o -w -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    [2/7] c++ -MMD -MF /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/maxpool.o.d -pthread -B /home/jgao/.conda/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/jgao/mmdetection3d/mmdet3d/ops/spconv/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/spconv/src/maxpool.cc -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/maxpool.o -w -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    [3/7] c++ -MMD -MF /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/indice.o.d -pthread -B /home/jgao/.conda/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/jgao/mmdetection3d/mmdet3d/ops/spconv/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/spconv/src/indice.cc -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/indice.o -w -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    [4/7] /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/home/jgao/mmdetection3d/mmdet3d/ops/spconv/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/spconv/src/indice_cuda.cu -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/indice_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'"'"'' -w -std=c++14 -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=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61
    [5/7] /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/home/jgao/mmdetection3d/mmdet3d/ops/spconv/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/spconv/src/reordering_cuda.cu -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/reordering_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'"'"'' -w -std=c++14 -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=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61
    [6/7] /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/home/jgao/mmdetection3d/mmdet3d/ops/spconv/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/spconv/src/maxpool_cuda.cu -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/maxpool_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'"'"'' -w -std=c++14 -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=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61
    [7/7] c++ -MMD -MF /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/all.o.d -pthread -B /home/jgao/.conda/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/jgao/mmdetection3d/mmdet3d/ops/spconv/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/spconv/src/all.cc -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/all.o -w -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=sparse_conv_ext -D_GLIBCXX_USE_CXX11_ABI=0
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/mmdet3d
    creating build/lib.linux-x86_64-3.7/mmdet3d/ops
    creating build/lib.linux-x86_64-3.7/mmdet3d/ops/spconv
    g++ -pthread -shared -B /home/jgao/.conda/envs/open-mmlab/compiler_compat -L/home/jgao/.conda/envs/open-mmlab/lib -Wl,-rpath=/home/jgao/.conda/envs/open-mmlab/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/all.o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/reordering.o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/reordering_cuda.o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/indice.o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/indice_cuda.o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/maxpool.o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/spconv/src/maxpool_cuda.o -L/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/lib -L/usr/local/cuda/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.7/mmdet3d/ops/spconv/sparse_conv_ext.cpython-37m-x86_64-linux-gnu.so
    building 'mmdet3d.ops.iou3d.iou3d_cuda' extension
    creating /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/iou3d
    creating /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/iou3d/src
    Emitting ninja build file /home/jgao/mmdetection3d/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/2] /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/iou3d/src/iou3d_kernel.cu -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/iou3d/src/iou3d_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'"'"'' -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=iou3d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
    [2/2] c++ -MMD -MF /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/iou3d/src/iou3d.o.d -pthread -B /home/jgao/.conda/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/iou3d/src/iou3d.cpp -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/iou3d/src/iou3d.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=iou3d_cuda -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/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140:0,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
                     from /home/jgao/mmdetection3d/mmdet3d/ops/iou3d/src/iou3d.cpp:12:
    /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
     #pragma omp parallel for if ((end - begin) >= grain_size)
     ^
    creating build/lib.linux-x86_64-3.7/mmdet3d/ops/iou3d
    g++ -pthread -shared -B /home/jgao/.conda/envs/open-mmlab/compiler_compat -L/home/jgao/.conda/envs/open-mmlab/lib -Wl,-rpath=/home/jgao/.conda/envs/open-mmlab/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/iou3d/src/iou3d.o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/iou3d/src/iou3d_kernel.o -L/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/lib -L/usr/local/cuda/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.7/mmdet3d/ops/iou3d/iou3d_cuda.cpython-37m-x86_64-linux-gnu.so
    building 'mmdet3d.ops.voxel.voxel_layer' extension
    creating /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel
    creating /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src
    Emitting ninja build file /home/jgao/mmdetection3d/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/5] c++ -MMD -MF /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/voxelization_cpu.o.d -pthread -B /home/jgao/.conda/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/voxel/src/voxelization_cpu.cpp -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/voxelization_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=voxel_layer -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/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140:0,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
                     from /home/jgao/mmdetection3d/mmdet3d/ops/voxel/src/voxelization_cpu.cpp:2:
    /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
     #pragma omp parallel for if ((end - begin) >= grain_size)
     ^
    [2/5] c++ -MMD -MF /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/scatter_points_cpu.o.d -pthread -B /home/jgao/.conda/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/voxel/src/scatter_points_cpu.cpp -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/scatter_points_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=voxel_layer -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/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140:0,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
                     from /home/jgao/mmdetection3d/mmdet3d/ops/voxel/src/scatter_points_cpu.cpp:2:
    /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
     #pragma omp parallel for if ((end - begin) >= grain_size)
     ^
    [3/5] /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/voxel/src/scatter_points_cuda.cu -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/scatter_points_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_layer -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
    FAILED: /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/scatter_points_cuda.o
    /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/voxel/src/scatter_points_cuda.cu -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/scatter_points_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_layer -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
    /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/core/boxing/impl/boxing.h:242:122: error: expansion pattern ‘c10::impl::can_box<FirstArg>’ contains no argument packs
    /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/core/boxing/impl/boxing.h:242:149: error: template argument 1 is invalid
    [4/5] c++ -MMD -MF /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/voxelization.o.d -pthread -B /home/jgao/.conda/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/voxel/src/voxelization.cpp -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/voxelization.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=voxel_layer -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/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140:0,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
                     from /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
                     from /home/jgao/mmdetection3d/mmdet3d/ops/voxel/src/voxelization.cpp:1:
    /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
     #pragma omp parallel for if ((end - begin) >= grain_size)
     ^
    [5/5] /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/voxel/src/voxelization_cuda.cu -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/voxelization_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_layer -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
    FAILED: /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/voxelization_cuda.o
    /usr/local/cuda/bin/nvcc  -DWITH_CUDA -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/jgao/.conda/envs/open-mmlab/include/python3.7m -c -c /home/jgao/mmdetection3d/mmdet3d/ops/voxel/src/voxelization_cuda.cu -o /home/jgao/mmdetection3d/build/temp.linux-x86_64-3.7/mmdet3d/ops/voxel/src/voxelization_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_layer -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
    /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/core/boxing/impl/boxing.h:242:122: error: expansion pattern ‘c10::impl::can_box<FirstArg>’ contains no argument packs
    /home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/include/ATen/core/boxing/impl/boxing.h:242:149: error: template argument 1 is invalid
    ninja: build stopped: subcommand failed.
    Traceback (most recent call last):
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1673, in _run_ninja_build
        env=env)
      File "/home/jgao/.conda/envs/open-mmlab/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 "<string>", line 1, in <module>
      File "/home/jgao/mmdetection3d/setup.py", line 253, in <module>
        zip_safe=False)
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/setuptools/command/develop.py", line 34, in run
        self.install_for_development()
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/setuptools/command/develop.py", line 136, in install_for_development
        self.run_command('build_ext')
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
        _build_ext.run(self)
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
        _build_ext.build_ext.run(self)
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
        build_ext.build_extensions(self)
      File "/home/jgao/.conda/envs/open-mmlab/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/jgao/.conda/envs/open-mmlab/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
        self._build_extensions_serial()
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
        self.build_extension(ext)
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
        _build_ext.build_extension(self, ext)
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
        depends=ext.depends)
      File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 538, in unix_wrap_ninja_compile
        with_cuda=with_cuda)
      File "/home/jgao/.conda/envs/open-mmlab/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/jgao/.conda/envs/open-mmlab/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
ERROR: Command errored out with exit status 1: /home/jgao/.conda/envs/open-mmlab/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/jgao/mmdetection3d/setup.py'"'"'; __file__='"'"'/home/jgao/mmdetection3d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
Exception information:
Traceback (most recent call last):
  File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 189, in _main
    status = self.run(options, args)
  File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 178, in wrapper
    return func(self, options, args)
  File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 400, in run
    pycompile=options.compile,
  File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 88, in install_given_reqs
    pycompile=pycompile,
  File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 774, in install
    unpacked_source_directory=self.unpacked_source_directory,
  File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/pip/_internal/operations/install/editable_legacy.py", line 51, in install_editable
    cwd=unpacked_source_directory,
  File "/home/jgao/.conda/envs/open-mmlab/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 258, in call_subprocess
    raise InstallationSubprocessError(proc.returncode, command_desc)
pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /home/jgao/.conda/envs/open-mmlab/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/jgao/mmdetection3d/setup.py'"'"'; __file__='"'"'/home/jgao/mmdetection3d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
Removed build tracker: '/tmp/pip-req-tracker-5lb1ji0m'

Bug fix If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!

Wuziyi616 commented 3 years ago

Hi @Kou-99, thank you for your interest in our work! The only thing that seems strange to me is that, your NVCC version (9.0) is not the same as your CUDA Runtime (10.1). As there are many GPU custom ops, compiling them using different version of NVCC may cause a problem. I'll suggest you to install cuda-10.1 and use its nvcc to compile mmdet3d.

Kou-99 commented 3 years ago

Thank you for your information! I solved this problem by changing my Pytorch version from 1.8.1(cuda10.1) to 1.7.0(cuda9.2) and use Cuda-9.2's nvcc to compile. It seems important to choose Pytorch Cuda version according to nvcc version rather than Cuda runtime version.

Wuziyi616 commented 3 years ago

@Kou-99 Great to hear! I am glad it works :)