Open LZL-CS opened 10 months ago
There is no error message, so maybe the build is running in parallel and running out of memory. You could set the environment variable PYTORCH3D_NO_NINJA to 1 and try again, with a non-parallelized build. Or, if you have many cores, you could set the environment variable MAX_JOBS to a small number.
There is no error message, so maybe the build is running in parallel and running out of memory. You could set the environment variable PYTORCH3D_NO_NINJA to 1 and try again, with a non-parallelized build. Or, if you have many cores, you could set the environment variable MAX_JOBS to a small number.
Hi @bottler, thanks for your prompt reply, but when I set PYTORCH3D_NO_NINJA to 1, I got the error below:
export PYTORCH3D_NO_NINJA=1
pip install -e .
Obtaining file:///media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5
Preparing metadata (setup.py) ... done
Requirement already satisfied: fvcore in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from pytorch3d==0.7.5) (0.1.5.post20221221)
Requirement already satisfied: iopath in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from pytorch3d==0.7.5) (0.1.10)
Requirement already satisfied: numpy in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (1.24.3)
Requirement already satisfied: yacs>=0.1.6 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (0.1.8)
Requirement already satisfied: pyyaml>=5.1 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (6.0.1)
Requirement already satisfied: tqdm in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (4.66.1)
Requirement already satisfied: termcolor>=1.1 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (2.3.0)
Requirement already satisfied: Pillow in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (10.0.1)
Requirement already satisfied: tabulate in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (0.9.0)
Requirement already satisfied: typing-extensions in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from iopath->pytorch3d==0.7.5) (4.7.1)
Requirement already satisfied: portalocker in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from iopath->pytorch3d==0.7.5) (2.8.2)
Installing collected packages: pytorch3d
Running setup.py develop for pytorch3d
error: subprocess-exited-with-error
Ă python setup.py develop did not run successfully.
â exit code: 1
â°â> [146 lines of output]
running develop
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
/usr/local/cuda/bin/nvcc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu -o build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/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++17 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86
/usr/local/cuda/include/cub/detail/detect_cuda_runtime.cuh(40): error: this declaration has no storage class or type specifier
CUB_NAMESPACE_BEGIN
^
/usr/local/cuda/include/cub/detail/detect_cuda_runtime.cuh(41): error: expected a ";"
namespace detail
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(128): warning #12-D: parsing restarts here after previous syntax error
};
^
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(153): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...> dependencies;
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(185): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(227): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(226): warning #1835-D: attribute "__host__" does not apply here
__attribute__((host))
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: namespace "thrust::detail" has no member "execute_with_dependencies"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: argument list for template template parameter "BaseSystem" is missing
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: type name is not allowed
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: expected a ")"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(229): error: expected a ";"
{
^
/usr/local/cuda/include/thrust/detail/execute_with_allocator_fwd.h(47): error: this pragma must immediately precede a declaration
#pragma nv_exec_check_disable
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(343): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(343): error: identifier "__half" is undefined
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(344): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(346): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float1> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(347): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(348): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float3> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(349): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float4> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(350): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double1> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(351): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(352): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double3> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(353): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double4> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/detail/complex/complex.inl(333): error: a template argument list is not allowed in a declaration of a primary template
struct proclaim_trivially_relocatable<complex<T> > : thrust::true_type {};
^
23 errors detected in the compilation of "/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu".
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/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}')
error: command '/usr/local/cuda/bin/nvcc' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Ă python setup.py develop did not run successfully.
â exit code: 1
â°â> [146 lines of output]
running develop
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
/usr/local/cuda/bin/nvcc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu -o build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/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++17 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86
/usr/local/cuda/include/cub/detail/detect_cuda_runtime.cuh(40): error: this declaration has no storage class or type specifier
CUB_NAMESPACE_BEGIN
^
/usr/local/cuda/include/cub/detail/detect_cuda_runtime.cuh(41): error: expected a ";"
namespace detail
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(128): warning #12-D: parsing restarts here after previous syntax error
};
^
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(153): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...> dependencies;
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(185): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(227): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(226): warning #1835-D: attribute "__host__" does not apply here
__attribute__((host))
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: namespace "thrust::detail" has no member "execute_with_dependencies"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: argument list for template template parameter "BaseSystem" is missing
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: type name is not allowed
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(228): error: expected a ")"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/usr/local/cuda/include/thrust/detail/execute_with_dependencies.h(229): error: expected a ";"
{
^
/usr/local/cuda/include/thrust/detail/execute_with_allocator_fwd.h(47): error: this pragma must immediately precede a declaration
#pragma nv_exec_check_disable
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(343): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(343): error: identifier "__half" is undefined
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(344): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(346): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float1> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(347): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(348): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float3> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(349): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float4> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(350): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double1> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(351): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double2> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(352): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double3> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/type_traits/is_trivially_relocatable.h(353): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double4> : ::thrust::true_type {}; }
^
/usr/local/cuda/include/thrust/detail/complex/complex.inl(333): error: a template argument list is not allowed in a declaration of a primary template
struct proclaim_trivially_relocatable<complex<T> > : thrust::true_type {};
^
23 errors detected in the compilation of "/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu".
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/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}')
error: command '/usr/local/cuda/bin/nvcc' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
I think you have a C++ implementation which is too old. What is the output of nvcc --version
and g++ --version
?
Or possibly a cub version clash.
export PYTORCH3D_NO_NINJA=1 pip install -e .
I have check my "nvcc" and "g++" as below:
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Feb__7_19:32:13_PST_2023
Cuda compilation tools, release 12.1, V12.1.66
Build cuda_12.1.r12.1/compiler.32415258_0
gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
But when I try to install pytorch3d-0.7.5, I still get the error:
export PYTORCH3D_NO_NINJA=1
pip install -e .
Obtaining file:///media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5
Preparing metadata (setup.py) ... done
Requirement already satisfied: fvcore in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from pytorch3d==0.7.5) (0.1.5.post20221221)
Requirement already satisfied: iopath in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from pytorch3d==0.7.5) (0.1.10)
Requirement already satisfied: numpy in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (1.24.3)
Requirement already satisfied: yacs>=0.1.6 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (0.1.8)
Requirement already satisfied: pyyaml>=5.1 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (6.0.1)
Requirement already satisfied: tqdm in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (4.66.1)
Requirement already satisfied: termcolor>=1.1 in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (2.3.0)
Requirement already satisfied: Pillow in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (10.0.1)
Requirement already satisfied: tabulate in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from fvcore->pytorch3d==0.7.5) (0.9.0)
Requirement already satisfied: typing-extensions in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from iopath->pytorch3d==0.7.5) (4.7.1)
Requirement already satisfied: portalocker in /media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages (from iopath->pytorch3d==0.7.5) (2.8.2)
Installing collected packages: pytorch3d
Running setup.py develop for pytorch3d
error: subprocess-exited-with-error
Ă python setup.py develop did not run successfully.
â exit code: 1
â°â> [146 lines of output]
running develop
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
/media/HDD0/lzl/cuda-12.1/bin/nvcc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/media/HDD0/lzl/cuda-12.1/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu -o build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/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++17 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86
/media/HDD0/lzl/cuda-12.1/include/cub/detail/detect_cuda_runtime.cuh(40): error: this declaration has no storage class or type specifier
CUB_NAMESPACE_BEGIN
^
/media/HDD0/lzl/cuda-12.1/include/cub/detail/detect_cuda_runtime.cuh(41): error: expected a ";"
namespace detail
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(128): warning #12-D: parsing restarts here after previous syntax error
};
^
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(153): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...> dependencies;
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(185): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(227): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(226): warning #1835-D: attribute "__host__" does not apply here
__attribute__((host))
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: namespace "thrust::detail" has no member "execute_with_dependencies"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: argument list for template template parameter "BaseSystem" is missing
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: type name is not allowed
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: expected a ")"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(229): error: expected a ";"
{
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_allocator_fwd.h(47): error: this pragma must immediately precede a declaration
#pragma nv_exec_check_disable
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(343): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(343): error: identifier "__half" is undefined
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(344): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(346): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float1> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(347): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(348): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float3> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(349): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float4> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(350): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double1> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(351): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(352): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double3> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(353): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double4> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/complex/complex.inl(333): error: a template argument list is not allowed in a declaration of a primary template
struct proclaim_trivially_relocatable<complex<T> > : thrust::true_type {};
^
23 errors detected in the compilation of "/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu".
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/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}')
error: command '/media/HDD0/lzl/cuda-12.1/bin/nvcc' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Ă python setup.py develop did not run successfully.
â exit code: 1
â°â> [146 lines of output]
running develop
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
/media/HDD0/lzl/cuda-12.1/bin/nvcc -DWITH_CUDA -DTHRUST_IGNORE_CUB_VERSION_CHECK -I/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/TH -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/torch/include/THC -I/media/HDD0/lzl/cuda-12.1/include -I/media/HDD0/lzl/anaconda3/envs/nerf-loc/include/python3.8 -c /media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu -o build/temp.linux-x86_64-cpython-38/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/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++17 -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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86
/media/HDD0/lzl/cuda-12.1/include/cub/detail/detect_cuda_runtime.cuh(40): error: this declaration has no storage class or type specifier
CUB_NAMESPACE_BEGIN
^
/media/HDD0/lzl/cuda-12.1/include/cub/detail/detect_cuda_runtime.cuh(41): error: expected a ";"
namespace detail
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(128): warning #12-D: parsing restarts here after previous syntax error
};
^
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(153): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...> dependencies;
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(185): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(227): error: remove_cvref_t is not a template
std::tuple<remove_cvref_t<Dependencies>...>
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(226): warning #1835-D: attribute "__host__" does not apply here
__attribute__((host))
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: namespace "thrust::detail" has no member "execute_with_dependencies"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: argument list for template template parameter "BaseSystem" is missing
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: type name is not allowed
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(228): error: expected a ")"
extract_dependencies(thrust::detail::execute_with_dependencies<BaseSystem, Dependencies...>&& system)
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_dependencies.h(229): error: expected a ";"
{
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/execute_with_allocator_fwd.h(47): error: this pragma must immediately precede a declaration
#pragma nv_exec_check_disable
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(343): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(343): error: identifier "__half" is undefined
namespace thrust { template <> struct proclaim_trivially_relocatable<__half> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(344): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<__half2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(346): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float1> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(347): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(348): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float3> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(349): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<float4> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(350): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double1> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(351): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double2> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(352): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double3> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/type_traits/is_trivially_relocatable.h(353): error: proclaim_trivially_relocatable is not a template
namespace thrust { template <> struct proclaim_trivially_relocatable<double4> : ::thrust::true_type {}; }
^
/media/HDD0/lzl/cuda-12.1/include/thrust/detail/complex/complex.inl(333): error: a template argument list is not allowed in a declaration of a primary template
struct proclaim_trivially_relocatable<complex<T> > : thrust::true_type {};
^
23 errors detected in the compilation of "/media/HDD0/lzl/nerf-loc/pytorch3d-0.7.5/pytorch3d/csrc/ball_query/ball_query.cu".
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
/media/HDD0/lzl/anaconda3/envs/nerf-loc/lib/python3.8/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}')
error: command '/media/HDD0/lzl/cuda-12.1/bin/nvcc' failed with exit code 2
I'm a confused. This failure is in the compilation of ball_query.cu . And ball_query.cu does not use CUB, which is where the error is. (It also doesn't use thrust, which itself uses CUB internally in recent versions.) So I do not understand the sequence of #include
s which got this. Something basic has gone wrong.
Facing the exactly same question qwq
Facing the exactly same question qwq
alsoïŒi successfully install it on my serve,but meet error on my local computer
Facing the exactly same question qwq
alsoïŒi successfully install it on my serve,but meet error on my local computer
how to solve?
hello,I have solved the same problem
hello,I have solved the same problem
chould yout tell me how to solve this problem please
Do not install nvidiacub if you have CUDA older than 11.7
if you export CUB_HOME, do not do that! e.g.: .bashrc export CUB_HOME=...... you should comment that!
source .bashrc
compile and install again.
OK
đ Bugs / Unexpected behaviors
The system I used is:
The environment is as below:
I installed
pytorch3d-0.7.5
with the command line "pip install -e .", but get the error as below: