filaPro / oneformer3d

[CVPR2024] OneFormer3D: One Transformer for Unified Point Cloud Segmentation
Other
351 stars 32 forks source link

when i try to install MinkowskiEnginem,it always be killed #87

Closed shaonianG closed 3 weeks ago

shaonianG commented 3 weeks ago

i build images by this docker file, when i use docker to build images,this compile error is,so i pass this part,and decicde to install it later [2/13] c++ -MMD -MF /tmp/pip-req-build-kkb0udke/build/temp.linux-x86_64-cpython-310/pybind/minkowski.o.d -pthread -B /opt/conda/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/include -fPIC -O2 -isystem /opt/conda/include -fPIC -I/opt/conda/lib/python3.10/site-packages/torch/include -I/opt/conda/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.10/site-packages/torch/include/TH -I/opt/conda/lib/python3.10/site-packages/torch/include/THC -I/tmp/pip-req-build-kkb0udke/src -I/tmp/pip-req-build-kkb0udke/src/3rdparty -I/opt/conda/include/python3.10 -c -c /tmp/pip-req-build-kkb0udke/pybind/minkowski.cpp -o /tmp/pip-req-build-kkb0udke/build/temp.linux-x86_64-cpython-310/pybind/minkowski.o -fopenmp -O3 -DCPU_ONLY -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /tmp/pip-req-build-kkb0udke/build/temp.linux-x86_64-cpython-310/pybind/minkowski.o c++ -MMD -MF /tmp/pip-req-build-kkb0udke/build/temp.linux-x86_64-cpython-310/pybind/minkowski.o.d -pthread -B /opt/conda/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/include -fPIC -O2 -isystem /opt/conda/include -fPIC -I/opt/conda/lib/python3.10/site-packages/torch/include -I/opt/conda/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.10/site-packages/torch/include/TH -I/opt/conda/lib/python3.10/site-packages/torch/include/THC -I/tmp/pip-req-build-kkb0udke/src -I/tmp/pip-req-build-kkb0udke/src/3rdparty -I/opt/conda/include/python3.10 -c -c /tmp/pip-req-build-kkb0udke/pybind/minkowski.cpp -o /tmp/pip-req-build-kkb0udke/build/temp.linux-x86_64-cpython-310/pybind/minkowski.o -fopenmp -O3 -DCPU_ONLY -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 In file included from /opt/conda/lib/python3.10/site-packages/torch/include/torch/csrc/Exceptions.h:13:0, from /opt/conda/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/python.h:11, from /opt/conda/lib/python3.10/site-packages/torch/include/torch/extension.h:6, from /tmp/pip-req-build-kkb0udke/pybind/minkowski.cpp:29: /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of ??class pybind11::class_<minkowski::GPUMemoryAllocatorBackend::Type>??: /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:2134:7: required from ??class pybind11::enum_<minkowski::GPUMemoryAllocatorBackend::Type>?? /tmp/pip-req-build-kkb0udke/pybind/extern.hpp:672:34: required from here /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::GPUMemoryAllocatorBackend::Type>?? declared with greater visibility than the type of its field ??pybind11::class_<minkowski::GPUMemoryAllocatorBackend::Type>::<anonymous>?? [-Wattributes] class class_ : public detail::generic_type { ^~~~~~ /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::GPUMemoryAllocatorBackend::Type>?? declared with greater visibility than its base ??pybind11::detail::generic_type?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of ??class pybind11::class_<minkowski::CUDAKernelMapMode::Mode>??: /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:2134:7: required from ??class pybind11::enum_<minkowski::CUDAKernelMapMode::Mode>?? /tmp/pip-req-build-kkb0udke/pybind/extern.hpp:677:71: required from here /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::CUDAKernelMapMode::Mode>?? declared with greater visibility than the type of its field ??pybind11::class_<minkowski::CUDAKernelMapMode::Mode>::<anonymous>?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::CUDAKernelMapMode::Mode>?? declared with greater visibility than its base ??pybind11::detail::generic_type?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of ??class pybind11::class_<minkowski::MinkowskiAlgorithm::Mode>??: /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:2134:7: required from ??class pybind11::enum_<minkowski::MinkowskiAlgorithm::Mode>?? /tmp/pip-req-build-kkb0udke/pybind/extern.hpp:684:73: required from here /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::MinkowskiAlgorithm::Mode>?? declared with greater visibility than the type of its field ??pybind11::class_<minkowski::MinkowskiAlgorithm::Mode>::<anonymous>?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::MinkowskiAlgorithm::Mode>?? declared with greater visibility than its base ??pybind11::detail::generic_type?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of ??class pybind11::class_<minkowski::CoordinateMapBackend::Type>??: /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:2134:7: required from ??class pybind11::enum_<minkowski::CoordinateMapBackend::Type>?? /tmp/pip-req-build-kkb0udke/pybind/extern.hpp:692:74: required from here /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::CoordinateMapBackend::Type>?? declared with greater visibility than the type of its field ??pybind11::class_<minkowski::CoordinateMapBackend::Type>::<anonymous>?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::CoordinateMapBackend::Type>?? declared with greater visibility than its base ??pybind11::detail::generic_type?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of ??class pybind11::class_<minkowski::RegionType::Type>??: /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:2134:7: required from ??class pybind11::enum_<minkowski::RegionType::Type>?? /tmp/pip-req-build-kkb0udke/pybind/extern.hpp:697:57: required from here /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::RegionType::Type>?? declared with greater visibility than the type of its field ??pybind11::class_<minkowski::RegionType::Type>::<anonymous>?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::RegionType::Type>?? declared with greater visibility than its base ??pybind11::detail::generic_type?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of ??class pybind11::class_<minkowski::PoolingMode::Type>??: /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:2134:7: required from ??class pybind11::enum_<minkowski::PoolingMode::Type>?? /tmp/pip-req-build-kkb0udke/pybind/extern.hpp:703:59: required from here /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::PoolingMode::Type>?? declared with greater visibility than the type of its field ??pybind11::class_<minkowski::PoolingMode::Type>::<anonymous>?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::PoolingMode::Type>?? declared with greater visibility than its base ??pybind11::detail::generic_type?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of ??class pybind11::class_<minkowski::BroadcastMode::Type>??: /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:2134:7: required from ??class pybind11::enum_<minkowski::BroadcastMode::Type>?? /tmp/pip-req-build-kkb0udke/pybind/extern.hpp:730:63: required from here /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::BroadcastMode::Type>?? declared with greater visibility than the type of its field ??pybind11::class_<minkowski::BroadcastMode::Type>::<anonymous>?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::BroadcastMode::Type>?? declared with greater visibility than its base ??pybind11::detail::generic_type?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of ??class pybind11::class_<minkowski::ConvolutionMode::Type>??: /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:2134:7: required from ??class pybind11::enum_<minkowski::ConvolutionMode::Type>?? /tmp/pip-req-build-kkb0udke/pybind/extern.hpp:737:67: required from here /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::ConvolutionMode::Type>?? declared with greater visibility than the type of its field ??pybind11::class_<minkowski::ConvolutionMode::Type>::<anonymous>?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::ConvolutionMode::Type>?? declared with greater visibility than its base ??pybind11::detail::generic_type?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of ??class pybind11::class_<minkowski::CoordinateMapKey>??: /tmp/pip-req-build-kkb0udke/pybind/extern.hpp:744:64: required from here /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::CoordinateMapKey>?? declared with greater visibility than the type of its field ??pybind11::class_<minkowski::CoordinateMapKey>::<anonymous>?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::CoordinateMapKey>?? declared with greater visibility than its base ??pybind11::detail::generic_type?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h: In instantiation of ??class pybind11::class_<minkowski::CoordinateMapManager<int, float, std::allocator, minkowski::CoordinateMapCPU> >??: /tmp/pip-req-build-kkb0udke/pybind/extern.hpp:769:7: required from ??void instantiate_manager(pybind11::module&, const string&) [with manager_type = minkowski::CoordinateMapManager<int, float, std::allocator, minkowski::CoordinateMapCPU>; pybind11::module = pybind11::module_; std::string = std::basic_string<char>]?? /tmp/pip-req-build-kkb0udke/pybind/minkowski.cpp:47:79: required from here /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::CoordinateMapManager<int, float, std::allocator, minkowski::CoordinateMapCPU> >?? declared with greater visibility than the type of its field ??pybind11::class_<minkowski::CoordinateMapManager<int, float, std::allocator, minkowski::CoordinateMapCPU> >::<anonymous>?? [-Wattributes] /opt/conda/lib/python3.10/site-packages/torch/include/pybind11/pybind11.h:1479:7: warning: ??pybind11::class_<minkowski::CoordinateMapManager<int, float, std::allocator, minkowski::CoordinateMapCPU> >?? declared with greater visibility than its base ??pybind11::detail::generic_type?? [-Wattributes] c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions. ?????????

then i run this images,use pip install git+https://github.com/NVIDIA/MinkowskiEngine.git@02fc608bea4c0549b0a7b00ca1bf15dee4a0b228 -v --no-deps \ --config-settings="build_args=--blas=openblas" \ --config-settings="build_args=--force_cuda" something error,i have allocate the memory up to 24g,but still have this error,(in images build,it use cpu compile bacause it can't find runtime cuda,in container it use cuda compile) [6/21] /opt/conda/bin/nvcc -I/opt/conda/lib/python3.10/site-packages/torch/include -I/opt/conda/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.10/site-packages/torch/include/TH -I/opt/conda/lib/python3.10/site-packages/torch/include/THC -I/opt/conda/include -I/tmp/pip-req-build-92semr14/src -I/tmp/pip-req-build-92semr14/src/3rdparty -I/opt/conda/include/python3.10 -c -c /tmp/pip-req-build-92semr14/src/interpolation_gpu.cu -o /tmp/pip-req-build-92semr14/build/temp.linux-x86_64-cpython-310/tmp/pip-req-build-92semr14/src/interpolation_gpu.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'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /tmp/pip-req-build-92semr14/build/temp.linux-x86_64-cpython-310/tmp/pip-req-build-92semr14/src/interpolation_gpu.o /opt/conda/bin/nvcc -I/opt/conda/lib/python3.10/site-packages/torch/include -I/opt/conda/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/lib/python3.10/site-packages/torch/include/TH -I/opt/conda/lib/python3.10/site-packages/torch/include/THC -I/opt/conda/include -I/tmp/pip-req-build-92semr14/src -I/tmp/pip-req-build-92semr14/src/3rdparty -I/opt/conda/include/python3.10 -c -c /tmp/pip-req-build-92semr14/src/interpolation_gpu.cu -o /tmp/pip-req-build-92semr14/build/temp.linux-x86_64-cpython-310/tmp/pip-req-build-92semr14/src/interpolation_gpu.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'"'"'' --expt-relaxed-constexpr --expt-extended-lambda -O3 -Xcompiler=-fno-gnu-unique -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 Killed

can you provide a image?maybe something wrong with this docker file? thank you for your looking,hoping for you help.

shaonianG commented 3 weeks ago

export MAX_JOBS=4 can solve this problem