Pointnet2_PyTorch
Pointnet2_PyTorch copied to clipboard
RuntimeError: Error compiling objects for extension when run setup.py build_ext
Ubuntu 18 cuda 11, pytorch 1.7, who can help me? running build_ext building 'pointnet2.ext' extension Emitting ninja build file /home/lem/桌面/newProject1/Pointnet2_PyTorch/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/8] :/usr/local/cuda:/usr/local/cuda/bin/nvcc -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/ext-src/src/ball_query_gpu.cu' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/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 -Ipointnet2/ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14 FAILED: /home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/ext-src/src/ball_query_gpu.o :/usr/local/cuda:/usr/local/cuda/bin/nvcc -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/ext-src/src/ball_query_gpu.cu' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/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 -Ipointnet2/ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14 /bin/sh: 1: :/usr/local/cuda:/usr/local/cuda/bin/nvcc: not found [2/8] :/usr/local/cuda:/usr/local/cuda/bin/nvcc -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/ext-src/src/group_points_gpu.cu' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/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 -Ipointnet2/ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14 FAILED: /home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/ext-src/src/group_points_gpu.o :/usr/local/cuda:/usr/local/cuda/bin/nvcc -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/ext-src/src/group_points_gpu.cu' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/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 -Ipointnet2/ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14 /bin/sh: 1: :/usr/local/cuda:/usr/local/cuda/bin/nvcc: not found [3/8] :/usr/local/cuda:/usr/local/cuda/bin/nvcc -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/ext-src/src/interpolate_gpu.cu' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/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 -Ipointnet2/ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14 FAILED: /home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/ext-src/src/interpolate_gpu.o :/usr/local/cuda:/usr/local/cuda/bin/nvcc -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/ext-src/src/interpolate_gpu.cu' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/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 -Ipointnet2/ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14 /bin/sh: 1: :/usr/local/cuda:/usr/local/cuda/bin/nvcc: not found [4/8] :/usr/local/cuda:/usr/local/cuda/bin/nvcc -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/ext-src/src/sampling_gpu.cu' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/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 -Ipointnet2/ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14 FAILED: /home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/ext-src/src/sampling_gpu.o :/usr/local/cuda:/usr/local/cuda/bin/nvcc -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/ext-src/src/sampling_gpu.cu' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/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 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=sm_61 -std=c++14 /bin/sh: 1: :/usr/local/cuda:/usr/local/cuda/bin/nvcc: not found [5/8] c++ -MMD -MF '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/group_points.o'.d -pthread -B /home/lem/anaconda3/envs/pointnet2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/group_points.cpp' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/group_points.o' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/group_points.o c++ -MMD -MF '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/group_points.o'.d -pthread -B /home/lem/anaconda3/envs/pointnet2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/group_points.cpp' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/group_points.o' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -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/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:149:0, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/group_points.h:2, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/group_points.cpp:1: /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/utils.h:2:0, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/group_points.cpp:2: /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: 没有那个文件或目录 #include <cuda_runtime_api.h> ^~~~~~~~~~~~~~~~~~~~ compilation terminated. [6/8] c++ -MMD -MF '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/sampling.o'.d -pthread -B /home/lem/anaconda3/envs/pointnet2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/sampling.cpp' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/sampling.o' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/sampling.o c++ -MMD -MF '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/sampling.o'.d -pthread -B /home/lem/anaconda3/envs/pointnet2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/sampling.cpp' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/sampling.o' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -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/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:149:0, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/sampling.h:2, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/sampling.cpp:1: /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/utils.h:2:0, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/sampling.cpp:2: /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: 没有那个文件或目录 #include <cuda_runtime_api.h> ^~~~~~~~~~~~~~~~~~~~ compilation terminated. [7/8] c++ -MMD -MF '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/ball_query.o'.d -pthread -B /home/lem/anaconda3/envs/pointnet2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/ball_query.cpp' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/ball_query.o' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/ball_query.o c++ -MMD -MF '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/ball_query.o'.d -pthread -B /home/lem/anaconda3/envs/pointnet2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/ball_query.cpp' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/ball_query.o' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -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/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:149:0, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/ball_query.h:2, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/ball_query.cpp:1: /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/utils.h:2:0, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/ball_query.cpp:2: /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: 没有那个文件或目录 #include <cuda_runtime_api.h> ^~~~~~~~~~~~~~~~~~~~ compilation terminated. [8/8] c++ -MMD -MF '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/interpolate.o'.d -pthread -B /home/lem/anaconda3/envs/pointnet2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/interpolate.cpp' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/interpolate.o' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 FAILED: /home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/interpolate.o c++ -MMD -MF '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/interpolate.o'.d -pthread -B /home/lem/anaconda3/envs/pointnet2/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/TH -I/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/THC -I:/usr/local/cuda:/usr/local/cuda/include -I/home/lem/anaconda3/envs/pointnet2/include/python3.7m -c -c '/home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/interpolate.cpp' -o '/home/lem/桌面/newProject1/Pointnet2_PyTorch/build/temp.linux-x86_64-3.7/pointnet2/_ext-src/src/interpolate.o' -O2 -Ipointnet2/_ext-src/include -DTORCH_API_INCLUDE_EXTENSION_H -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/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:149:0, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/torch/extension.h:4, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/interpolate.h:3, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/interpolate.cpp:1: /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/utils.h:2:0, from /home/lem/桌面/newProject1/Pointnet2_PyTorch/pointnet2/_ext-src/src/interpolate.cpp:2: /home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: 没有那个文件或目录 #include <cuda_runtime_api.h> ^~~~~~~~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/lem/anaconda3/envs/pointnet2/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1522, in _run_ninja_build env=env) File "/home/lem/anaconda3/envs/pointnet2/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 39, in
我也遇到这个问题了,请问解决了吗