facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.75k stars 1.31k forks source link

pip install in ubuntu #1206

Closed mate-huaboy closed 2 years ago

mate-huaboy commented 2 years ago

pip install error in ubuntu

hi,When I use the commands:

pip install -e .

but I got error:

Obtaining file:///home/liaowennhua/%E6%A1%8C%E9%9D%A2/pytorch3d
Requirement already satisfied: fvcore in /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages (from pytorch3d==0.6.2) (0.1.5.post20220512)
Requirement already satisfied: iopath in /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages (from pytorch3d==0.6.2) (0.1.9)
Requirement already satisfied: pyyaml>=5.1 in /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages (from fvcore->pytorch3d==0.6.2) (6.0)
Requirement already satisfied: termcolor>=1.1 in /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages (from fvcore->pytorch3d==0.6.2) (1.1.0)
Requirement already satisfied: tqdm in /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages (from fvcore->pytorch3d==0.6.2) (4.64.0)
Requirement already satisfied: tabulate in /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages (from fvcore->pytorch3d==0.6.2) (0.8.9)
Requirement already satisfied: numpy in /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages (from fvcore->pytorch3d==0.6.2) (1.22.3)
Requirement already satisfied: Pillow in /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages (from fvcore->pytorch3d==0.6.2) (9.0.1)
Requirement already satisfied: yacs>=0.1.6 in /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages (from fvcore->pytorch3d==0.6.2) (0.1.8)
Requirement already satisfied: portalocker in /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages (from iopath->pytorch3d==0.6.2) (2.4.0)
Installing collected packages: pytorch3d
  Running setup.py develop for pytorch3d
    ERROR: Command errored out with exit status 1:
     command: /home/liaowennhua/anaconda3/envs/pytorch3d/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/liaowennhua/桌面/pytorch3d/setup.py'"'"'; __file__='"'"'/home/liaowennhua/桌面/pytorch3d/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
         cwd: /home/liaowennhua/桌面/pytorch3d/
    Complete output (540 lines):
    running develop
    /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    running egg_info
    writing pytorch3d.egg-info/PKG-INFO
    writing dependency_links to pytorch3d.egg-info/dependency_links.txt
    writing entry points to pytorch3d.egg-info/entry_points.txt
    writing requirements to pytorch3d.egg-info/requires.txt
    writing top-level names to pytorch3d.egg-info/top_level.txt
    reading manifest file 'pytorch3d.egg-info/SOURCES.txt'
    adding license file 'LICENSE'
    adding license file 'LICENSE-3RD-PARTY'
    writing manifest file 'pytorch3d.egg-info/SOURCES.txt'
    running build_ext
    building 'pytorch3d._C' extension
    /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/cuda/__init__.py:106: UserWarning:
    NVIDIA GeForce RTX 3060 with CUDA capability sm_86 is not compatible with the current PyTorch installation.
    The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_61 sm_70 sm_75 compute_37.
    If you want to use the NVIDIA GeForce RTX 3060 GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

      warnings.warn(incompatible_device_warn.format(device_name, capability, " ".join(arch_list), device_name))
    Emitting ninja build file /home/liaowennhua/桌面/pytorch3d/build/temp.linux-x86_64-3.9/build.ninja...
    Compiling objects...
    Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
    [1/65] /usr/local/cuda-11.6/bin/nvcc  -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK '-I/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc' '-I/home/liaowennhua/下载/cub-1.10.0' -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/TH -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/include/python3.9 -c -c '/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/compositing/weighted_sum.cu' -o '/home/liaowennhua/桌面/pytorch3d/build/temp.linux-x86_64-3.9/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/compositing/weighted_sum.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'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75
    [2/65] /usr/local/cuda-11.6/bin/nvcc  -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK '-I/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc' '-I/home/liaowennhua/下载/cub-1.10.0' -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/TH -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/include/python3.9 -c -c '/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals.cu' -o '/home/liaowennhua/桌面/pytorch3d/build/temp.linux-x86_64-3.9/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals.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'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75
    [3/65] /usr/local/cuda-11.6/bin/nvcc  -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK '-I/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc' '-I/home/liaowennhua/下载/cub-1.10.0' -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/TH -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/include/python3.9 -c -c '/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/ball_query/ball_query.cu' -o '/home/liaowennhua/桌面/pytorch3d/build/temp.linux-x86_64-3.9/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/ball_query/ball_query.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'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75
    [4/65] /usr/local/cuda-11.6/bin/nvcc  -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK '-I/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc' '-I/home/liaowennhua/下载/cub-1.10.0' -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/TH -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/include/python3.9 -c -c '/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum.cu' -o '/home/liaowennhua/桌面/pytorch3d/build/temp.linux-x86_64-3.9/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum.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'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75
    [5/65] /usr/local/cuda-11.6/bin/nvcc  -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK '-I/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc' '-I/home/liaowennhua/下载/cub-1.10.0' -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/TH -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/include/python3.9 -c -c '/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/gather_scatter/gather_scatter.cu' -o '/home/liaowennhua/桌面/pytorch3d/build/temp.linux-x86_64-3.9/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/gather_scatter/gather_scatter.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'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75
    [6/65] /usr/local/cuda-11.6/bin/nvcc  -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK '-I/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc' '-I/home/liaowennhua/下载/cub-1.10.0' -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/TH -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/include/python3.9 -c -c '/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/compositing/alpha_composite.cu' -o '/home/liaowennhua/桌面/pytorch3d/build/temp.linux-x86_64-3.9/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/compositing/alpha_composite.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'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75
    [7/65] /usr/local/cuda-11.6/bin/nvcc  -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK '-I/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc' '-I/home/liaowennhua/下载/cub-1.10.0' -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/TH -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/include/python3.9 -c -c '/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend.cu' -o '/home/liaowennhua/桌面/pytorch3d/build/temp.linux-x86_64-3.9/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend.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'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75
    [8/65] /usr/local/cuda-11.6/bin/nvcc  -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK '-I/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc' '-I/home/liaowennhua/下载/cub-1.10.0' -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/TH -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/include/python3.9 -c -c '/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/iou_box3d/iou_box3d.cu' -o '/home/liaowennhua/桌面/pytorch3d/build/temp.linux-x86_64-3.9/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/iou_box3d/iou_box3d.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'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75
    FAILED: /home/liaowennhua/桌面/pytorch3d/build/temp.linux-x86_64-3.9/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/iou_box3d/iou_box3d.o
    /usr/local/cuda-11.6/bin/nvcc  -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK '-I/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc' '-I/home/liaowennhua/下载/cub-1.10.0' -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/TH -I/home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.6/include -I/home/liaowennhua/anaconda3/envs/pytorch3d/include/python3.9 -c -c '/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/iou_box3d/iou_box3d.cu' -o '/home/liaowennhua/桌面/pytorch3d/build/temp.linux-x86_64-3.9/home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/iou_box3d/iou_box3d.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'"'"'' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75
    In file included from /usr/local/cuda-11.6/include/cub/util_namespace.cuh:41,
                     from /usr/local/cuda-11.6/include/cub/util_math.cuh:37,
                     from /usr/local/cuda-11.6/include/thrust/system/cuda/detail/adjacent_difference.h:47,
                     from /usr/local/cuda-11.6/include/thrust/system/cuda/execution_policy.h:38,
                     from /usr/local/cuda-11.6/include/thrust/system/cuda/detail/scan_by_key.h:36,
                     from /usr/local/cuda-11.6/include/thrust/system/detail/adl/scan_by_key.h:42,
                     from /usr/local/cuda-11.6/include/thrust/detail/scan.inl:29,
                     from /usr/local/cuda-11.6/include/thrust/scan.h:1560,
                     from /usr/local/cuda-11.6/include/thrust/system/detail/generic/reduce_by_key.inl:37,
                     from /usr/local/cuda-11.6/include/thrust/system/detail/generic/reduce_by_key.h:87,
                     from /usr/local/cuda-11.6/include/thrust/detail/reduce.inl:28,
                     from /usr/local/cuda-11.6/include/thrust/reduce.h:781,
                     from /usr/local/cuda-11.6/include/thrust/system/detail/generic/find.inl:19,
                     from /usr/local/cuda-11.6/include/thrust/system/detail/generic/find.h:61,
                     from /usr/local/cuda-11.6/include/thrust/detail/find.inl:25,
                     from /usr/local/cuda-11.6/include/thrust/find.h:381,
                     from /usr/local/cuda-11.6/include/thrust/system/detail/generic/mismatch.inl:21,
                     from /usr/local/cuda-11.6/include/thrust/system/detail/generic/mismatch.h:56,
                     from /usr/local/cuda-11.6/include/thrust/detail/mismatch.inl:27,
                     from /usr/local/cuda-11.6/include/thrust/mismatch.h:257,
                     from /usr/local/cuda-11.6/include/thrust/system/detail/generic/equal.inl:21,
                     from /usr/local/cuda-11.6/include/thrust/system/detail/generic/equal.h:46,
                     from /usr/local/cuda-11.6/include/thrust/detail/equal.inl:26,
                     from /usr/local/cuda-11.6/include/thrust/equal.h:235,
                     from /usr/local/cuda-11.6/include/thrust/detail/vector_base.inl:26,
                     from /usr/local/cuda-11.6/include/thrust/detail/vector_base.h:586,
                     from /usr/local/cuda-11.6/include/thrust/device_vector.h:26,
                     from /home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/iou_box3d/iou_box3d.cu:15:
    /usr/local/cuda-11.6/include/cub/version.cuh:46: warning: "CUB_VERSION" redefined
       46 | #define CUB_VERSION 101500
          |
    In file included from /home/liaowennhua/下载/cub-1.10.0/cub/util_namespace.cuh:36,
                     from /usr/local/cuda-11.6/include/thrust/system/cuda/config.h:33,
                     from /usr/local/cuda-11.6/include/thrust/system/cuda/detail/execution_policy.h:35,
                     from /usr/local/cuda-11.6/include/thrust/iterator/detail/device_system_tag.h:23,
                     from /usr/local/cuda-11.6/include/thrust/iterator/iterator_traits.h:62,
                     from /usr/local/cuda-11.6/include/thrust/detail/type_traits/pointer_traits.h:23,
                     from /usr/local/cuda-11.6/include/thrust/type_traits/is_contiguous_iterator.h:27,
                     from /usr/local/cuda-11.6/include/thrust/type_traits/is_trivially_relocatable.h:19,
                     from /usr/local/cuda-11.6/include/thrust/detail/complex/complex.inl:22,
                     from /usr/local/cuda-11.6/include/thrust/complex.h:1030,
                     from /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/c10/util/complex.h:9,
                     from /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/c10/util/Half.h:14,
                     from /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/c10/core/ScalarType.h:5,
                     from /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/c10/core/Scalar.h:10,
                     from /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:8,
                     from /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/ATen/Tensor.h:3,
                     from /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/ATen/Context.h:4,
                     from /home/liaowennhua/anaconda3/envs/pytorch3d/lib/python3.9/site-packages/torch/include/ATen/ATen.h:9,
                     from /home/liaowennhua/桌面/pytorch3d/pytorch3d/csrc/iou_box3d/iou_box3d.cu:9:
    /home/liaowennhua/下载/cub-1.10.0/cub/version.cuh:46: note: this is the location of the previous definition
       46 | #define CUB_VERSION 101000
          |
    /usr/local/cuda-11.6/include/cub/detail/device_synchronize.cuh(24): error: this declaration has no storage class or type specifier

    /usr/local/cuda-11.6/include/cub/detail/device_synchronize.cuh(26): error: expected a ";"

    /usr/local/cuda-11.6/include/cub/detail/device_synchronize.cuh(33): error: this pragma must immediately precede a declaration

    /usr/local/cuda-11.6/include/cub/detail/device_synchronize.cuh(64): warning #12-D: parsing restarts here after previous syntax error

    /usr/local/cuda-11.6/include/cub/detail/device_synchronize.cuh(65): error: expected a declaration

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(60): warning #12-D: parsing restarts here after previous syntax error

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(61): error: expected a declaration

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(204): warning #12-D: parsing restarts here after previous syntax error

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(206): error: this declaration has no storage class or type specifier

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(206): error: expected a ";"

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(208): error: expected a declaration

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(237): warning #12-D: parsing restarts here after previous syntax error

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(239): error: this declaration has no storage class or type specifier

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(239): error: variable "cuda_cub" has already been defined

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(239): error: expected a ";"

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(241): error: expected a declaration

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(355): warning #12-D: parsing restarts here after previous syntax error

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(364): error: iterator_traits is not a template

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/util.h(588): error: expected a declaration

    /usr/local/cuda-11.6/include/thrust/detail/seq.h(47): warning #12-D: parsing restarts here after previous syntax error

    /usr/local/cuda-11.6/include/thrust/detail/seq.h(50): error: expected a declaration

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(71): warning #12-D: parsing restarts here after previous syntax error

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(73): error: execute_on_stream_base is not a template

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(75): error: execute_on_stream_base is not a template

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(78): error: "base_t" is not a nonstatic data member or base class of class "execute_on_stream"

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(80): error: "base_t" is not a nonstatic data member or base class of class "execute_on_stream"

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(84): error: execution_policy is not a template

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(86): error: identifier "execute_on_stream_base" is undefined

    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(89): error: identifier "execute_on_stream_base" is undefined

    /usr/local/cuda-11.6/include/thrust/detail/dependencies_aware_execution_policy.h(39): error: template template parameter "<error>" is not compatible with template template parameter "BaseSystem"
              detected during instantiation of class "thrust::detail::dependencies_aware_execution_policy<ExecutionPolicyCRTPBase> [with ExecutionPolicyCRTPBase=<error>]"
    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(88): here

    /usr/local/cuda-11.6/include/thrust/detail/dependencies_aware_execution_policy.h(50): error: template template parameter "<error>" is not compatible with template template parameter "BaseSystem"
              detected during instantiation of class "thrust::detail::dependencies_aware_execution_policy<ExecutionPolicyCRTPBase> [with ExecutionPolicyCRTPBase=<error>]"
    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(88): here

    /usr/local/cuda-11.6/include/thrust/detail/dependencies_aware_execution_policy.h(60): error: template template parameter "<error>" is not compatible with template template parameter "BaseSystem"
              detected during instantiation of class "thrust::detail::dependencies_aware_execution_policy<ExecutionPolicyCRTPBase> [with ExecutionPolicyCRTPBase=<error>]"
    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(88): here

    /usr/local/cuda-11.6/include/thrust/detail/dependencies_aware_execution_policy.h(71): error: template template parameter "<error>" is not compatible with template template parameter "BaseSystem"
              detected during instantiation of class "thrust::detail::dependencies_aware_execution_policy<ExecutionPolicyCRTPBase> [with ExecutionPolicyCRTPBase=<error>]"
    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(88): here

    /usr/local/cuda-11.6/include/thrust/detail/dependencies_aware_execution_policy.h(82): error: template template parameter "<error>" is not compatible with template template parameter "BaseSystem"
              detected during instantiation of class "thrust::detail::dependencies_aware_execution_policy<ExecutionPolicyCRTPBase> [with ExecutionPolicyCRTPBase=<error>]"
    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(88): here

    /usr/local/cuda-11.6/include/thrust/detail/dependencies_aware_execution_policy.h(92): error: template template parameter "<error>" is not compatible with template template parameter "BaseSystem"
              detected during instantiation of class "thrust::detail::dependencies_aware_execution_policy<ExecutionPolicyCRTPBase> [with ExecutionPolicyCRTPBase=<error>]"
    /usr/local/cuda-11.6/include/thrust/system/cuda/detail/par.h(88): here
 raise RuntimeError(message) from e
    RuntimeError: Error compiling objects for extension
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/liaowennhua/anaconda3/envs/CDPN/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/liaowennhua/桌面/pytorch3d/setup.py'"'"'; __file__='"'"'/home/liaowennhua/桌面/pytorch3d/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

here have so much info that I don't put all.I have tried many ways to solve the installation problem, but I haven't done it,Please help me. Thank you very much

my pip list

addict              2.4.0
certifi             2020.6.20
cffi                1.14.6
colorama            0.4.4
cycler              0.11.0
Cython              0.29.24
dataclasses         0.8
easydict            1.9
fvcore              0.1.5.post20220512
importlib-resources 5.4.0
iopath              0.1.9
keyboard            0.13.5
kiwisolver          1.3.1
llvmlite            0.36.0
matplotlib          3.3.4
mkl-fft             1.3.0
mkl-random          1.1.1
mkl-service         2.3.0
mmcv                1.4.8
numba               0.53.1
numpy               1.19.5
olefile             0.46
opencv-python       4.5.1.48
packaging           21.3
Pillow              8.3.1
Pillow-SIMD         8.4.0.post0
pip                 21.2.2
plyfile             0.7.4
portalocker         2.4.0
progress            1.6
protobuf            3.19.4
py                  1.11.0
pycocotools         2.0.4
pycparser           2.21
pyparsing           3.0.7
pytest              3.2.1
pytest-runner       5.3.1
python-dateutil     2.8.2
PyYAML              6.0
scipy               1.5.4
setproctitle        1.2.2
setuptools          58.0.4
six                 1.16.0
tabulate            0.8.9
tensorboardX        2.1
termcolor           1.1.0
torch               1.10.2
torchaudio          0.10.2
torchvision         0.11.3
tornado             6.1
tqdm                4.63.0
typing_extensions   4.1.1
wheel               0.37.1
yacs                0.1.8
yapf                0.32.0
zipp                3.6.0
mate-huaboy commented 2 years ago

and the output of nvcc -V

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Thu_Feb_10_18:23:41_PST_2022
Cuda compilation tools, release 11.6, V11.6.112
Build cuda_11.6.r11.6/compiler.30978841_0

and my gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) , CUDA Version: 11.6

Can someone help me? Thank you

bottler commented 2 years ago

What happens if you build without setting CUB_HOME - so ignoring the version 1.10.0 of CUB which you have, and relying on the CUDA toolkit's own CUB?

mate-huaboy commented 2 years ago

What happens if you build without setting CUB_HOME - so ignoring the version 1.10.0 of CUB which you have, and relying on the CUDA toolkit's own CUB?

you are right!!! Because of the version of CUB,I change the CUB from 1.10.0 to 1.16.0,and it work

ZziTaiLeo commented 2 years ago

Hi! How to change CUB version, and what's the correspondence between Cudatoolkit and Cudatoolkit?

huangxin168 commented 1 year ago

Hi! How to change CUB version, and what's the correspondence between Cudatoolkit and Cudatoolkit?

curl -LO https://github.com/NVIDIA/cub/archive/1.16.0.tar.gz tar xzf 1.16.0.tar.gz export CUB_HOME=$PWD/cub-1.16.0

HelloRicky123 commented 1 year ago

For anyone's convenience, I am providing my problem here. I have two machines, both with CUDA 11.4. One machine can install PyTorch3D without setting CUB_HOME, while the other can install it with cub-1.15.0, but not with cub-1.10.0 or cub-1.16.0.

obiza-theaiinstitute commented 1 year ago

I successfully installed pytorch3d with CUDA-11.6 by upgrading CUB to 1.16 and downgrading gcc and g++ to version 10 (https://github.com/NVlabs/instant-ngp/issues/119).