erikwijmans / Pointnet2_PyTorch

PyTorch implementation of Pointnet2/Pointnet++
The Unlicense
1.53k stars 347 forks source link

Error building pointnet2_ops_lib #141

Closed mees closed 3 years ago

mees commented 3 years ago

Hi, I am trying to compile the pointnet2_ops_lib and I get an error nvcc fatal : Unknown option '-generate-dependencies-with-compile', any idea what is going on? I am using Python 3.8 and PyTorch 1.8.

Building wheels for collected packages: pointnet2-ops
  Building wheel for pointnet2-ops (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/meeso/.virtualenvs/lang2control_py38/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-pswb_xue/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build
-pswb_xue/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp
/pip-wheel-977ze3ob
       cwd: /tmp/pip-req-build-pswb_xue/
  Complete output (178 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/pointnet2_ops
  copying pointnet2_ops/pointnet2_utils.py -> build/lib.linux-x86_64-3.8/pointnet2_ops
  copying pointnet2_ops/_version.py -> build/lib.linux-x86_64-3.8/pointnet2_ops
  copying pointnet2_ops/pointnet2_modules.py -> build/lib.linux-x86_64-3.8/pointnet2_ops
  copying pointnet2_ops/__init__.py -> build/lib.linux-x86_64-3.8/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
  Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
  [1/9] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/pointnet2_ops/_ext-src/src/ball_query_gpu.o.d -I/tmp/pip-req-build-pswb_xue/pointnet2_ops/_ext-src/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/TH -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.8 -I/home/meeso/.virtualenvs/lang2control_py38/include/python3.8 -c -c /tmp/pip-req-build-pswb_xue/pointnet2_ops/_ext-src/src/ball_query_gpu.cu -o /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/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++14
  FAILED: /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/pointnet2_ops/_ext-src/src/ball_query_gpu.o
  /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/pointnet2_ops/_ext-src/src/ball_query_gpu.o.d -I/tmp/pip-req-build-pswb_xue/pointnet2_ops/_ext-src/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/TH -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.8 -I/home/meeso/.virtualenvs/lang2control_py38/include/python3.8 -c -c /tmp/pip-req-build-pswb_xue/pointnet2_ops/_ext-src/src/ball_query_gpu.cu -o /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/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++14
  nvcc fatal   : Unknown option '-generate-dependencies-with-compile'
  [2/9] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/pointnet2_ops/_ext-src/src/interpolate_gpu.o.d -I/tmp/pip-req-build-pswb_xue/pointnet2_ops/_ext-src/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/TH -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.8 -I/home/meeso/.virtualenvs/lang2control_py38/include/python3.8 -c -c /tmp/pip-req-build-pswb_xue/pointnet2_ops/_ext-src/src/interpolate_gpu.cu -o /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/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++14
  [2/9] /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/pointnet2_ops/_ext-src/src/interpolate_gpu.o.d -I/tmp/pip-req-build-pswb_xue/pointnet2_ops/_ext-src/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/TH -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.8 -I/home/meeso/.virtualenvs/lang2control_py38/include/python3.8 -c -c /tmp/pip-req-build-pswb_xue/pointnet2_ops/_ext-src/src/interpolate_gpu.cu -o /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/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++14
  FAILED: /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/pointnet2_ops/_ext-src/src/interpolate_gpu.o
  /usr/local/cuda/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/pointnet2_ops/_ext-src/src/interpolate_gpu.o.d -I/tmp/pip-req-build-pswb_xue/pointnet2_ops/_ext-src/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/TH -I/home/meeso/.virtualenvs/lang2control_py38/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.8 -I/home/meeso/.virtualenvs/lang2control_py38/include/python3.8 -c -c /tmp/pip-req-build-pswb_xue/pointnet2_ops/_ext-src/src/interpolate_gpu.cu -o /tmp/pip-req-build-pswb_xue/build/temp.linux-x86_64-3.8/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++14
  nvcc fatal   : Unknown option '-generate-dependencies-with-compile'
mees commented 3 years ago

Is there a specific cuda/nvcc one needs to use where -generate-dependencies-with-compile is supported?

chaoyivision commented 3 years ago

Is there a specific cuda/nvcc one needs to use where -generate-dependencies-with-compile is supported?

Hi mees, may I ask how did you solve this issue? Thanks!