erikwijmans / Pointnet2_PyTorch

PyTorch implementation of Pointnet2/Pointnet++
The Unlicense
1.49k stars 338 forks source link

Failed to build pointnet2-ops #139

Open liangxuejingjing opened 3 years ago

liangxuejingjing commented 3 years ago

Hi, when I run 'pip install -r requirements.txt',but got many mistakes:Failed to build pointnet2-ops I used the ubuntu20.04, cuda driver 11.1, python3.6, pytorch1.7.1, gcc 9.3.0, please tell me how to deal with...thx

ERROR: Command errored out with exit status 1: command: /home/Jing/anaconda3/envs/SAPIEN/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-5jkb37_5/setup.py'"'"'; file='"'"'/tmp/pip-req-build-5jkb37_5/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-dm7mj6u4/install-record.txt --single-version-externally-managed --compile --install-headers /home/Jing/anaconda3/envs/SAPIEN/include/python3.6m/pointnet2-ops cwd: /tmp/pip-req-build-5jkb37_5/ Complete output (215 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/pointnet2_ops copying pointnet2_ops/_version.py -> build/lib.linux-x86_64-3.6/pointnet2_ops copying pointnet2_ops/pointnet2_utils.py -> build/lib.linux-x86_64-3.6/pointnet2_ops copying pointnet2_ops/init.py -> build/lib.linux-x86_64-3.6/pointnet2_ops copying pointnet2_ops/pointnet2_modules.py -> build/lib.linux-x86_64-3.6/pointnet2_ops running egg_info writing pointnet2_ops.egg-info/PKG-INFO writing dependency_links to pointnet2_ops.egg-info/dependency_links.txt writing requirements to pointnet2_ops.egg-info/requires.txt writing top-level names to pointnet2_ops.egg-info/top_level.txt reading manifest file 'pointnet2_ops.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pointnet2_ops.egg-info/SOURCES.txt' creating build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src creating build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/ball_query.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/cuda_utils.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/group_points.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/interpolate.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/sampling.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include copying pointnet2_ops/_ext-src/include/utils.h -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/include creating build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/ball_query.cpp -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/ball_query_gpu.cu -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/bindings.cpp -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/group_points.cpp -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/group_points_gpu.cu -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/interpolate.cpp -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/interpolate_gpu.cu -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/sampling.cpp -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src copying pointnet2_ops/_ext-src/src/sampling_gpu.cu -> build/lib.linux-x86_64-3.6/pointnet2_ops/_ext-src/src running build_ext building 'pointnet2_ops.ext' extension creating /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6 creating /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops creating /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src creating /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src Emitting ninja build file /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/9] :/usr/local/cuda-11.1/bin/nvcc -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/src/sampling_gpu.cu -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/sampling_gpu.o -DCUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -Xfatbin -compress-all -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_37,code=compute_37 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_70,code=sm_70 -std=c++14 FAILED: /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/sampling_gpu.o :/usr/local/cuda-11.1/bin/nvcc -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/src/sampling_gpu.cu -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/sampling_gpu.o -DCUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -Xfatbin -compress-all -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_37,code=compute_37 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_70,code=sm_70 -std=c++14 /bin/sh: 1: :/usr/local/cuda-11.1/bin/nvcc: not found [2/9] :/usr/local/cuda-11.1/bin/nvcc -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/src/interpolate_gpu.cu -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/interpolate_gpu.o -DCUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -Xfatbin -compress-all -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_37,code=compute_37 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_70,code=sm_70 -std=c++14 FAILED: /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/interpolate_gpu.o :/usr/local/cuda-11.1/bin/nvcc -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/src/interpolate_gpu.cu -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/interpolate_gpu.o -DCUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -Xfatbin -compress-all -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_37,code=compute_37 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_70,code=sm_70 -std=c++14 /bin/sh: 1: :/usr/local/cuda-11.1/bin/nvcc: not found [3/9] :/usr/local/cuda-11.1/bin/nvcc -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/src/ball_query_gpu.cu -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/ball_query_gpu.o -DCUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -Xfatbin -compress-all -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_37,code=compute_37 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_70,code=sm_70 -std=c++14 FAILED: /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/ball_query_gpu.o :/usr/local/cuda-11.1/bin/nvcc -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/src/ball_query_gpu.cu -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/ball_query_gpu.o -DCUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -Xfatbin -compress-all -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_37,code=compute_37 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_70,code=sm_70 -std=c++14 /bin/sh: 1: :/usr/local/cuda-11.1/bin/nvcc: not found [4/9] :/usr/local/cuda-11.1/bin/nvcc -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/src/group_points_gpu.cu -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/group_points_gpu.o -DCUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -Xfatbin -compress-all -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="cxxabi1011"' -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_37,code=compute_37 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_70,code=sm_70 -std=c++14 FAILED: /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/group_points_gpu.o :/usr/local/cuda-11.1/bin/nvcc -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/ext-src/src/group_points_gpu.cu -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/ext-src/src/group_points_gpu.o -DCUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O3 -Xfatbin -compress-all -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_37,code=compute_37 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_70,code=sm_70 -std=c++14 /bin/sh: 1: :/usr/local/cuda-11.1/bin/nvcc: not found [5/9] c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/group_points.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/group_points.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/group_points.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/group_points.o c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/group_points.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/group_points.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/group_points.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/group_points.h:2, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/group_points.cpp:1: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84 #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/utils.h:2, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/group_points.cpp:2: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file or directory 5 #include ^~~~~~~~ compilation terminated. [6/9] c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/interpolate.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/interpolate.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/interpolate.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/interpolate.o c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/interpolate.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/interpolate.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/interpolate.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/interpolate.h:3, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/interpolate.cpp:1: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84 #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/utils.h:2, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/interpolate.cpp:2: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file or directory 5 #include ^~~~~~~~ compilation terminated. [7/9] c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/ball_query.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/ball_query.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/ball_query.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/ball_query.o c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/ball_query.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/ball_query.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/ball_query.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/ball_query.h:2, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/ball_query.cpp:1: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84 #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/utils.h:2, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/ball_query.cpp:2: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file or directory 5 #include ^~~~~~~~ compilation terminated. [8/9] c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/sampling.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/sampling.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/sampling.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/sampling.o c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/sampling.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/sampling.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/sampling.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/sampling.h:2, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/sampling.cpp:1: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84 #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/utils.h:2, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/sampling.cpp:2: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: No such file or directory 5 #include ^~~~~~~~ compilation terminated. [9/9] c++ -MMD -MF /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/bindings.o.d -pthread -B /home/Jing/anaconda3/envs/SAPIEN/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/TH -I/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/home/Jing/anaconda3/envs/SAPIEN/include/python3.6m -c -c /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/bindings.cpp -o /tmp/pip-req-build-5jkb37_5/build/temp.linux-x86_64-3.6/pointnet2_ops/_ext-src/src/bindings.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/include/ball_query.h:2, from /tmp/pip-req-build-5jkb37_5/pointnet2_ops/_ext-src/src/bindings.cpp:1: /home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] 84 #pragma omp parallel for if ((end - begin) >= grain_size)

ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1539, in _run_ninja_build env=env) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "", line 1, in File "/tmp/pip-req-build-5jkb37_5/setup.py", line 38, in include_package_data=True, File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(**attrs) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/install.py", line 545, in run self.run_command('build') File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 79, in run _build_ext.run(self) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions build_ext.build_extensions(self) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 196, in build_extension _build_ext.build_extension(self, ext) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension depends=ext.depends) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 500, in unix_wrap_ninja_compile with_cuda=with_cuda) File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1255, in _write_ninja_file_and_compile_objects error_prefix='Error compiling objects for extension') File "/home/Jing/anaconda3/envs/SAPIEN/lib/python3.6/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: Command errored out with exit status 1: /home/Jing/anaconda3/envs/SAPIEN/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-5jkb37_5/setup.py'"'"'; file='"'"'/tmp/pip-req-build-5jkb37_5/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-dm7mj6u4/install-record.txt --single-version-externally-managed --compile --install-headers /home/Jing/anaconda3/envs/SAPIEN/include/python3.6m/pointnet2-ops Check the logs for full command output.

CaineGu commented 3 years ago

have you ever solve this problem?

CaineGu commented 3 years ago

Do you have any idea about how to fix this bug? I have try so many method including reinstalling some package, reinstalling cuda 10.2 and repeating compiling, but finally failed. if you solve it plz inform me . Thx a lot

liangxuejingjing commented 3 years ago

Do you have any idea about how to fix this bug? I have try so many method including reinstalling some package, reinstalling cuda 10.2 and repeating compiling, but finally failed. if you solve it plz inform me . Thx a lot

yes!!!

  1. sudo ln -s /usr/local/cuda-11.1/targets/x86_64-linux/include/cuda_runtime_api.h /usr/include/cuda_runtime_api.h
  2. https://blog.csdn.net/qq_39031960/article/details/106211695

maybe help you

nasheizhidaoei commented 11 months ago

Processing d:\pythonproject1\pointnet2_pytorch_master\pointnet2_ops_lib Preparing metadata (setup.py) ... done Requirement already satisfied: torch>=1.4 in d:\anaconda\envs\dxtorch1\lib\site-packages (from pointnet2-ops==3.0.0) (1.12.1)
Requirement already satisfied: typing_extensions in d:\anaconda\envs\dxtorch1\lib\site-packages (from torch>=1.4->pointnet2-ops==3.0.0) (4.7.1) Building wheels for collected packages: pointnet2-ops Building wheel for pointnet2-ops (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1
╰─> [80 lines of output]
running bdist_wheel
running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_ops\pointnet2_modules.py -> build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_ops\pointnet2_utils.py -> build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_ops_version.py -> build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_ops__init.py -> build\lib.win-amd64-cpython-38\pointnet2_ops running egg_info writing pointnet2_ops.egg-info\PKG-INFO writing dependency_links to pointnet2_ops.egg-info\dependency_links.txt writing requirements to pointnet2_ops.egg-info\requires.txt writing top-level names to pointnet2_ops.egg-info\top_level.txt reading manifest file 'pointnet2_ops.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'pointnet2_ops_ext-src' writing manifest file 'pointnet2_ops.egg-info\SOURCES.txt' running build_ext building 'pointnet2_ops._ext' extension Emitting ninja build file D:\pythonProject1\Pointnet2_PyTorch_master\pointnet2_ops_lib\build\temp.win-amd64-cpython-38\Release\build.ninja... Traceback (most recent call last): File "", line 2, in File "", line 34, in File "D:\pythonProject1\Pointnet2_PyTorch_master\pointnet2_ops_lib\setup.py", line 20, in setup( File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\init__.py", line 103, in setup return distutils.core.setup(**attrs) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\core.py", line 185, in setup return run_commands(dist) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands dist.run_commands() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands self.run_command(cmd) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\dist.py", line 989, in run_command super().run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\anaconda\envs\dxtorch1\lib\site-packages\wheel\bdist_wheel.py", line 325, in run self.run_command("build") File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\dist.py", line 989, in run_command super().run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build.py", line 131, in run self.run_command(cmd_name) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\dist.py", line 989, in run_command super().run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\command\build_ext.py", line 88, in run _build_ext.run(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 345, in run self.build_extensions() File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 765, in build_extensions build_ext.build_extensions(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 467, in build_extensions self._build_extensions_serial() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 493, in _build_extensions_serial self.build_extension(ext) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\command\build_ext.py", line 249, in build_extension _build_ext.build_extension(self, ext) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 548, in build_extension objects = self.compiler.compile( File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 738, in win_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 1474, in _write_ninja_file_and_compile_objects _write_ninja_file( File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 2014, in _write_ninja_file assert len(sources) > 0 AssertionError [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pointnet2-ops Running setup.py clean for pointnet2-ops Failed to build pointnet2-ops ERROR: Could not build wheels for pointnet2-ops, which is required to install pyproject.toml-based projects How to solve this problem??

TowsifAbir commented 9 months ago

Processing d:\pythonproject1\pointnet2_pytorch_master\pointnet2_ops_lib Preparing metadata (setup.py) ... done Requirement already satisfied: torch>=1.4 in d:\anaconda\envs\dxtorch1\lib\site-packages (from pointnet2-ops==3.0.0) (1.12.1) Requirement already satisfied: typing_extensions in d:\anaconda\envs\dxtorch1\lib\site-packages (from torch>=1.4->pointnet2-ops==3.0.0) (4.7.1) Building wheels for collected packages: pointnet2-ops Building wheel for pointnet2-ops (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [80 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_ops\pointnet2_modules.py -> build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_ops\pointnet2_utils.py -> build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_ops_version.py -> build\lib.win-amd64-cpython-38\pointnet2_ops copying pointnet2_opsinit.py -> build\lib.win-amd64-cpython-38\pointnet2_ops running egg_info writing pointnet2_ops.egg-info\PKG-INFO writing dependency_links to pointnet2_ops.egg-info\dependency_links.txt writing requirements to pointnet2_ops.egg-info\requires.txt writing top-level names to pointnet2_ops.egg-info\top_level.txt reading manifest file 'pointnet2_ops.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no directories found matching 'pointnet2_ops_ext-src' writing manifest file 'pointnet2_ops.egg-info\SOURCES.txt' running build_ext building 'pointnet2_ops._ext' extension Emitting ninja build file D:\pythonProject1\Pointnet2_PyTorch_master\pointnet2_ops_lib\build\temp.win-amd64-cpython-38\Release\build.ninja... Traceback (most recent call last): File "", line 2, in File "", line 34, in File "D:\pythonProject1\Pointnet2_PyTorch_master\pointnet2_ops_lib\setup.py", line 20, in setup( File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptoolsinit.py", line 103, in setup return distutils.core.setup(**attrs) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\core.py", line 185, in setup return run_commands(dist) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands dist.run_commands() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 969, in run_commands self.run_command(cmd) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\dist.py", line 989, in run_command super().run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\anaconda\envs\dxtorch1\lib\site-packages\wheel\bdist_wheel.py", line 325, in run self.run_command("build") File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\dist.py", line 989, in run_command super().run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build.py", line 131, in run self.run_command(cmd_name) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\cmd.py", line 318, in run_command self.distribution.run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\dist.py", line 989, in run_command super().run_command(command) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\dist.py", line 988, in run_command cmd_obj.run() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\command\build_ext.py", line 88, in run _build_ext.run(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 345, in run self.build_extensions() File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 765, in build_extensions build_ext.build_extensions(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 467, in build_extensions self._build_extensions_serial() File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 493, in _build_extensions_serial self.build_extension(ext) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools\command\build_ext.py", line 249, in build_extension _build_ext.build_extension(self, ext) File "D:\anaconda\envs\dxtorch1\lib\site-packages\setuptools_distutils\command\build_ext.py", line 548, in build_extension objects = self.compiler.compile( File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 738, in win_wrap_ninja_compile _write_ninja_file_and_compile_objects( File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 1474, in _write_ninja_file_and_compile_objects _write_ninja_file( File "D:\anaconda\envs\dxtorch1\lib\site-packages\torch\utils\cpp_extension.py", line 2014, in _write_ninja_file assert len(sources) > 0 AssertionError [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pointnet2-ops Running setup.py clean for pointnet2-ops Failed to build pointnet2-ops ERROR: Could not build wheels for pointnet2-ops, which is required to install pyproject.toml-based projects How to solve this problem??

I am facing this exact same problem. Found no solution yet.

reazmoj commented 7 months ago

@TowsifAbir Do you found solution for this problem?

lylclj commented 5 months ago

The problem I ran into was: ModuleNotFoundError: No module named 'pointnet2_ops'. ubuntu, Use the following command to solve the problem:
pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib" reference:https://blog.csdn.net/goodgoodstudy___/article/details/128338442

sohaila-ahmed3011 commented 2 weeks ago

You can mitigate this error --> fatal error: cuda_runtime_api.h: No such file or directory

In my case: this file did exist in a different location i,e. /usr/include/cuda_runtime_api.h

To verify your header file location, you can use the command: i,e. ls -l /usr/include/cuda_runtime_api.h It should output something similar to >> -rw-r--r-- 1 root root 400643 Apr 11 2020 /usr/include/cuda_runtime_api.h

Finally, you can create a symbolic link to point to the desired directory: sudo ln -sf /usr/include/cuda_runtime_api.h /usr/local/cuda/include/cuda_runtime_api.h