Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Failed to build installable wheels for some pyproject.toml based projects (pointnet2_ops) #182

Open
BEFLIPPED opened this issue Nov 5, 2024 · 3 comments

Comments

@BEFLIPPED
Copy link

Hi,
When I run "pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"", some errors happened as follows:
(/home/hipeson/JC/pm_test/jc_pm) hipeson@hipeson-desktop:~/JC/pm_test$ pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"
Collecting pointnet2_ops
Cloning https://github.com/erikwijmans/Pointnet2_PyTorch.git to /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2
Running command git clone --filter=blob:none --quiet https://github.com/erikwijmans/Pointnet2_PyTorch.git /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2
Resolved https://github.com/erikwijmans/Pointnet2_PyTorch.git to commit b5ceb6d
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.4 in ./jc_pm/lib/python3.9/site-packages (from pointnet2_ops) (2.1.0)
Requirement already satisfied: filelock in ./jc_pm/lib/python3.9/site-packages (from torch>=1.4->pointnet2_ops) (3.13.1)
Requirement already satisfied: typing-extensions in ./jc_pm/lib/python3.9/site-packages (from torch>=1.4->pointnet2_ops) (4.11.0)
Requirement already satisfied: sympy in ./jc_pm/lib/python3.9/site-packages (from torch>=1.4->pointnet2_ops) (1.13.2)
Requirement already satisfied: networkx in ./jc_pm/lib/python3.9/site-packages (from torch>=1.4->pointnet2_ops) (3.2.1)
Requirement already satisfied: jinja2 in ./jc_pm/lib/python3.9/site-packages (from torch>=1.4->pointnet2_ops) (3.1.4)
Requirement already satisfied: fsspec in ./jc_pm/lib/python3.9/site-packages (from torch>=1.4->pointnet2_ops) (2024.10.0)
Requirement already satisfied: MarkupSafe>=2.0 in ./jc_pm/lib/python3.9/site-packages (from jinja2->torch>=1.4->pointnet2_ops) (2.1.3)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in ./jc_pm/lib/python3.9/site-packages (from sympy->torch>=1.4->pointnet2_ops) (1.3.0)
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
╰─> [128 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-39/pointnet2_ops
copying pointnet2_ops/init.py -> build/lib.linux-x86_64-cpython-39/pointnet2_ops
copying pointnet2_ops/_version.py -> build/lib.linux-x86_64-cpython-39/pointnet2_ops
copying pointnet2_ops/pointnet2_utils.py -> build/lib.linux-x86_64-cpython-39/pointnet2_ops
copying pointnet2_ops/pointnet2_modules.py -> build/lib.linux-x86_64-cpython-39/pointnet2_ops
running egg_info
creating pointnet2_ops.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
writing manifest file 'pointnet2_ops.egg-info/SOURCES.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-cpython-39/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/ball_query.h -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/cuda_utils.h -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/group_points.h -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/interpolate.h -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/sampling.h -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/include
copying pointnet2_ops/_ext-src/include/utils.h -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/include
creating build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/ball_query.cpp -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/ball_query_gpu.cu -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/bindings.cpp -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/group_points.cpp -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/group_points_gpu.cu -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src
copying pointnet2_ops/_ext-src/src/interpolate.cpp -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src
copying pointnet2_ops/ext-src/src/interpolate_gpu.cu -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src
copying pointnet2_ops/ext-src/src/sampling.cpp -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src
copying pointnet2_ops/ext-src/src/sampling_gpu.cu -> build/lib.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src
running build_ext
/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no g++ version bounds defined for CUDA version 12.1
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
building 'pointnet2_ops.ext' extension
creating /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src
Emitting ninja build file /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/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-12.1/bin/nvcc -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/src/ball_query_gpu.cu -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/ball_query_gpu.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -std=c++17
FAILED: /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/ball_query_gpu.o
/usr/local/cuda-12.1/bin/nvcc -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/src/ball_query_gpu.cu -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/ball_query_gpu.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -std=c++17
nvcc fatal : Unsupported gpu architecture 'compute_37'
[2/9] /usr/local/cuda-12.1/bin/nvcc -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/src/group_points_gpu.cu -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/group_points_gpu.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -std=c++17
FAILED: /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/group_points_gpu.o
/usr/local/cuda-12.1/bin/nvcc -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/src/group_points_gpu.cu -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/group_points_gpu.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -std=c++17
nvcc fatal : Unsupported gpu architecture 'compute_37'
[3/9] /usr/local/cuda-12.1/bin/nvcc -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/src/interpolate_gpu.cu -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/interpolate_gpu.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -std=c++17
FAILED: /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/interpolate_gpu.o
/usr/local/cuda-12.1/bin/nvcc -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/src/interpolate_gpu.cu -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/interpolate_gpu.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -std=c++17
nvcc fatal : Unsupported gpu architecture 'compute_37'
[4/9] /usr/local/cuda-12.1/bin/nvcc -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/src/sampling_gpu.cu -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/sampling_gpu.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -std=c++17
FAILED: /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/sampling_gpu.o
/usr/local/cuda-12.1/bin/nvcc -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/ext-src/src/sampling_gpu.cu -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/ext-src/src/sampling_gpu.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -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_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 -gencode=arch=compute_62,code=sm_62 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -std=c++17
nvcc fatal : Unsupported gpu architecture 'compute_37'
[5/9] c++ -MMD -MF /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src/sampling.o.d -pthread -B /home/hipeson/JC/pm_test/jc_pm/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/hipeson/JC/pm_test/jc_pm/include -I/home/hipeson/JC/pm_test/jc_pm/include -fPIC -O2 -isystem /home/hipeson/JC/pm_test/jc_pm/include -fPIC -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/_ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/_ext-src/src/sampling.cpp -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/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++17
[6/9] c++ -MMD -MF /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src/group_points.o.d -pthread -B /home/hipeson/JC/pm_test/jc_pm/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/hipeson/JC/pm_test/jc_pm/include -I/home/hipeson/JC/pm_test/jc_pm/include -fPIC -O2 -isystem /home/hipeson/JC/pm_test/jc_pm/include -fPIC -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/_ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/_ext-src/src/group_points.cpp -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/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++17
[7/9] c++ -MMD -MF /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src/ball_query.o.d -pthread -B /home/hipeson/JC/pm_test/jc_pm/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/hipeson/JC/pm_test/jc_pm/include -I/home/hipeson/JC/pm_test/jc_pm/include -fPIC -O2 -isystem /home/hipeson/JC/pm_test/jc_pm/include -fPIC -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/_ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/_ext-src/src/ball_query.cpp -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/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++17
[8/9] c++ -MMD -MF /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src/bindings.o.d -pthread -B /home/hipeson/JC/pm_test/jc_pm/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/hipeson/JC/pm_test/jc_pm/include -I/home/hipeson/JC/pm_test/jc_pm/include -fPIC -O2 -isystem /home/hipeson/JC/pm_test/jc_pm/include -fPIC -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/_ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/_ext-src/src/bindings.cpp -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/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++17
[9/9] c++ -MMD -MF /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/pointnet2_ops/_ext-src/src/interpolate.o.d -pthread -B /home/hipeson/JC/pm_test/jc_pm/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/hipeson/JC/pm_test/jc_pm/include -I/home/hipeson/JC/pm_test/jc_pm/include -fPIC -O2 -isystem /home/hipeson/JC/pm_test/jc_pm/include -fPIC -I/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/_ext-src/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/TH -I/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-12.1/include -I/home/hipeson/JC/pm_test/jc_pm/include/python3.9 -c -c /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/pointnet2_ops/_ext-src/src/interpolate.cpp -o /tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/build/temp.linux-x86_64-cpython-39/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++17
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 2100, in _run_ninja_build
subprocess.run(
File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/setup.py", line 20, in <module>
      setup(
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 183, in setup
      return run_commands(dist)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
      dist.run_commands()
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
      self.run_command(cmd)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/command/bdist_wheel.py", line 398, in run
      self.run_command("build")
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/dist.py", line 950, in run_command
      super().run_command(command)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 98, in run
      _build_ext.run(self)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
      self.build_extensions()
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 873, in build_extensions
      build_ext.build_extensions(self)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
      self._build_extensions_serial()
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
      self.build_extension(ext)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 263, in build_extension
      _build_ext.build_extension(self, ext)
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension
      objects = self.compiler.compile(
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 686, in unix_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 2116, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  [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
error: subprocess-exited-with-error

× python setup.py clean did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/setup.py", line 17, in
exec(open(osp.join("pointnet2_ops", "_version.py")).read())
FileNotFoundError: [Errno 2] No such file or directory: 'pointnet2_ops/_version.py'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for pointnet2_ops
Failed to build pointnet2_ops
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pointnet2_ops)
(/home/hipeson/JC/pm_test/jc_pm) hipeson@hipeson-desktop:~/JC/pm_test$

I think that there are some main reasons:

  1. /home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no g++ version bounds defined for CUDA version 12.1
    warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')

  2. nvcc fatal : Unsupported gpu architecture 'compute_37'

  3. ninja: build stopped: subcommand failed.
    Traceback (most recent call last):
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 2100, in _run_ninja_build
    subprocess.run(
    File "/home/hipeson/JC/pm_test/jc_pm/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
    subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

  4. 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
    error: subprocess-exited-with-error

× python setup.py clean did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-hiq_2w98/pointnet2-ops_98942fc3bf9246dcb1b2c21f497434b2/pointnet2_ops_lib/setup.py", line 17, in
exec(open(osp.join("pointnet2_ops", "_version.py")).read())
FileNotFoundError: [Errno 2] No such file or directory: 'pointnet2_ops/_version.py'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for pointnet2_ops
Failed to build pointnet2_ops
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pointnet2_ops)

I have attempted many ways to solve these problems, but I failed.
I would like to request some assistance, thank you!

@kingchou007
Copy link

same problem

@Zac-here
Copy link

Try uninstalling nvidia_cublas_cu using pip uninstall

@CaineGu
Copy link

CaineGu commented Nov 15, 2024

got same problem for many times,plz help to solve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants