inplace_abn icon indicating copy to clipboard operation
inplace_abn copied to clipboard

pip install - NVCC error

Open Eric2Hamel opened this issue 3 years ago • 1 comments

I am using Python 3.7.5, NVCC=10.1.243, GCC=8.4.0, pytorch = 1.7.1.

When I try doing : pip install inplace-abn.

Got this NVCC error. I check in /usr/bin/nvcc and the nvcc file seams to be there. How can I solve this error? Sorry, if this is a duplicate. I check in the issues and could not find a way to resolve it.

ERROR: Command errored out with exit status 1: command: /home/zilia/Documents/Projects/zilia-segmentation-onh/env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gblzgvtx/inplace-abn_aeedf16dcabb4732b6875bf839efe376/setup.py'"'"'; file='"'"'/tmp/pip-install-gblzgvtx/inplace-abn_aeedf16dcabb4732b6875bf839efe376/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-ordiazpv/install-record.txt --single-version-externally-managed --compile --install-headers /home/zilia/Documents/Projects/zilia-segmentation-onh/env/include/site/python3.7/inplace-abn cwd: /tmp/pip-install-gblzgvtx/inplace-abn_aeedf16dcabb4732b6875bf839efe376/ Complete output (523 lines): WARNING: The wheel package is not available. running install running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/inplace_abn copying inplace_abn/group.py -> build/lib.linux-x86_64-3.7/inplace_abn copying inplace_abn/functions.py -> build/lib.linux-x86_64-3.7/inplace_abn copying inplace_abn/init.py -> build/lib.linux-x86_64-3.7/inplace_abn copying inplace_abn/abn.py -> build/lib.linux-x86_64-3.7/inplace_abn copying inplace_abn/version.py -> build/lib.linux-x86_64-3.7/inplace_abn running build_ext /home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/utils/cpp_extension.py:352: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) building 'inplace_abn.backend' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/src /usr/bin/nvcc -DWITH_CUDA=1 -I/tmp/pip-install-gblzgvtx/inplace-abn_aeedf16dcabb4732b6875bf839efe376/include -I/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include -I/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/TH -I/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/THC -I/home/zilia/Documents/Projects/zilia-segmentation-onh/env/include -I/usr/local/include/python3.7m -c src/inplace_abn_cuda.cu -o build/temp.linux-x86_64-3.7/src/inplace_abn_cuda.o -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_backend -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14 /usr/include/c++/8/utility(307): error: pack expansion does not make use of any argument packs

/usr/include/c++/8/utility(329): error: pack expansion does not make use of any argument packs

/usr/include/c++/8/utility(329): error: expected a ">"
          detected during instantiation of type "std::make_integer_sequence<std::size_t, _Num>"
(340): here

/usr/include/c++/8/utility(307): error: identifier "__integer_pack" is undefined
          detected during:
            instantiation of class "std::_Build_index_tuple<_Num> [with _Num=1UL]"
/usr/include/c++/8/functional(389): here
            instantiation of class "std::_Bind<_Functor (_Bound_args...)> [with _Functor=lambda [](std::function<c10::IValue ()>)->void, _Bound_args=<std::function<c10::IValue ()>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h(393): here

/usr/include/c++/8/utility(307): error: expected a ">"
          detected during:
            instantiation of class "std::_Build_index_tuple<_Num> [with _Num=1UL]"
/usr/include/c++/8/functional(389): here
            instantiation of class "std::_Bind<_Functor (_Bound_args...)> [with _Functor=lambda [](std::function<c10::IValue ()>)->void, _Bound_args=<std::function<c10::IValue ()>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h(393): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::string]"
/usr/include/c++/8/bits/stl_uninitialized.h(83): here
            instantiation of "_ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _TrivialValueTypes=false, _InputIterator=__gnu_cxx::__normal_iterator<const std::string *, std::vector<std::string, std::allocator<std::string>>>, _ForwardIterator=std::string *]"
/usr/include/c++/8/bits/stl_uninitialized.h(134): here
            instantiation of "_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator=__gnu_cxx::__normal_iterator<const std::string *, std::vector<std::string, std::allocator<std::string>>>, _ForwardIterator=std::string *]"
/usr/include/c++/8/bits/stl_uninitialized.h(289): here
            instantiation of "_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp> &) [with _InputIterator=__gnu_cxx::__normal_iterator<const std::string *, std::vector<std::string, std::allocator<std::string>>>, _ForwardIterator=std::string *, _Tp=std::string]"
/usr/include/c++/8/bits/stl_vector.h(465): here
            instantiation of "std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc> &) [with _Tp=std::string, _Alloc=std::allocator<std::string>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/qualified_name.h(142): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::ScalarType]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=c10::ScalarType]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=c10::ScalarType]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(318): here
            instantiation of "c10::optional<T>::optional(const c10::optional<T> &) [with T=c10::ScalarType]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/core/TensorOptions.h(212): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=caffe2::TypeMeta]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=caffe2::TypeMeta]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=caffe2::TypeMeta]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(318): here
            instantiation of "c10::optional<T>::optional(const c10::optional<T> &) [with T=caffe2::TypeMeta]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/core/TensorOptions.h(205): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::Layout]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=c10::Layout]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=c10::Layout]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(318): here
            instantiation of "c10::optional<T>::optional(const c10::optional<T> &) [with T=c10::Layout]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/core/TensorOptions.h(227): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::Device]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=c10::Device]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=c10::Device]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(318): here
            instantiation of "c10::optional<T>::optional(const c10::optional<T> &) [with T=c10::Device]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/core/TensorOptions.h(181): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=__nv_bool]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=__nv_bool]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=__nv_bool]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(318): here
            instantiation of "c10::optional<T>::optional(const c10::optional<T> &) [with T=__nv_bool]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/core/TensorOptions.h(234): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::MemoryFormat]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=c10::MemoryFormat]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=c10::MemoryFormat]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(318): here
            instantiation of "c10::optional<T>::optional(const c10::optional<T> &) [with T=c10::MemoryFormat]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/core/TensorOptions.h(248): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=at::Dimname]"
/usr/include/c++/8/bits/stl_uninitialized.h(83): here
            instantiation of "_ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _TrivialValueTypes=false, _InputIterator=const at::Dimname *, _ForwardIterator=at::Dimname *]"
/usr/include/c++/8/bits/stl_uninitialized.h(134): here
            instantiation of "_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator=const at::Dimname *, _ForwardIterator=at::Dimname *]"
/usr/include/c++/8/bits/stl_uninitialized.h(289): here
            instantiation of "_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp> &) [with _InputIterator=const at::Dimname *, _ForwardIterator=at::Dimname *, _Tp=at::Dimname]"
/usr/include/c++/8/bits/stl_vector.h(1471): here
            instantiation of "void std::vector<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _Tp=at::Dimname, _Alloc=std::allocator<at::Dimname>, _ForwardIterator=const at::Dimname *]"
/usr/include/c++/8/bits/stl_vector.h(1437): here
            instantiation of "void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _InputIterator, std::__false_type) [with _Tp=at::Dimname, _Alloc=std::allocator<at::Dimname>, _InputIterator=const at::Dimname *]"
/usr/include/c++/8/bits/stl_vector.h(546): here
            instantiation of "std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const std::vector<_Tp, _Alloc>::allocator_type &) [with _Tp=at::Dimname, _Alloc=std::allocator<at::Dimname>, _InputIterator=const at::Dimname *, <unnamed>=void]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h(221): here
            instantiation of "std::vector<T, std::allocator<T>> c10::ArrayRef<T>::vec() const [with T=at::Dimname]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/NamedTensor.h(30): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=int64_t]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=int64_t]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=int64_t]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(318): here
            instantiation of "c10::optional<T>::optional(const c10::optional<T> &) [with T=int64_t]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/jit_type.h(470): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=at::DimnameList]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=at::DimnameList]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=at::DimnameList]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(327): here
            instantiation of "c10::optional<T>::optional(c10::optional<T> &&) [with T=at::DimnameList]"

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::QEngine]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=c10::QEngine]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=c10::QEngine]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(327): here
            instantiation of "c10::optional<T>::optional(c10::optional<T> &&) [with T=c10::QEngine]"

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=lambda []()->void]"
/usr/include/c++/8/mutex(676): here
            instantiation of "void std::call_once(std::once_flag &, _Callable &&, _Args &&...) [with _Callable=lambda []()->void, _Args=<>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/Context.h(79): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=lambda []()->void]"
/usr/include/c++/8/mutex(676): here
            instantiation of "void std::call_once(std::once_flag &, _Callable &&, _Args &&...) [with _Callable=lambda []()->void, _Args=<>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/Context.h(85): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(289): here
            instantiation of "void c10::optional<T>::clear() [with T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(423): here
            instantiation of "void c10::optional<T>::emplace(Args &&...) [with T=c10::impl::InlineDeviceGuard<c10::impl::VirtualGuardImpl>, Args=<c10::Device &>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h(211): here
            instantiation of "c10::impl::InlineOptionalDeviceGuard<T>::InlineOptionalDeviceGuard(c10::optional<c10::Device>) [with T=c10::impl::VirtualGuardImpl]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/core/DeviceGuard.h(129): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=const at::Tensor]"
/usr/include/c++/8/bits/refwrap.h(298): here
            instantiation of "std::reference_wrapper<_Tp>::reference_wrapper(_Tp &) [with _Tp=const at::Tensor]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/ExpandUtils.h(53): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=at::Tensor]"
/usr/include/c++/8/bits/stl_uninitialized.h(527): here
            instantiation of "_ForwardIterator std::__uninitialized_default_n_1<_TrivialValueType>::__uninit_default_n(_ForwardIterator, _Size) [with _TrivialValueType=false, _ForwardIterator=at::Tensor *, _Size=std::size_t]"
/usr/include/c++/8/bits/stl_uninitialized.h(583): here
            instantiation of "_ForwardIterator std::__uninitialized_default_n(_ForwardIterator, _Size) [with _ForwardIterator=at::Tensor *, _Size=std::size_t]"
/usr/include/c++/8/bits/stl_uninitialized.h(645): here
            instantiation of "_ForwardIterator std::__uninitialized_default_n_a(_ForwardIterator, _Size, std::allocator<_Tp> &) [with _ForwardIterator=at::Tensor *, _Size=std::size_t, _Tp=at::Tensor]"
/usr/include/c++/8/bits/stl_vector.h(1491): here
            instantiation of "void std::vector<_Tp, _Alloc>::_M_default_initialize(std::vector<_Tp, _Alloc>::size_type) [with _Tp=at::Tensor, _Alloc=std::allocator<at::Tensor>]"
/usr/include/c++/8/bits/stl_vector.h(417): here
            instantiation of "std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const std::vector<_Tp, _Alloc>::allocator_type &) [with _Tp=at::Tensor, _Alloc=std::allocator<at::Tensor>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/ExpandUtils.h(140): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::__alloc_rebind<std::allocator<std::mutex>, std::_Sp_counted_ptr_inplace<std::mutex, std::allocator<std::mutex>, __gnu_cxx::_S_atomic>>]"
/usr/include/c++/8/bits/allocated_ptr.h(53): here
            instantiation of "std::__allocated_ptr<_Alloc>::__allocated_ptr(_Alloc &, std::__allocated_ptr<_Alloc>::pointer) [with _Alloc=std::__alloc_rebind<std::allocator<std::mutex>, std::_Sp_counted_ptr_inplace<std::mutex, std::allocator<std::mutex>, __gnu_cxx::_S_atomic>>]"
/usr/include/c++/8/bits/allocated_ptr.h(97): here
            instantiation of "std::__allocated_ptr<_Alloc> std::__allocate_guarded(_Alloc &) [with _Alloc=std::__alloc_rebind<std::allocator<std::mutex>, std::_Sp_counted_ptr_inplace<std::mutex, std::allocator<std::mutex>, __gnu_cxx::_S_atomic>>]"
/usr/include/c++/8/bits/shared_ptr_base.h(675): here
            instantiation of "std::__shared_count<_Lp>::__shared_count(_Tp *&, std::_Sp_alloc_shared_tag<_Alloc>, _Args &&...) [with _Lp=__gnu_cxx::_S_atomic, _Tp=std::mutex, _Alloc=std::allocator<std::mutex>, _Args=<>]"
/usr/include/c++/8/bits/shared_ptr_base.h(1343): here
            instantiation of "std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_alloc_shared_tag<_Alloc>, _Args &&...) [with _Tp=std::mutex, _Lp=__gnu_cxx::_S_atomic, _Alloc=std::allocator<std::mutex>, _Args=<>]"
/usr/include/c++/8/bits/shared_ptr.h(360): here
            instantiation of "std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Alloc>, _Args &&...) [with _Tp=std::mutex, _Alloc=std::allocator<std::mutex>, _Args=<>]"
/usr/include/c++/8/bits/shared_ptr.h(706): here
            instantiation of "std::shared_ptr<_Tp> std::allocate_shared<_Tp,_Alloc,_Args...>(const _Alloc &, _Args &&...) [with _Tp=std::mutex, _Alloc=std::allocator<std::mutex>, _Args=<>]"
/usr/include/c++/8/bits/shared_ptr.h(722): here
            instantiation of "std::shared_ptr<_Tp> std::make_shared<_Tp,_Args...>(_Args &&...) [with _Tp=std::mutex, _Args=<>]"
/usr/include/c++/8/condition_variable(233): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::pair<c10::IValue, c10::IValue>]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::pair<c10::IValue, c10::IValue>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/order_preserving_flat_hash_map.h(206): here
            instantiation of "void ska_ordered::detailv3::sherwood_v3_entry<T>::emplace(int8_t, Args &&...) [with T=std::pair<c10::IValue, c10::IValue>, Args=<std::pair<c10::IValue, c10::IValue>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/order_preserving_flat_hash_map.h(964): here
            instantiation of "std::pair<ska_ordered::detailv3::sherwood_v3_table<T, FindKey, ArgumentHash, Hasher, ArgumentEqual, Equal, ArgumentAlloc, EntryAlloc>::iterator, __nv_bool> ska_ordered::detailv3::sherwood_v3_table<T, FindKey, ArgumentHash, Hasher, ArgumentEqual, Equal, ArgumentAlloc, EntryAlloc>::emplace_new_key(int8_t, ska_ordered::detailv3::sherwood_v3_table<T, FindKey, ArgumentHash, Hasher, ArgumentEqual, Equal, ArgumentAlloc, EntryAlloc>::EntryPointer, Key &&, Args &&...) [with T=std::pair<c10::IValue, c10::IValue>, FindKey=c10::IValue, ArgumentHash=c10::detail::DictKeyHash, Hasher=ska_ordered::detailv3::KeyOrValueHasher<c10::IValue, std::pair<c10::IValue, c10::IValue>, c10::detail::DictKeyHash>, ArgumentEqual=c10::detail::DictKeyEqualTo, Equal=ska_ordered::detailv3::KeyOrValueEquality<c10::IValue, std::pair<c10::IValue, c10::IValue>, c10::detail::DictKeyEqualTo>, ArgumentAlloc=std::allocator<std::pair<c10::IValue, c10::IValue>>, EntryAlloc=std::allocator<ska_ordered::detailv3::sherwood_v3_entry<std::pair<c10::IValue, c10::IValue>>>, Key=std::pair<c10::IValue, c10::IValue>, Args=<>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/order_preserving_flat_hash_map.h(596): here
            instantiation of "std::pair<ska_ordered::detailv3::sherwood_v3_table<T, FindKey, ArgumentHash, Hasher, ArgumentEqual, Equal, ArgumentAlloc, EntryAlloc>::iterator, __nv_bool> ska_ordered::detailv3::sherwood_v3_table<T, FindKey, ArgumentHash, Hasher, ArgumentEqual, Equal, ArgumentAlloc, EntryAlloc>::emplace(Key &&, Args &&...) [with T=std::pair<c10::IValue, c10::IValue>, FindKey=c10::IValue, ArgumentHash=c10::detail::DictKeyHash, Hasher=ska_ordered::detailv3::KeyOrValueHasher<c10::IValue, std::pair<c10::IValue, c10::IValue>, c10::detail::DictKeyHash>, ArgumentEqual=c10::detail::DictKeyEqualTo, Equal=ska_ordered::detailv3::KeyOrValueEquality<c10::IValue, std::pair<c10::IValue, c10::IValue>, c10::detail::DictKeyEqualTo>, ArgumentAlloc=std::allocator<std::pair<c10::IValue, c10::IValue>>, EntryAlloc=std::allocator<ska_ordered::detailv3::sherwood_v3_entry<std::pair<c10::IValue, c10::IValue>>>, Key=std::pair<c10::IValue, c10::IValue>, Args=<>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/order_preserving_flat_hash_map.h(665): here
            [ 3 instantiation contexts not shown ]
            instantiation of "ska_ordered::detailv3::sherwood_v3_table<T, FindKey, ArgumentHash, Hasher, ArgumentEqual, Equal, ArgumentAlloc, EntryAlloc>::sherwood_v3_table(const ska_ordered::detailv3::sherwood_v3_table<T, FindKey, ArgumentHash, Hasher, ArgumentEqual, Equal, ArgumentAlloc, EntryAlloc> &) [with T=std::pair<c10::IValue, c10::IValue>, FindKey=c10::IValue, ArgumentHash=c10::detail::DictKeyHash, Hasher=ska_ordered::detailv3::KeyOrValueHasher<c10::IValue, std::pair<c10::IValue, c10::IValue>, c10::detail::DictKeyHash>, ArgumentEqual=c10::detail::DictKeyEqualTo, Equal=ska_ordered::detailv3::KeyOrValueEquality<c10::IValue, std::pair<c10::IValue, c10::IValue>, c10::detail::DictKeyEqualTo>, ArgumentAlloc=std::allocator<std::pair<c10::IValue, c10::IValue>>, EntryAlloc=std::allocator<ska_ordered::detailv3::sherwood_v3_entry<std::pair<c10::IValue, c10::IValue>>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/intrusive_ptr.h(355): here
            implicit generation of "ska_ordered::order_preserving_flat_hash_map<K, V, H, E, A>::order_preserving_flat_hash_map(const ska_ordered::order_preserving_flat_hash_map<c10::IValue, c10::IValue, c10::detail::DictKeyHash, c10::detail::DictKeyEqualTo, std::allocator<std::pair<c10::IValue, c10::IValue>>> &) [with K=c10::IValue, V=c10::IValue, H=c10::detail::DictKeyHash, E=c10::detail::DictKeyEqualTo, A=std::allocator<std::pair<c10::IValue, c10::IValue>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/intrusive_ptr.h(355): here
            instantiation of class "ska_ordered::order_preserving_flat_hash_map<K, V, H, E, A> [with K=c10::IValue, V=c10::IValue, H=c10::detail::DictKeyHash, E=c10::detail::DictKeyEqualTo, A=std::allocator<std::pair<c10::IValue, c10::IValue>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/intrusive_ptr.h(355): here
            instantiation of "c10::intrusive_ptr<TTarget, NullType> c10::intrusive_ptr<TTarget, NullType>::make(Args &&...) [with TTarget=c10::detail::DictImpl, NullType=c10::detail::intrusive_target_default_null_type<c10::detail::DictImpl>, Args=<const c10::detail::DictImpl::dict_map_type &, const c10::detail::DictImpl::DictElementTypes &>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/intrusive_ptr.h(386): here
            instantiation of "c10::intrusive_ptr<TTarget, NullType> c10::make_intrusive<TTarget,NullType,Args...>(Args &&...) [with TTarget=c10::detail::DictImpl, NullType=c10::detail::intrusive_target_default_null_type<c10::detail::DictImpl>, Args=<const c10::detail::DictImpl::dict_map_type &, const c10::detail::DictImpl::DictElementTypes &>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/Dict_inl.h(57): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::IValue]"
/usr/include/c++/8/bits/stl_construct.h(108): here
            instantiation of "void std::_Destroy_aux<<unnamed>>::__destroy(_ForwardIterator, _ForwardIterator) [with <unnamed>=false, _ForwardIterator=c10::IValue *]"
/usr/include/c++/8/bits/stl_construct.h(137): here
            instantiation of "void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator=c10::IValue *]"
/usr/include/c++/8/bits/stl_construct.h(206): here
            instantiation of "void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_Tp> &) [with _ForwardIterator=c10::IValue *, _Tp=c10::IValue]"
/usr/include/c++/8/bits/stl_vector.h(568): here
            instantiation of "std::vector<_Tp, _Alloc>::~vector() [with _Tp=c10::IValue, _Alloc=std::allocator<c10::IValue>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/List.h(27): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::TypePtr]"
/usr/include/c++/8/bits/stl_uninitialized.h(83): here
            instantiation of "_ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _TrivialValueTypes=false, _InputIterator=const c10::TypePtr *, _ForwardIterator=c10::TypePtr *]"
/usr/include/c++/8/bits/stl_uninitialized.h(134): here
            instantiation of "_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator=const c10::TypePtr *, _ForwardIterator=c10::TypePtr *]"
/usr/include/c++/8/bits/stl_uninitialized.h(289): here
            instantiation of "_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp> &) [with _InputIterator=const c10::TypePtr *, _ForwardIterator=c10::TypePtr *, _Tp=c10::TypePtr]"
/usr/include/c++/8/bits/stl_vector.h(1471): here
            instantiation of "void std::vector<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _Tp=c10::TypePtr, _Alloc=std::allocator<c10::TypePtr>, _ForwardIterator=const c10::TypePtr *]"
/usr/include/c++/8/bits/stl_vector.h(520): here
            instantiation of "std::vector<_Tp, _Alloc>::vector(std::initializer_list<std::vector<_Tp, _Alloc>::value_type>, const std::vector<_Tp, _Alloc>::allocator_type &) [with _Tp=c10::TypePtr, _Alloc=std::allocator<c10::TypePtr>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/jit_type.h(962): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::size_t]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::size_t]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=size_t]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(318): here
            instantiation of "c10::optional<T>::optional(const c10::optional<T> &) [with T=size_t]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/jit_type.h(363): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::Stride]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=c10::Stride]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=c10::Stride]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(318): here
            instantiation of "c10::optional<T>::optional(const c10::optional<T> &) [with T=c10::Stride]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/jit_type.h(379): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::ShapeSymbol]"
/usr/include/c++/8/bits/stl_uninitialized.h(83): here
            instantiation of "_ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _TrivialValueTypes=false, _InputIterator=__gnu_cxx::__normal_iterator<const c10::ShapeSymbol *, std::vector<c10::ShapeSymbol, std::allocator<c10::ShapeSymbol>>>, _ForwardIterator=c10::ShapeSymbol *]"
/usr/include/c++/8/bits/stl_uninitialized.h(134): here
            instantiation of "_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator=__gnu_cxx::__normal_iterator<const c10::ShapeSymbol *, std::vector<c10::ShapeSymbol, std::allocator<c10::ShapeSymbol>>>, _ForwardIterator=c10::ShapeSymbol *]"
/usr/include/c++/8/bits/stl_uninitialized.h(289): here
            instantiation of "_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp> &) [with _InputIterator=__gnu_cxx::__normal_iterator<const c10::ShapeSymbol *, std::vector<c10::ShapeSymbol, std::allocator<c10::ShapeSymbol>>>, _ForwardIterator=c10::ShapeSymbol *, _Tp=c10::ShapeSymbol]"
/usr/include/c++/8/bits/stl_vector.h(465): here
            instantiation of "std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc> &) [with _Tp=c10::ShapeSymbol, _Alloc=std::allocator<c10::ShapeSymbol>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(162): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::vector<c10::ShapeSymbol, std::allocator<c10::ShapeSymbol>>]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::vector<c10::ShapeSymbol, std::allocator<c10::ShapeSymbol>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=std::vector<c10::ShapeSymbol, std::allocator<c10::ShapeSymbol>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(318): here
            instantiation of "c10::optional<T>::optional(const c10::optional<T> &) [with T=std::vector<c10::ShapeSymbol, std::allocator<c10::ShapeSymbol>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/jit_type.h(500): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::vector<c10::optional<c10::Stride>, std::allocator<c10::optional<c10::Stride>>>]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::vector<c10::optional<c10::Stride>, std::allocator<c10::optional<c10::Stride>>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=std::vector<c10::optional<c10::Stride>, std::allocator<c10::optional<c10::Stride>>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(327): here
            instantiation of "c10::optional<T>::optional(c10::optional<T> &&) [with T=std::vector<c10::optional<c10::Stride>, std::allocator<c10::optional<c10::Stride>>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/jit_type.h(599): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::optional<c10::Stride>]"
/usr/include/c++/8/bits/stl_uninitialized.h(83): here
            instantiation of "_ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _TrivialValueTypes=false, _InputIterator=__gnu_cxx::__normal_iterator<const c10::optional<c10::Stride> *, std::vector<c10::optional<c10::Stride>, std::allocator<c10::optional<c10::Stride>>>>, _ForwardIterator=c10::optional<c10::Stride> *]"
/usr/include/c++/8/bits/stl_uninitialized.h(134): here
            instantiation of "_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator=__gnu_cxx::__normal_iterator<const c10::optional<c10::Stride> *, std::vector<c10::optional<c10::Stride>, std::allocator<c10::optional<c10::Stride>>>>, _ForwardIterator=c10::optional<c10::Stride> *]"
/usr/include/c++/8/bits/stl_uninitialized.h(289): here
            instantiation of "_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp> &) [with _InputIterator=__gnu_cxx::__normal_iterator<const c10::optional<c10::Stride> *, std::vector<c10::optional<c10::Stride>, std::allocator<c10::optional<c10::Stride>>>>, _ForwardIterator=c10::optional<c10::Stride> *, _Tp=c10::optional<c10::Stride>]"
/usr/include/c++/8/bits/stl_vector.h(465): here
            instantiation of "std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc> &) [with _Tp=c10::optional<c10::Stride>, _Alloc=std::allocator<c10::optional<c10::Stride>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(297): here
            instantiation of "void c10::optional<T>::initialize(Args &&...) [with T=std::vector<c10::optional<c10::Stride>, std::allocator<c10::optional<c10::Stride>>>, Args=<const std::vector<c10::optional<c10::Stride>, std::allocator<c10::optional<c10::Stride>>> &>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(388): here
            instantiation of "c10::optional<T> &c10::optional<T>::operator=(const c10::optional<T> &) [with T=std::vector<c10::optional<c10::Stride>, std::allocator<c10::optional<c10::Stride>>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/jit_type.h(599): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::vector<int64_t, std::allocator<int64_t>>]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::vector<int64_t, std::allocator<int64_t>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=std::vector<int64_t, std::allocator<int64_t>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(327): here
            instantiation of "c10::optional<T>::optional(c10::optional<T> &&) [with T=std::vector<int64_t, std::allocator<int64_t>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/ivalue.h(58): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::QualifiedName]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=c10::QualifiedName]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=c10::QualifiedName]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(318): here
            instantiation of "c10::optional<T>::optional(const c10::optional<T> &) [with T=c10::QualifiedName]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/jit_type.h(1122): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=c10::EnumNameValue]"
/usr/include/c++/8/bits/stl_construct.h(108): here
            instantiation of "void std::_Destroy_aux<<unnamed>>::__destroy(_ForwardIterator, _ForwardIterator) [with <unnamed>=false, _ForwardIterator=c10::EnumNameValue *]"
/usr/include/c++/8/bits/stl_construct.h(137): here
            instantiation of "void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator=c10::EnumNameValue *]"
/usr/include/c++/8/bits/stl_construct.h(206): here
            instantiation of "void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_Tp> &) [with _ForwardIterator=c10::EnumNameValue *, _Tp=c10::EnumNameValue]"
/usr/include/c++/8/bits/stl_vector.h(568): here
            instantiation of "std::vector<_Tp, _Alloc>::~vector() [with _Tp=c10::EnumNameValue, _Alloc=std::allocator<c10::EnumNameValue>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/jit_type.h(1175): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::function<void ()>]"
/usr/include/c++/8/bits/stl_construct.h(108): here
            instantiation of "void std::_Destroy_aux<<unnamed>>::__destroy(_ForwardIterator, _ForwardIterator) [with <unnamed>=false, _ForwardIterator=std::function<void ()> *]"
/usr/include/c++/8/bits/stl_construct.h(137): here
            instantiation of "void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator=std::function<void ()> *]"
/usr/include/c++/8/bits/stl_construct.h(206): here
            instantiation of "void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_Tp> &) [with _ForwardIterator=std::function<void ()> *, _Tp=std::function<void ()>]"
/usr/include/c++/8/bits/stl_vector.h(568): here
            instantiation of "std::vector<_Tp, _Alloc>::~vector() [with _Tp=std::function<void ()>, _Alloc=std::allocator<std::function<void ()>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h(253): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::mutex]"
/usr/include/c++/8/bits/std_mutex.h(195): here
            instantiation of "std::unique_lock<_Mutex>::unique_lock(std::unique_lock<_Mutex>::mutex_type &) [with _Mutex=std::mutex]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h(271): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=const std::_Bind<lambda [](std::function<c10::IValue ()>)->void (std::function<c10::IValue ()>)>]"
/usr/include/c++/8/bits/std_function.h(155): here
            instantiation of "_Functor *std::_Function_base::_Base_manager<_Functor>::_M_get_pointer(const std::_Any_data &) [with _Functor=std::_Bind<lambda [](std::function<c10::IValue ()>)->void (std::function<c10::IValue ()>)>]"
/usr/include/c++/8/bits/std_function.h(297): here
            instantiation of "void std::_Function_handler<void (_ArgTypes...), _Functor>::_M_invoke(const std::_Any_data &, _ArgTypes &&...) [with _Functor=std::_Bind<lambda [](std::function<c10::IValue ()>)->void (std::function<c10::IValue ()>)>, _ArgTypes=<>]"
/usr/include/c++/8/bits/std_function.h(675): here
            instantiation of "std::function<_Res (_ArgTypes...)>::function(_Functor) [with _Res=void, _ArgTypes=<>, _Functor=std::_Bind<lambda [](std::function<c10::IValue ()>)->void (std::function<c10::IValue ()>)>, <unnamed>=void, <unnamed>=void]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h(385): here

/usr/include/c++/8/functional(482): error: no instance of function template "std::_Bind<_Functor (_Bound_args...)>::__call [with _Functor=lambda [](std::function<c10::IValue ()>)->void, _Bound_args=<std::function<c10::IValue ()>>]" matches the argument list
            argument types are: (std::tuple<>, <error-type>)
            object type is: std::_Bind<lambda [](std::function<c10::IValue ()>)->void (std::function<c10::IValue ()>)>
          detected during:
            instantiation of "_Result std::_Bind<_Functor (_Bound_args...)>::operator()(_Args &&...) [with _Functor=lambda [](std::function<c10::IValue ()>)->void, _Bound_args=<std::function<c10::IValue ()>>, _Args=<>, _Result=void]"
/usr/include/c++/8/bits/std_function.h(298): here
            instantiation of "void std::_Function_handler<void (_ArgTypes...), _Functor>::_M_invoke(const std::_Any_data &, _ArgTypes &&...) [with _Functor=std::_Bind<lambda [](std::function<c10::IValue ()>)->void (std::function<c10::IValue ()>)>, _ArgTypes=<>]"
/usr/include/c++/8/bits/std_function.h(675): here
            instantiation of "std::function<_Res (_ArgTypes...)>::function(_Functor) [with _Res=void, _ArgTypes=<>, _Functor=std::_Bind<lambda [](std::function<c10::IValue ()>)->void (std::function<c10::IValue ()>)>, <unnamed>=void, <unnamed>=void]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h(385): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=const std::string]"
/usr/include/c++/8/bits/refwrap.h(298): here
            instantiation of "std::reference_wrapper<_Tp>::reference_wrapper(_Tp &) [with _Tp=const std::string]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h(1082): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::reference_wrapper<const std::string>]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::reference_wrapper<const std::string>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=std::reference_wrapper<const std::string>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(327): here
            instantiation of "c10::optional<T>::optional(c10::optional<T> &&) [with T=std::reference_wrapper<const std::string>]"

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::vector<double, std::allocator<double>>]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::vector<double, std::allocator<double>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=std::vector<double, std::allocator<double>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(327): here
            instantiation of "c10::optional<T>::optional(c10::optional<T> &&) [with T=std::vector<double, std::allocator<double>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/core/ivalue.h(58): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=at::OperandInfo]"
/usr/include/c++/8/bits/stl_uninitialized.h(83): here
            instantiation of "_ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _TrivialValueTypes=false, _InputIterator=std::move_iterator<at::OperandInfo *>, _ForwardIterator=at::OperandInfo *]"
/usr/include/c++/8/bits/stl_uninitialized.h(134): here
            instantiation of "_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator=std::move_iterator<at::OperandInfo *>, _ForwardIterator=at::OperandInfo *]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/SmallVector.h(252): here
            instantiation of "void c10::SmallVectorTemplateBase<T, isPodLike>::uninitialized_move(It1, It1, It2) [with T=at::OperandInfo, isPodLike=false, It1=at::OperandInfo *, It2=at::OperandInfo *]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/SmallVector.h(302): here
            instantiation of "void c10::SmallVectorTemplateBase<T, isPodLike>::grow(size_t) [with T=at::OperandInfo, isPodLike=false]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/SmallVector.h(903): here
            instantiation of "c10::SmallVectorImpl<T> &c10::SmallVectorImpl<T>::operator=(c10::SmallVectorImpl<T> &&) [with T=at::OperandInfo]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/SmallVector.h(994): here
            instantiation of "c10::SmallVector<T, N>::SmallVector(c10::SmallVector<T, N> &&) [with T=at::OperandInfo, N=4U]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/native/TensorIterator.h(381): here

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=at::DimVector]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=at::DimVector]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=at::DimVector]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(327): here
            instantiation of "c10::optional<T>::optional(c10::optional<T> &&) [with T=at::DimVector]"

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::pair<c10::ScalarType, c10::Device>]"
(139): here
            instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::pair<c10::ScalarType, c10::Device>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(271): here
            instantiation of "std::remove_const<T>::type *c10::optional<T>::dataptr() [with T=std::pair<c10::ScalarType, c10::Device>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/c10/util/Optional.h(327): here
            instantiation of "c10::optional<T>::optional(c10::optional<T> &&) [with T=std::pair<c10::ScalarType, c10::Device>]"

/usr/include/c++/8/bits/move.h(48): error: identifier "__builtin_addressof" is undefined
          detected during:
            instantiation of "_Tp *std::__addressof(_Tp &) [with _Tp=std::unique_ptr<at::TensorIterator, std::default_delete<at::TensorIterator>>]"
/usr/include/c++/8/bits/stl_construct.h(108): here
            instantiation of "void std::_Destroy_aux<<unnamed>>::__destroy(_ForwardIterator, _ForwardIterator) [with <unnamed>=false, _ForwardIterator=std::unique_ptr<at::TensorIterator, std::default_delete<at::TensorIterator>> *]"
/usr/include/c++/8/bits/stl_construct.h(137): here
            instantiation of "void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator=std::unique_ptr<at::TensorIterator, std::default_delete<at::TensorIterator>> *]"
/usr/include/c++/8/bits/stl_construct.h(206): here
            instantiation of "void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_Tp> &) [with _ForwardIterator=std::unique_ptr<at::TensorIterator, std::default_delete<at::TensorIterator>> *, _Tp=std::unique_ptr<at::TensorIterator, std::default_delete<at::TensorIterator>>]"
/usr/include/c++/8/bits/stl_vector.h(568): here
            instantiation of "std::vector<_Tp, _Alloc>::~vector() [with _Tp=std::unique_ptr<at::TensorIterator, std::default_delete<at::TensorIterator>>, _Alloc=std::allocator<std::unique_ptr<at::TensorIterator, std::default_delete<at::TensorIterator>>>]"
/home/zilia/Documents/Projects/zilia-segmentation-onh/env/lib/python3.7/site-packages/torch/include/ATen/native/TensorIterator.h(509): here

45 errors detected in the compilation of "/tmp/tmpxft_00044a52_00000000-6_inplace_abn_cuda.cpp1.ii".
error: command '/usr/bin/nvcc' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /home/zilia/Documents/Projects/zilia-segmentation-onh/env/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gblzgvtx/inplace-abn_aeedf16dcabb4732b6875bf839efe376/setup.py'"'"'; file='"'"'/tmp/pip-install-gblzgvtx/inplace-abn_aeedf16dcabb4732b6875bf839efe376/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-ordiazpv/install-record.txt --single-version-externally-managed --compile --install-headers /home/zilia/Documents/Projects/zilia-segmentation-onh/env/include/site/python3.7/inplace-abn Check the logs for full command output.

Eric2Hamel avatar Feb 03 '21 19:02 Eric2Hamel

for me, change 'export CUDA_HOME=$CUDA_HOME:/usr/local/cuda' to 'export CUDA_HOME=/usr/local/cuda' in .bashrc then it works

Ranqing avatar Mar 16 '22 03:03 Ranqing