Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

python build_pkg.py failed #19

Open
gemyerst opened this issue Feb 8, 2023 · 17 comments
Open

python build_pkg.py failed #19

gemyerst opened this issue Feb 8, 2023 · 17 comments

Comments

@gemyerst
Copy link

gemyerst commented Feb 8, 2023

Hi, I've been trying to run the set-up steps to do some training locally, but I'm stuck on the last optional step, and even with this the demo or training doesn't run. I ran the set up steps on WSL Ubuntu, but when I run python build_pkg.py it fails after the the line below. I also tried running python demo.py which also failed. Woud you happen you have a docker image for inference, it would be super helpful! I tried installing CUDA 11.6 locally as well to no avail. Any help would be much appreciated!

Detected CUDA files, patching ldflags
Emitting ninja build file /home/gina/.cache/torch_extensions/py38_cu111/_pvcnn_backend/build.ninja...
Building extension module _pvcnn_backend...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/14] /usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/grouping/grouping.cu -o grouping.cuda.o 
FAILED: grouping.cuda.o 
/usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/grouping/grouping.cu -o grouping.cuda.o 
Killed
[2/14] c++ -MMD -MF trilinear_devox.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/interpolate/trilinear_devox.cpp -o trilinear_devox.o   
FAILED: trilinear_devox.o
c++ -MMD -MF trilinear_devox.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/interpolate/trilinear_devox.cpp -o trilinear_devox.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[3/14] c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/bindings.cpp -o bindings.o
FAILED: bindings.o
c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/bindings.cpp -o bindings.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[4/14] /usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/interpolate/neighbor_interpolate.cu -o neighbor_interpolate.cuda.o
FAILED: neighbor_interpolate.cuda.o
/usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/interpolate/neighbor_interpolate.cu -o neighbor_interpolate.cuda.o
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                                                                                 ^
/usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                                                                                  ^
/usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
[5/14] /usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/voxelization/vox.cu -o vox.cuda.o
FAILED: vox.cuda.o
/usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/voxelization/vox.cu -o vox.cuda.o
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                                                                                 ^
/usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                                                                                  ^
/usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
[6/14] /usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/ball_query/ball_query.cu -o ball_query.cuda.o   
FAILED: ball_query.cuda.o
/usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/ball_query/ball_query.cu -o ball_query.cuda.o
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                                                                                 ^
/usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                                                                                  ^
/usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
[7/14] /usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/sampling/sampling.cu -o sampling.cuda.o
FAILED: sampling.cuda.o
/usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/sampling/sampling.cu -o sampling.cuda.o
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                                                                                 ^
/usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                                                                                  ^
/usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
[8/14] c++ -MMD -MF vox.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/voxelization/vox.cpp -o vox.o
[9/14] /usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/interpolate/trilinear_devox.cu -o trilinear_devox.cuda.o
FAILED: trilinear_devox.cuda.o
/usr/bin/nvcc  -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -std=c++14 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/interpolate/trilinear_devox.cu -o trilinear_devox.cuda.o
/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                                                                                                                                 ^
/usr/include/c++/11/bits/std_function.h:435:145: note:         ‘_ArgTypes’
/usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’:
  530 |         operator=(_Functor&& __f)
      |                                                                                                                                                  ^
/usr/include/c++/11/bits/std_function.h:530:146: note:         ‘_ArgTypes’
[10/14] c++ -MMD -MF ball_query.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/ball_query/ball_query.cpp -o ball_query.o
[11/14] c++ -MMD -MF neighbor_interpolate.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/interpolate/neighbor_interpolate.cpp -o neighbor_interpolate.o
[12/14] c++ -MMD -MF grouping.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/grouping/grouping.cpp -o grouping.o
[13/14] c++ -MMD -MF sampling.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/TH -isystem /home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/include/THC -isystem /home/gina/miniconda3/envs/lion_env/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c /mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/src/sampling/sampling.cpp -o sampling.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1717, in _run_ninja_build
    subprocess.run(
  File "/home/gina/miniconda3/envs/lion_env/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 "build_pkg.py", line 2, in <module>
    from models import pvcnn2
  File "/mnt/c/Users/G/GitHub/LION/models/pvcnn2.py", line 21, in <module>
    import third_party.pvcnn.functional as F
  File "/mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/__init__.py", line 1, in <module>
    from third_party.pvcnn.functional.ball_query import ball_query
  File "/mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/ball_query.py", line 3, in <module>
    from third_party.pvcnn.functional.backend import _backend
  File "/mnt/c/Users/G/GitHub/LION/third_party/pvcnn/functional/backend.py", line 8, in <module>
    _backend = load(name='_pvcnn_backend',
  File "/home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1124, in load
    return _jit_compile(
  File "/home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1337, in _jit_compile
    _write_ninja_file_and_build_library(
  File "/home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1449, in _write_ninja_file_and_build_library
    _run_ninja_build(
  File "/home/gina/miniconda3/envs/lion_env/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1733, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error building extension '_pvcnn_backend'
@kakou34
Copy link

kakou34 commented Feb 14, 2023

I am facing the same problem, I tried with Ubuntu, Python and Pytorch/Pytorch base images for Docker and they all seem to have the same issue. Were you able to solve it ?

@ZENGXH
Copy link
Collaborator

ZENGXH commented Feb 20, 2023

@gemyerst @kakou34 I just upload the Dockerfile, hope this help!

@kakou34
Copy link

kakou34 commented Feb 20, 2023

Thank you very much, that worked. But when I try to train or run build_pkg.py it gets stuck when building PyTorchEMD

`[3/3] c++ emd.o emd_kernel.cuda.o -shared -L/opt/conda/lib/python3.8/site-packages/torch/lib -lc10 -lc10_cuda -ltorch_cpu -ltorch_cuda_cu -ltorch_cuda_cpp -ltorch -ltorch_python -L/usr/local/cuda/lib64 -lcudart -o emd_ext.so

Loading extension module emd_ext...

load emd_ext time: 47.402s`

How long should I wait after this part ? does it usually take long?

thank you in advance!

@ZENGXH
Copy link
Collaborator

ZENGXH commented Feb 20, 2023

From the log it seems it finished the building already.

The building time varies (on my side it takes ~0.1s to build).
Since the building only happen at the first time you load the module this may be acceptable.

If you dont need to compute the evaluation metric and want to skip build EMD, one dirty solution is not using EMD at all and turn it off by 1) comment out this line and this line and 2) overwrite this function to make it return any constant.

@JohanYe
Copy link

JohanYe commented Mar 27, 2023

Thank you very much, that worked. But when I try to train or run build_pkg.py it gets stuck when building PyTorchEMD

`[3/3] c++ emd.o emd_kernel.cuda.o -shared -L/opt/conda/lib/python3.8/site-packages/torch/lib -lc10 -lc10_cuda -ltorch_cpu -ltorch_cuda_cu -ltorch_cuda_cpp -ltorch -ltorch_python -L/usr/local/cuda/lib64 -lcudart -o emd_ext.so

Loading extension module emd_ext...

load emd_ext time: 47.402s`

How long should I wait after this part ? does it usually take long?

thank you in advance!

@ZENGXH I'm running into this exact issue that my build/training gets stuck after it has loaded emd. It says it loaded emd_ext after around ~0.3 seconds. Afterwards it continues to hang without any response.

@ZENGXH
Copy link
Collaborator

ZENGXH commented Mar 27, 2023

@JohanYe if you control+c to kill the program, can you see where the program is hanging? For example, from the killed message in the code?

@ZENGXH
Copy link
Collaborator

ZENGXH commented Apr 3, 2023

For the build_pkg.py code, the last output from it is load emd_ext time: xxx s, so if you see this line it might indicate the pkg building is finished. You can try run the training code and see if it works. @JohanYe

@JohanYe
Copy link

JohanYe commented Apr 12, 2023

@JohanYe if you control+c to kill the program, can you see where the program is hanging? For example, from the killed message in the code?

load emd_ext time: 11.476s ^CTraceback (most recent call last): File "build_pkg.py", line 3, in <module> from utils import eval_helper File "/nfshome/joye/LION/utils/eval_helper.py", line 24, in <module> from utils.evaluation_metrics_fast import compute_all_metrics, \ File "/nfshome/joye/LION/utils/evaluation_metrics_fast.py", line 26, in <module> from third_party.ChamferDistancePytorch.chamfer3D.dist_chamfer_3D import chamfer_3DDist_nograd, chamfer_3DDist File "/nfshome/joye/LION/third_party/ChamferDistancePytorch/chamfer3D/dist_chamfer_3D.py", line 12, in <module> chamfer_3D = load(name="chamfer_3D", File "/nfshome/joye/.conda/envs/lion_env2/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1124, in load return _jit_compile( File "/nfshome/joye/.conda/envs/lion_env2/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1351, in _jit_compile baton.wait() File "/nfshome/joye/.conda/envs/lion_env2/lib/python3.8/site-packages/torch/utils/file_baton.py", line 42, in wait time.sleep(self.wait_seconds) KeyboardInterrupt

This is the message from the keyboard interrupt.
Previously, it would work if i followed the environment instructions and had a fresh install. It would only for some reason break after completing a training.

Now i am unable to get it to run at all. This occurs both during build_pkg.py and training. So it prevents me running any code @ZENGXH
Sorry about the code formatting, for some reason it won't newline

@JohanYe
Copy link

JohanYe commented Apr 12, 2023

With the hints from the error i was able to track down the issue. It seems to be solved by deleting the folder: "LION/third_party/ChamferDistancePytorch/tmp". Similarly to this issue: zhou13/neurvps#1 (comment)

Note that the github issue contains help to find the exact path to the cache folder that needs be deleted in case your path may differ.

@OswaldoBornemann
Copy link

The same problems.

@XinShuo-ph
Copy link

Same problem, both in conda environment and in docker container.

`# python build_pkg.py
Using /root/.cache/torch_extensions as PyTorch extensions root...
Detected CUDA files, patching ldflags
Emitting ninja build file /root/.cache/torch_extensions/_pvcnn_backend/build.ninja...
Building extension module _pvcnn_backend...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/14] c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/bindings.cpp' -o bindings.o
FAILED: bindings.o
c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/bindings.cpp' -o bindings.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[2/14] c++ -MMD -MF grouping.o.d -DTORCH_EXTENSION_NAME=_pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/grouping/grouping.cpp' -o grouping.o
FAILED: grouping.o
c++ -MMD -MF grouping.o.d -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/grouping/grouping.cpp' -o grouping.o
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[3/14] c++ -MMD -MF trilinear_devox.o.d -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/interpolate/trilinear_devox.cpp' -o trilinear_devox.o
[4/14] c++ -MMD -MF vox.o.d -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/voxelization/vox.cpp' -o vox.o
[5/14] c++ -MMD -MF sampling.o.d -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/sampling/sampling.cpp' -o sampling.o
[6/14] c++ -MMD -MF ball_query.o.d -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/ball_query/ball_query.cpp' -o ball_query.o
[7/14] c++ -MMD -MF neighbor_interpolate.o.d -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++17 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/interpolate/neighbor_interpolate.cpp' -o neighbor_interpolate.o
[8/14] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -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 --compiler-options '-fPIC' -std=c++14 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/interpolate/trilinear_devox.cu' -o trilinear_devox.cuda.o
[9/14] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -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 --compiler-options '-fPIC' -std=c++14 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/voxelization/vox.cu' -o vox.cuda.o
[10/14] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -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 --compiler-options '-fPIC' -std=c++14 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/interpolate/neighbor_interpolate.cu' -o neighbor_interpolate.cuda.o
[11/14] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -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 --compiler-options '-fPIC' -std=c++14 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/ball_query/ball_query.cu' -o ball_query.cuda.o
[12/14] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -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 --compiler-options '-fPIC' -std=c++14 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/sampling/sampling.cu' -o sampling.cuda.o
[13/14] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=pvcnn_backend -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/TH -isystem /opt/conda/lib/python3.8/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /opt/conda/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -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 --compiler-options '-fPIC' -std=c++14 -c '/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/src/grouping/grouping.cu' -o grouping.cuda.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1666, in _run_ninja_build
subprocess.run(
File "/opt/conda/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 "build_pkg.py", line 2, in
from models import pvcnn2
File "/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/models/pvcnn2.py", line 21, in
import third_party.pvcnn.functional as F
File "/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/init.py", line 1, in
from third_party.pvcnn.functional.ball_query import ball_query
File "/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/ball_query.py", line 3, in
from third_party.pvcnn.functional.backend import _backend
File "/mnt/c/Users/13515/OneDrive - Stanford/cosmology/ML/LION/third_party/pvcnn/functional/backend.py", line 8, in
_backend = load(name='_pvcnn_backend',
File "/opt/conda/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1080, in load
return _jit_compile(
File "/opt/conda/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1293, in _jit_compile
_write_ninja_file_and_build_library(
File "/opt/conda/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1405, in _write_ninja_file_and_build_library
_run_ninja_build(
File "/opt/conda/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1682, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension '_pvcnn_backend'`

@ZENGXH
Copy link
Collaborator

ZENGXH commented Aug 24, 2023

sorry for the building error you meet. I also dont have very clear idea what's going on :(

could you try to see if you can

if the pvcnn repo is run-able, it's likely the pvcnn_backend can be built

@noahcao
Copy link

noahcao commented Dec 30, 2023

This problem is typically caused by a mismatch of your cuda version and the torch version. You can check them by

nvcc --version

and

conda list | grep torch

I think that CUDA 11.6 is required by this repo's code.

@iwanttoeattangyuan
Copy link

the problem is still exist, and can i use the demo.py normally without any gpu framework?

@ZENGXH
Copy link
Collaborator

ZENGXH commented Jan 11, 2024

I didn't try cpu only before. May be hard to get it work without gpu

@Amarja20
Copy link

Can i execute this code on Windows?

@ZENGXH
Copy link
Collaborator

ZENGXH commented Aug 20, 2024

Can i execute this code on Windows?

I didn't test it on Windows. If you could install the package it's possible

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

No branches or pull requests

9 participants