torch-points3d / torch-points-kernels

Pytorch kernels for spatial operations on point clouds
MIT License
96 stars 25 forks source link

Could not build wheels for torch-points-kernels which use PEP 517 and cannot be installed directly #61

Closed ooodragon94 closed 2 years ago

ooodragon94 commented 3 years ago

get the following error

ERROR: Command errored out with exit status 1:
   command: /home/usr/anaconda3/envs/pointcloud/bin/python /home/usr/anaconda3/envs/pointcloud/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpihwbdbxi
       cwd: /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095
  Complete output (132 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.9
  creating build/lib.linux-x86_64-3.9/torch_points_kernels
  copying torch_points_kernels/__init__.py -> build/lib.linux-x86_64-3.9/torch_points_kernels
  copying torch_points_kernels/torchpoints.py -> build/lib.linux-x86_64-3.9/torch_points_kernels
  copying torch_points_kernels/knn.py -> build/lib.linux-x86_64-3.9/torch_points_kernels
  running build_ext
  building 'torch_points_kernels.points_cuda' extension
  creating /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9
  creating /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda
  creating /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src
  Emitting ninja build file /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/build.ninja...
  Compiling objects...
  Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
  [1/7] c++ -MMD -MF /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/ball_query.o.d -pthread -B /home/usr/anaconda3/envs/pointcloud/compiler_compat -Wl,--sysroot=/ -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/ball_query.cpp -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/ball_query.o -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  FAILED: /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/ball_query.o
  c++ -MMD -MF /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/ball_query.o.d -pthread -B /home/usr/anaconda3/envs/pointcloud/compiler_compat -Wl,--sysroot=/ -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/ball_query.cpp -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/ball_query.o -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/ball_query.cpp:1:10: fatal error: ball_query.h: No such file or directory
   #include "ball_query.h"
            ^~~~~~~~~~~~~~
  compilation terminated.
  [2/7] c++ -MMD -MF /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/sampling.o.d -pthread -B /home/usr/anaconda3/envs/pointcloud/compiler_compat -Wl,--sysroot=/ -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/sampling.cpp -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/sampling.o -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  FAILED: /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/sampling.o
  c++ -MMD -MF /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/sampling.o.d -pthread -B /home/usr/anaconda3/envs/pointcloud/compiler_compat -Wl,--sysroot=/ -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/sampling.cpp -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/sampling.o -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/sampling.cpp:1:10: fatal error: sampling.h: No such file or directory
   #include "sampling.h"
            ^~~~~~~~~~~~
  compilation terminated.
  [3/7] c++ -MMD -MF /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/interpolate.o.d -pthread -B /home/usr/anaconda3/envs/pointcloud/compiler_compat -Wl,--sysroot=/ -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/interpolate.cpp -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/interpolate.o -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  FAILED: /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/interpolate.o
  c++ -MMD -MF /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/interpolate.o.d -pthread -B /home/usr/anaconda3/envs/pointcloud/compiler_compat -Wl,--sysroot=/ -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/interpolate.cpp -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/interpolate.o -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/interpolate.cpp:1:10: fatal error: interpolate.h: No such file or directory
   #include "interpolate.h"
            ^~~~~~~~~~~~~~~
  compilation terminated.
  [4/7] c++ -MMD -MF /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/bindings.o.d -pthread -B /home/usr/anaconda3/envs/pointcloud/compiler_compat -Wl,--sysroot=/ -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/bindings.cpp -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/bindings.o -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  FAILED: /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/bindings.o
  c++ -MMD -MF /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/bindings.o.d -pthread -B /home/usr/anaconda3/envs/pointcloud/compiler_compat -Wl,--sysroot=/ -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -O2 -isystem /home/usr/anaconda3/envs/pointcloud/include -fPIC -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/bindings.cpp -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/bindings.o -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
  /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/bindings.cpp:1:10: fatal error: ball_query.h: No such file or directory
   #include "ball_query.h"
            ^~~~~~~~~~~~~~
  compilation terminated.
  [5/7] /usr/local/cuda/bin/nvcc -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/sampling_gpu.cu -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/sampling_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 -gencode=arch=compute_61,code=sm_61
  FAILED: /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/sampling_gpu.o
  /usr/local/cuda/bin/nvcc -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/sampling_gpu.cu -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/sampling_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 -gencode=arch=compute_61,code=sm_61
  /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/sampling_gpu.cu:4:10: fatal error: cuda_utils.h: No such file or directory
   #include "cuda_utils.h"
            ^~~~~~~~~~~~~~
  compilation terminated.
  [6/7] /usr/local/cuda/bin/nvcc -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/interpolate_gpu.cu -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/interpolate_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 -gencode=arch=compute_61,code=sm_61
  FAILED: /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/interpolate_gpu.o
  /usr/local/cuda/bin/nvcc -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/interpolate_gpu.cu -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/interpolate_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 -gencode=arch=compute_61,code=sm_61
  /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/interpolate_gpu.cu:5:10: fatal error: cuda_utils.h: No such file or directory
   #include "cuda_utils.h"
            ^~~~~~~~~~~~~~
  compilation terminated.
  [7/7] /usr/local/cuda/bin/nvcc -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/ball_query_gpu.cu -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/ball_query_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 -gencode=arch=compute_61,code=sm_61
  FAILED: /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/ball_query_gpu.o
  /usr/local/cuda/bin/nvcc -Icuda/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/TH -I/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/usr/anaconda3/envs/pointcloud/include/python3.9 -c -c /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/ball_query_gpu.cu -o /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/build/temp.linux-x86_64-3.9/cuda/src/ball_query_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -DVERSION_GE_1_3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=points_cuda -DTORCH_EXTENSION_NAME=points_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 -gencode=arch=compute_61,code=sm_61
  /tmp/pip-install-tz64jo92/torch-points-kernels_8b6e97835125433ba4a7d359df438095/cuda/src/ball_query_gpu.cu:5:10: fatal error: cuda_utils.h: No such file or directory
   #include "cuda_utils.h"
            ^~~~~~~~~~~~~~
  compilation terminated.
  ninja: build stopped: subcommand failed.
  Traceback (most recent call last):
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1533, in _run_ninja_build
      subprocess.run(
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/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 "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
      main()
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 204, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 216, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 202, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 145, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 52, in <module>
      setup(
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run
      _build_ext.run(self)
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/command/build_ext.py", line 340, in run
      self.build_extensions()
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
      build_ext.build_extensions(self)
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/command/build_ext.py", line 449, in build_extensions
      self._build_extensions_serial()
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/command/build_ext.py", line 474, in _build_extensions_serial
      self.build_extension(ext)
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
      _build_ext.build_extension(self, ext)
    File "/home/usr/anaconda3/envs/pointcloud/lib/python3.9/distutils/command/build_ext.py", line 529, in build_extension
      objects = self.compiler.compile(sources,
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 491, in unix_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1250, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "/tmp/pip-build-env-krppne2_/overlay/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  ----------------------------------------
  ERROR: Failed building wheel for torch-points-kernels
Failed to build torch-points-kernels
ERROR: Could not build wheels for torch-points-kernels which use PEP 517 and cannot be installed directly

any help will be appreciated... :cry:

nicolas-chaulet commented 3 years ago

It's very strange, it says that it does not find the files... Not sure I know why

paulwingert865 commented 3 years ago

ERROR: Failed building wheel for torch-points-kernels.. I am discovering the same Problem here. Are you running on Win10?

CCInc commented 2 years ago

Closing for now, feel free to open a new issue.