fatal error: ball_query.h: No such file or directory
Closed this issue · 1 comments
jiapei100 commented
Hi,
I was trying to build pointnet2 under subfolder pointnet2_pyt
, with command pythong setup.py build
, actually I took a look at setup.py, and it seems to have included the correct directory, but .... a relative one, NOT a absolute directory. And ninja failed to build it as:
➜ pointnet2_pyt git:(master) ✗ python setup.py bdist_wheel --universal
running bdist_wheel
running build
running build_py
running build_ext
building 'pointnet2._ext' extension
Emitting ninja build file ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/9] c++ -MMD -MF ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/ball_query.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/ball_query.cpp -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/ball_query.o -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
FAILED: ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/ball_query.o
c++ -MMD -MF ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/ball_query.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/ball_query.cpp -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/ball_query.o -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/ball_query.cpp:1:10: fatal error: ball_query.h: No such file or directory
1 | #include "ball_query.h"
| ^~~~~~~~~~~~~~
compilation terminated.
[2/9] c++ -MMD -MF ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/interpolate.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/interpolate.cpp -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/interpolate.o -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
FAILED: ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/interpolate.o
c++ -MMD -MF ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/interpolate.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/interpolate.cpp -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/interpolate.o -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/interpolate.cpp:1:10: fatal error: interpolate.h: No such file or directory
1 | #include "interpolate.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
[3/9] c++ -MMD -MF ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/bindings.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/bindings.cpp -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/bindings.o -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
FAILED: ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/bindings.o
c++ -MMD -MF ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/bindings.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/bindings.cpp -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/bindings.o -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/bindings.cpp:1:10: fatal error: ball_query.h: No such file or directory
1 | #include "ball_query.h"
| ^~~~~~~~~~~~~~
compilation terminated.
[4/9] c++ -MMD -MF ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/group_points.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/group_points.cpp -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/group_points.o -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
FAILED: ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/group_points.o
c++ -MMD -MF ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/group_points.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/group_points.cpp -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/group_points.o -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/group_points.cpp:1:10: fatal error: group_points.h: No such file or directory
1 | #include "group_points.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
[5/9] c++ -MMD -MF ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/sampling.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/sampling.cpp -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/sampling.o -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
FAILED: ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/sampling.o
c++ -MMD -MF ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/sampling.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/sampling.cpp -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/sampling.o -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/sampling.cpp:1:10: fatal error: sampling.h: No such file or directory
1 | #include "sampling.h"
| ^~~~~~~~~~~~
compilation terminated.
[6/9] /usr/local/cuda/bin/nvcc -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/sampling_gpu.cu -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/sampling_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'"'"'' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/sampling_gpu.o
/usr/local/cuda/bin/nvcc -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/sampling_gpu.cu -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/sampling_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'"'"'' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_75,code=sm_75 -std=c++14
....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/sampling_gpu.cu:4:10: fatal error: cuda_utils.h: No such file or directory
4 | #include "cuda_utils.h"
| ^~~~~~~~~~~~~~
compilation terminated.
[7/9] /usr/local/cuda/bin/nvcc -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/group_points_gpu.cu -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/group_points_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'"'"'' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/group_points_gpu.o
/usr/local/cuda/bin/nvcc -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/group_points_gpu.cu -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/group_points_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'"'"'' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_75,code=sm_75 -std=c++14
....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/group_points_gpu.cu:4:10: fatal error: cuda_utils.h: No such file or directory
4 | #include "cuda_utils.h"
| ^~~~~~~~~~~~~~
compilation terminated.
[8/9] /usr/local/cuda/bin/nvcc -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/interpolate_gpu.cu -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/interpolate_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'"'"'' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/interpolate_gpu.o
/usr/local/cuda/bin/nvcc -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/interpolate_gpu.cu -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/interpolate_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'"'"'' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_75,code=sm_75 -std=c++14
....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/interpolate_gpu.cu:5:10: fatal error: cuda_utils.h: No such file or directory
5 | #include "cuda_utils.h"
| ^~~~~~~~~~~~~~
compilation terminated.
[9/9] /usr/local/cuda/bin/nvcc -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/ball_query_gpu.cu -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/ball_query_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'"'"'' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_75,code=sm_75 -std=c++14
FAILED: ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/ball_query_gpu.o
/usr/local/cuda/bin/nvcc -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/ball_query_gpu.cu -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310/pointnet2/_ext-src/src/ball_query_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'"'"'' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -gencode=arch=compute_75,code=sm_75 -std=c++14
....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/ball_query_gpu.cu:5:10: fatal error: cuda_utils.h: No such file or directory
5 | #include "cuda_utils.h"
| ^~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "~/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1865, in _run_ninja_build
subprocess.run(
File "/usr/lib/python3.10/subprocess.py", line 524, 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 "....../SimpleView/pointnet2_pyt/setup.py", line 22, in <module>
setup(
File "~/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 177, in setup
return run_commands(dist)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
dist.run_commands()
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "~/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "~/.local/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "~/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "~/.local/lib/python3.10/site-packages/setuptools/command/build.py", line 24, in run
super().run()
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "~/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "~/.local/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "~/.local/lib/python3.10/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "~/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 778, in build_extensions
build_ext.build_extensions(self)
File "~/.local/lib/python3.10/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 459, in build_extensions
self._build_extensions_serial()
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 485, in _build_extensions_serial
self.build_extension(ext)
File "~/.local/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 540, in build_extension
objects = self.compiler.compile(
File "~/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 593, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "~/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1544, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "~/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1881, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
➜ pointnet2_pyt git:(master) ✗
After I modified to an absolute directory in setup.py,
_ext_src_root = "...../SimpleView/pointnet2_pyt/pointnet2/_ext-src"
I then failed building it as:
[9/9] c++ -MMD -MF ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/bindings.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I~/.local/lib/python3.10/site-packages/torch/include -I~/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I~/.local/lib/python3.10/site-packages/torch/include/TH -I~/.local/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.10 -c -c ....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/bindings.cpp -o ....../SimpleView/pointnet2_pyt/build/temp.linux-x86_64-cpython-310....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/src/bindings.o -O2 -I....../SimpleView/pointnet2_pyt/pointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1016"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "~/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1865, in _run_ninja_build
subprocess.run(
File "/usr/lib/python3.10/subprocess.py", line 524, 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 "....../SimpleView/pointnet2_pyt/setup.py", line 22, in <module>
setup(
File "~/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 177, in setup
return run_commands(dist)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
dist.run_commands()
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "~/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "~/.local/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "~/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "~/.local/lib/python3.10/site-packages/setuptools/command/build.py", line 24, in run
super().run()
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "~/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1229, in run_command
super().run_command(command)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "~/.local/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "~/.local/lib/python3.10/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "~/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 778, in build_extensions
build_ext.build_extensions(self)
File "~/.local/lib/python3.10/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 459, in build_extensions
self._build_extensions_serial()
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 485, in _build_extensions_serial
self.build_extension(ext)
File "~/.local/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "~/.local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 540, in build_extension
objects = self.compiler.compile(
File "~/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 593, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "~/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1544, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "~/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1881, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
➜ pointnet2_pyt git:(master) ✗
So, any suggestions???
imankgoyal commented
Hi,
pointnet2_pyt comes from an earlier version of the following repository: https://github.com/erikwijmans/Pointnet2_PyTorch
For installing within the SimpleView repository, I would recommend closely following the instructions on our repository.