nvcc fatal : Unsupported gpu architecture 'compute_86'
dydgns2017 opened this issue · 4 comments
dydgns2017 commented
my PC GPU Model is 3090RTX and then setup like that
- driver-460
- cuda 11.0
- pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0
and then i execute setup.py script python setup.py install
it is not working what is the problem to me?
running install
running bdist_egg
running egg_info
writing pointnet2.egg-info/PKG-INFO
writing dependency_links to pointnet2.egg-info/dependency_links.txt
writing top-level names to pointnet2.egg-info/top_level.txt
reading manifest file 'pointnet2.egg-info/SOURCES.txt'
writing manifest file 'pointnet2.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'pointnet2._ext' extension
Emitting ninja build file /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/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.0/bin/nvcc -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/interpolate_gpu.cu -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/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'"'"'' -O2 -I_ext_src/include -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_86,code=sm_86 -std=c++14
FAILED: /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/interpolate_gpu.o
/usr/local/cuda-11.0/bin/nvcc -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/interpolate_gpu.cu -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/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'"'"'' -O2 -I_ext_src/include -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_86,code=sm_86 -std=c++14
nvcc fatal : Unsupported gpu architecture 'compute_86'
[2/9] /usr/local/cuda-11.0/bin/nvcc -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/ball_query_gpu.cu -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/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'"'"'' -O2 -I_ext_src/include -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_86,code=sm_86 -std=c++14
FAILED: /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/ball_query_gpu.o
/usr/local/cuda-11.0/bin/nvcc -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/ball_query_gpu.cu -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/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'"'"'' -O2 -I_ext_src/include -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_86,code=sm_86 -std=c++14
nvcc fatal : Unsupported gpu architecture 'compute_86'
[3/9] /usr/local/cuda-11.0/bin/nvcc -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/sampling_gpu.cu -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/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'"'"'' -O2 -I_ext_src/include -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_86,code=sm_86 -std=c++14
FAILED: /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/sampling_gpu.o
/usr/local/cuda-11.0/bin/nvcc -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/sampling_gpu.cu -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/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'"'"'' -O2 -I_ext_src/include -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_86,code=sm_86 -std=c++14
nvcc fatal : Unsupported gpu architecture 'compute_86'
[4/9] /usr/local/cuda-11.0/bin/nvcc -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/group_points_gpu.cu -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/group_points_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O2 -I_ext_src/include -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_86,code=sm_86 -std=c++14
FAILED: /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/group_points_gpu.o
/usr/local/cuda-11.0/bin/nvcc -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/group_points_gpu.cu -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/group_points_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -O2 -I_ext_src/include -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_86,code=sm_86 -std=c++14
nvcc fatal : Unsupported gpu architecture 'compute_86'
[5/9] c++ -MMD -MF /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/bindings.o.d -pthread -B /home/jaeseok/anaconda3/envs/votenetml/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/bindings.cpp -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/bindings.o -O2 -I_ext_src/include -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: /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/bindings.o
c++ -MMD -MF /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/bindings.o.d -pthread -B /home/jaeseok/anaconda3/envs/votenetml/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/bindings.cpp -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/bindings.o -O2 -I_ext_src/include -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++
/home/jaeseok/votenet/pointnet2/_ext_src/src/bindings.cpp:6:10: fatal error: ball_query.h: No such file or directory
#include "ball_query.h"
^~~~~~~~~~~~~~
compilation terminated.
[6/9] c++ -MMD -MF /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/group_points.o.d -pthread -B /home/jaeseok/anaconda3/envs/votenetml/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/group_points.cpp -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/group_points.o -O2 -I_ext_src/include -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: /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/group_points.o
c++ -MMD -MF /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/group_points.o.d -pthread -B /home/jaeseok/anaconda3/envs/votenetml/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/group_points.cpp -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/group_points.o -O2 -I_ext_src/include -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++
/home/jaeseok/votenet/pointnet2/_ext_src/src/group_points.cpp:6:10: fatal error: group_points.h: No such file or directory
#include "group_points.h"
^~~~~~~~~~~~~~~~
compilation terminated.
[7/9] c++ -MMD -MF /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/ball_query.o.d -pthread -B /home/jaeseok/anaconda3/envs/votenetml/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/ball_query.cpp -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/ball_query.o -O2 -I_ext_src/include -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: /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/ball_query.o
c++ -MMD -MF /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/ball_query.o.d -pthread -B /home/jaeseok/anaconda3/envs/votenetml/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/ball_query.cpp -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/ball_query.o -O2 -I_ext_src/include -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++
/home/jaeseok/votenet/pointnet2/_ext_src/src/ball_query.cpp:6:10: fatal error: ball_query.h: No such file or directory
#include "ball_query.h"
^~~~~~~~~~~~~~
compilation terminated.
[8/9] c++ -MMD -MF /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/interpolate.o.d -pthread -B /home/jaeseok/anaconda3/envs/votenetml/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/interpolate.cpp -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/interpolate.o -O2 -I_ext_src/include -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: /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/interpolate.o
c++ -MMD -MF /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/interpolate.o.d -pthread -B /home/jaeseok/anaconda3/envs/votenetml/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/interpolate.cpp -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/interpolate.o -O2 -I_ext_src/include -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++
/home/jaeseok/votenet/pointnet2/_ext_src/src/interpolate.cpp:6:10: fatal error: interpolate.h: No such file or directory
#include "interpolate.h"
^~~~~~~~~~~~~~~
compilation terminated.
[9/9] c++ -MMD -MF /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/sampling.o.d -pthread -B /home/jaeseok/anaconda3/envs/votenetml/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/sampling.cpp -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/sampling.o -O2 -I_ext_src/include -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: /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/sampling.o
c++ -MMD -MF /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/sampling.o.d -pthread -B /home/jaeseok/anaconda3/envs/votenetml/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/TH -I/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/jaeseok/anaconda3/envs/votenetml/include/python3.7m -c -c /home/jaeseok/votenet/pointnet2/_ext_src/src/sampling.cpp -o /home/jaeseok/votenet/pointnet2/build/temp.linux-x86_64-3.7/_ext_src/src/sampling.o -O2 -I_ext_src/include -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++
/home/jaeseok/votenet/pointnet2/_ext_src/src/sampling.cpp:6:10: fatal error: sampling.h: No such file or directory
#include "sampling.h"
^~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1539, in _run_ninja_build
env=env)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/subprocess.py", line 512, 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 "setup.py", line 29, in <module>
'build_ext': BuildExtension
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 164, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 150, in call_command
self.run_command(cmdname)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/command/install_lib.py", line 107, in build
self.run_command('build_ext')
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 670, in build_extensions
build_ext.build_extensions(self)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 500, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/jaeseok/anaconda3/envs/votenetml/lib/python3.7/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/jaeseok/anaconda3/envs/votenetml/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1555, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
dydgns2017 commented
solved this issue
weijiawang96 commented
Hi, I'm experiencing the same issue, and I have the same config as yours (cuda 11.1, pytorch==1.7.1, torchvision==0.8.2, torchaudio==0.7.2, cudatoolkit=11.0). Can you please suggest how did you solve this, or provide any blogs providing solutions? Thank you!
weijiawang96 commented
No worries, I found a solution at #108 and now it compiles. Thanks!