HELP: pytorch not building with xpu-master patches
See original GitHub issuePlease find below the error that occured when I tried building pytorch 1.10.0 with the xpu-master branch patches using the instructions from here:
I don’t know how deep this rabbit hole of errors can and will go, but frankly if I keep end up running into compilation errors like these I might just abandon the idea of using Intel XPUs to do any sort of machine learning (including my plans of purchasing an Arc for the task). 😕
[2940/6776] Building CXX object third_party/ideep/mkl-...ommon/CMakeFiles/dnnl_common.dir/primitive_cache.cpp.o
FAILED: third_party/ideep/mkl-dnn/src/common/CMakeFiles/dnnl_common.dir/primitive_cache.cpp.o
/usr/bin/c++ -DDNNL_ENABLE_CONCURRENT_EXEC -DDNNL_ENABLE_CPU_ISA_HINTS -DDNNL_ENABLE_ITT_TASKS -DDNNL_ENABLE_MAX_CPU_ISA -DDNNL_X64=1 -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/home/tedliosu/Documents/all_git/pytorch/cmake/../third_party/benchmark/include -I/home/tedliosu/Documents/all_git/pytorch/cmake/../third_party/cudnn_frontend/include -I/home/tedliosu/Documents/all_git/pytorch/build/caffe2/contrib/aten -I/home/tedliosu/Documents/all_git/pytorch/third_party/onnx -I/home/tedliosu/Documents/all_git/pytorch/build/third_party/onnx -I/home/tedliosu/Documents/all_git/pytorch/third_party/foxi -I/home/tedliosu/Documents/all_git/pytorch/build/third_party/foxi -I/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/include -I/home/tedliosu/Documents/all_git/pytorch/build/third_party/ideep/mkl-dnn/include -I/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src -isystem /home/tedliosu/Documents/all_git/pytorch/build/third_party/gloo -isystem /home/tedliosu/Documents/all_git/pytorch/cmake/../third_party/gloo -isystem /home/tedliosu/Documents/all_git/pytorch/cmake/../third_party/googletest/googlemock/include -isystem /home/tedliosu/Documents/all_git/pytorch/cmake/../third_party/googletest/googletest/include -isystem /home/tedliosu/Documents/all_git/pytorch/third_party/protobuf/src -isystem /home/tedliosu/Documents/all_git/pytorch/third_party/gemmlowp -isystem /home/tedliosu/Documents/all_git/pytorch/third_party/neon2sse -isystem /home/tedliosu/Documents/all_git/pytorch/third_party/XNNPACK/include -isystem /home/tedliosu/Documents/all_git/pytorch/third_party -isystem /home/tedliosu/Documents/all_git/pytorch/cmake/../third_party/eigen -isystem /home/tedliosu/anaconda3/include/python3.9 -isystem /home/tedliosu/intel_pytorch_prereqs_build/lib/python3.9/site-packages/numpy/core/include -isystem /home/tedliosu/Documents/all_git/pytorch/cmake/../third_party/pybind11/include -isystem /opt/intel/oneapi/mpi/2021.7.0/include -isystem /usr/local/cuda/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -fopenmp -fvisibility-inlines-hidden -Wall -Wno-unknown-pragmas -fvisibility=internal -msse4 -fPIC -Wformat -Wformat-security -fstack-protector-strong -std=c++11 -Wmissing-field-initializers -Wno-strict-overflow -O3 -DNDEBUG -DNDEBUG -D_FORTIFY_SOURCE=2 -fPIC -DCAFFE2_USE_GLOO -DCUDA_HAS_FP16=1 -DHAVE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -std=gnu++14 -MD -MT third_party/ideep/mkl-dnn/src/common/CMakeFiles/dnnl_common.dir/primitive_cache.cpp.o -MF third_party/ideep/mkl-dnn/src/common/CMakeFiles/dnnl_common.dir/primitive_cache.cpp.o.d -o third_party/ideep/mkl-dnn/src/common/CMakeFiles/dnnl_common.dir/primitive_cache.cpp.o -c /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp: In member function ‘virtual void dnnl::impl::lru_primitive_cache_t::update_entry(const key_t&, const dnnl::impl::primitive_desc_t*)’:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:60: error: no match for ‘operator!=’ (operand types are ‘const std::thread::id’ and ‘const std::thread::id’)
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~~
| | |
| | const std::thread::id
| const std::thread::id
In file included from /usr/include/c++/11/utility:70,
from /usr/include/c++/11/tuple:38,
from /usr/include/c++/11/mutex:38,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/stl_pair.h:496:5: note: candidate: ‘template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)’
496 | operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/11/bits/stl_pair.h:496:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::pair<_T1, _T2>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/array:40,
from /usr/include/c++/11/tuple:39,
from /usr/include/c++/11/mutex:38,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/stl_iterator.h:428:5: note: candidate: ‘template<class _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)’
428 | operator!=(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_iterator.h:428:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::reverse_iterator<_Iterator>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/array:40,
from /usr/include/c++/11/tuple:39,
from /usr/include/c++/11/mutex:38,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/stl_iterator.h:467:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)’
467 | operator!=(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_iterator.h:467:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::reverse_iterator<_Iterator>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/array:40,
from /usr/include/c++/11/tuple:39,
from /usr/include/c++/11/mutex:38,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/stl_iterator.h:1550:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)’
1550 | operator!=(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_iterator.h:1550:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::move_iterator<_IteratorL>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/bits/stl_algobase.h:67,
from /usr/include/c++/11/array:40,
from /usr/include/c++/11/tuple:39,
from /usr/include/c++/11/mutex:38,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/stl_iterator.h:1607:5: note: candidate: ‘template<class _Iterator> bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)’
1607 | operator!=(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_iterator.h:1607:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::move_iterator<_IteratorL>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/tuple:39,
from /usr/include/c++/11/mutex:38,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/array:305:5: note: candidate: ‘template<class _Tp, long unsigned int _Nm> bool std::operator!=(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&)’
305 | operator!=(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
| ^~~~~~~~
/usr/include/c++/11/array:305:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::array<_Tp, _Nm>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/mutex:38,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/tuple:1531:5: note: candidate: ‘template<class ... _TElements, class ... _UElements> constexpr bool std::operator!=(const std::tuple<_Tps ...>&, const std::tuple<_Elements ...>&)’
1531 | operator!=(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/11/tuple:1531:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::tuple<_Tps ...>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/iosfwd:40,
from /usr/include/c++/11/system_error:40,
from /usr/include/c++/11/mutex:42,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/postypes.h:227:5: note: candidate: ‘template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)’
227 | operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c++/11/bits/postypes.h:227:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::fpos<_StateT>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/string:41,
from /usr/include/c++/11/stdexcept:39,
from /usr/include/c++/11/system_error:41,
from /usr/include/c++/11/mutex:42,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/allocator.h:213:5: note: candidate: ‘template<class _T1, class _T2> bool std::operator!=(const std::allocator<_CharT>&, const std::allocator<_T2>&)’
213 | operator!=(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/11/bits/allocator.h:213:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::allocator<_CharT>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/stdexcept:39,
from /usr/include/c++/11/system_error:41,
from /usr/include/c++/11/mutex:42,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/basic_string.h:6288:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
6288 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6288:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/stdexcept:39,
from /usr/include/c++/11/system_error:41,
from /usr/include/c++/11/mutex:42,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/basic_string.h:6301:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const _CharT*, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)’
6301 | operator!=(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6301:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: mismatched types ‘const _CharT*’ and ‘std::thread::id’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/string:55,
from /usr/include/c++/11/stdexcept:39,
from /usr/include/c++/11/system_error:41,
from /usr/include/c++/11/mutex:42,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/basic_string.h:6313:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)’
6313 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/11/bits/basic_string.h:6313:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/bits/shared_ptr_base.h:59,
from /usr/include/c++/11/bits/shared_ptr.h:53,
from /usr/include/c++/11/condition_variable:43,
from /usr/include/c++/11/future:39,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/unique_ptr.h:774:5: note: candidate: ‘template<class _Tp, class _Dp, class _Up, class _Ep> bool std::operator!=(const std::unique_ptr<_Tp, _Dp>&, const std::unique_ptr<_Up, _Ep>&)’
774 | operator!=(const unique_ptr<_Tp, _Dp>& __x,
| ^~~~~~~~
/usr/include/c++/11/bits/unique_ptr.h:774:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::unique_ptr<_Tp, _Dp>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/bits/shared_ptr_base.h:59,
from /usr/include/c++/11/bits/shared_ptr.h:53,
from /usr/include/c++/11/condition_variable:43,
from /usr/include/c++/11/future:39,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/unique_ptr.h:781:5: note: candidate: ‘template<class _Tp, class _Dp> bool std::operator!=(const std::unique_ptr<_Tp, _Dp>&, std::nullptr_t)’
781 | operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
| ^~~~~~~~
/usr/include/c++/11/bits/unique_ptr.h:781:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::unique_ptr<_Tp, _Dp>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/bits/shared_ptr_base.h:59,
from /usr/include/c++/11/bits/shared_ptr.h:53,
from /usr/include/c++/11/condition_variable:43,
from /usr/include/c++/11/future:39,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/unique_ptr.h:787:5: note: candidate: ‘template<class _Tp, class _Dp> bool std::operator!=(std::nullptr_t, const std::unique_ptr<_Tp, _Dp>&)’
787 | operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
| ^~~~~~~~
/usr/include/c++/11/bits/unique_ptr.h:787:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::unique_ptr<_Tp, _Dp>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/bits/shared_ptr.h:53,
from /usr/include/c++/11/condition_variable:43,
from /usr/include/c++/11/future:39,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/shared_ptr_base.h:1436:5: note: candidate: ‘template<class _Tp1, class _Tp2, __gnu_cxx::_Lock_policy _Lp> bool std::operator!=(const std::__shared_ptr<_Tp1, _Lp>&, const std::__shared_ptr<_Tp2, _Lp>&)’
1436 | operator!=(const __shared_ptr<_Tp1, _Lp>& __a,
| ^~~~~~~~
/usr/include/c++/11/bits/shared_ptr_base.h:1436:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::__shared_ptr<_Tp1, _Lp>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/bits/shared_ptr.h:53,
from /usr/include/c++/11/condition_variable:43,
from /usr/include/c++/11/future:39,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/shared_ptr_base.h:1442:5: note: candidate: ‘template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::operator!=(const std::__shared_ptr<_Tp, _Lp>&, std::nullptr_t)’
1442 | operator!=(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept
| ^~~~~~~~
/usr/include/c++/11/bits/shared_ptr_base.h:1442:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::__shared_ptr<_Tp, _Lp>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/bits/shared_ptr.h:53,
from /usr/include/c++/11/condition_variable:43,
from /usr/include/c++/11/future:39,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/shared_ptr_base.h:1447:5: note: candidate: ‘template<class _Tp, __gnu_cxx::_Lock_policy _Lp> bool std::operator!=(std::nullptr_t, const std::__shared_ptr<_Tp, _Lp>&)’
1447 | operator!=(nullptr_t, const __shared_ptr<_Tp, _Lp>& __a) noexcept
| ^~~~~~~~
/usr/include/c++/11/bits/shared_ptr_base.h:1447:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::__shared_ptr<_Tp, _Lp>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/condition_variable:43,
from /usr/include/c++/11/future:39,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/shared_ptr.h:470:5: note: candidate: ‘template<class _Tp, class _Up> bool std::operator!=(const std::shared_ptr<_Tp>&, const std::shared_ptr<_Tp>&)’
470 | operator!=(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept
| ^~~~~~~~
/usr/include/c++/11/bits/shared_ptr.h:470:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::shared_ptr<_Tp>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/condition_variable:43,
from /usr/include/c++/11/future:39,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/shared_ptr.h:476:5: note: candidate: ‘template<class _Tp> bool std::operator!=(const std::shared_ptr<_Tp>&, std::nullptr_t)’
476 | operator!=(const shared_ptr<_Tp>& __a, nullptr_t) noexcept
| ^~~~~~~~
/usr/include/c++/11/bits/shared_ptr.h:476:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::shared_ptr<_Tp>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/condition_variable:43,
from /usr/include/c++/11/future:39,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/shared_ptr.h:482:5: note: candidate: ‘template<class _Tp> bool std::operator!=(std::nullptr_t, const std::shared_ptr<_Tp>&)’
482 | operator!=(nullptr_t, const shared_ptr<_Tp>& __a) noexcept
| ^~~~~~~~
/usr/include/c++/11/bits/shared_ptr.h:482:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::shared_ptr<_Tp>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/future:47,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/std_function.h:707:5: note: candidate: ‘template<class _Res, class ... _Args> bool std::operator!=(const std::function<_Res(_ArgTypes ...)>&, std::nullptr_t)’
707 | operator!=(const function<_Res(_Args...)>& __f, nullptr_t) noexcept
| ^~~~~~~~
/usr/include/c++/11/bits/std_function.h:707:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::function<_Res(_ArgTypes ...)>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/future:47,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/std_function.h:713:5: note: candidate: ‘template<class _Res, class ... _Args> bool std::operator!=(std::nullptr_t, const std::function<_Res(_ArgTypes ...)>&)’
713 | operator!=(nullptr_t, const function<_Res(_Args...)>& __f) noexcept
| ^~~~~~~~
/usr/include/c++/11/bits/std_function.h:713:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::function<_Res(_ArgTypes ...)>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/list:63,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:21,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/stl_list.h:2057:5: note: candidate: ‘template<class _Tp, class _Alloc> bool std::operator!=(const std::__cxx11::list<_Tp, _Alloc>&, const std::__cxx11::list<_Tp, _Alloc>&)’
2057 | operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
| ^~~~~~~~
/usr/include/c++/11/bits/stl_list.h:2057:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::__cxx11::list<_Tp, _Alloc>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/unordered_map:47,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:23,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/unordered_map.h:2141:5: note: candidate: ‘template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator!=(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&, const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&)’
2141 | operator!=(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
| ^~~~~~~~
/usr/include/c++/11/bits/unordered_map.h:2141:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/unordered_map:47,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:23,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/unordered_map.h:2155:5: note: candidate: ‘template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator!=(const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&, const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&)’
2155 | operator!=(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x,
| ^~~~~~~~
/usr/include/c++/11/bits/unordered_map.h:2155:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/vector:67,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/internal_desc_types.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/c_types_map.hpp:23,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:25,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/stl_vector.h:1937:5: note: candidate: ‘template<class _Tp, class _Alloc> bool std::operator!=(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)’
1937 | operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
| ^~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1937:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::vector<_Tp, _Alloc>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/map:61,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_attr.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_hashing.hpp:25,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:27,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/stl_map.h:1508:5: note: candidate: ‘template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator!=(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&)’
1508 | operator!=(const map<_Key, _Tp, _Compare, _Alloc>& __x,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_map.h:1508:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::map<_Key, _Tp, _Compare, _Alloc>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /usr/include/c++/11/map:62,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_attr.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_hashing.hpp:25,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:27,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/bits/stl_multimap.h:1173:5: note: candidate: ‘template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator!=(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&)’
1173 | operator!=(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
| ^~~~~~~~
/usr/include/c++/11/bits/stl_multimap.h:1173:5: note: template argument deduction/substitution failed:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:155:77: note: ‘const std::thread::id’ is not derived from ‘const std::multimap<_Key, _Tp, _Compare, _Alloc>’
155 | if (it == cache_mapper_.end() || it->first.thread_id() != key.thread_id())
| ^
In file included from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_attr.hpp:27,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_hashing.hpp:25,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:27,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/type_helpers.hpp:314:13: note: candidate: ‘bool dnnl::impl::operator!=(const memory_desc_t&, const memory_desc_t&)’
314 | inline bool operator!=(const memory_desc_t &lhs, const memory_desc_t &rhs) {
| ^~~~~~~~
/home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/type_helpers.hpp:314:45: note: no known conversion for argument 1 from ‘const std::thread::id’ to ‘const memory_desc_t&’ {aka ‘const dnnl_memory_desc_t&’}
314 | inline bool operator!=(const memory_desc_t &lhs, const memory_desc_t &rhs) {
| ~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/11/mutex:42,
from /usr/include/c++/11/future:38,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.hpp:20,
from /home/tedliosu/Documents/all_git/pytorch/third_party/ideep/mkl-dnn/src/common/primitive_cache.cpp:17:
/usr/include/c++/11/system_error:400:3: note: candidate: ‘bool std::operator!=(const std::error_code&, const std::error_code&)’
400 | operator!=(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/11/system_error:400:32: note: no known conversion for argument 1 from ‘const std::thread::id’ to ‘const std::error_code&’
400 | operator!=(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/system_error:406:3: note: candidate: ‘bool std::operator!=(const std::error_code&, const std::error_condition&)’
406 | operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/11/system_error:406:32: note: no known conversion for argument 1 from ‘const std::thread::id’ to ‘const std::error_code&’
406 | operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/system_error:412:3: note: candidate: ‘bool std::operator!=(const std::error_condition&, const std::error_code&)’
412 | operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/11/system_error:412:37: note: no known conversion for argument 1 from ‘const std::thread::id’ to ‘const std::error_condition&’
412 | operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/11/system_error:417:3: note: candidate: ‘bool std::operator!=(const std::error_condition&, const std::error_condition&)’
417 | operator!=(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/11/system_error:417:37: note: no known conversion for argument 1 from ‘const std::thread::id’ to ‘const std::error_condition&’
417 | operator!=(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
[2953/6776] Building CXX object third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmI8Depthwise3DAvx2.cc.o
ninja: build stopped: subcommand failed.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
F32 Example Training Gets Stuck after One Iteration of For Loop
What needs to mention is that the official support to IPEX GPU currently is only ... HELP: pytorch not building with xpu-master patches...
Read more >Start Locally - PyTorch
To install PyTorch via pip, and do not have a CUDA-capable or ROCm-capable system or do not require CUDA/ROCm (i.e. GPU support), in...
Read more >Patch Making Does Pytorch have Anything to Offer?
I am in the process of making my first CNN challenge and so far what has amazed me is that Pytorch offers almost...
Read more >PyTorch
An open source machine learning framework that accelerates the path from research prototyping to production deployment.
Read more >torch.package — PyTorch 1.13 documentation
torch.package adds support for creating packages containing both artifacts and arbitrary ... This module depends on the pickle module which is not secure....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@tedliosu pytorch is still using c++14 by the way. The build script should force that usage. It was recently made c++17 compatible in 1.13 but c++20 is unexpected compiler flag.
This is the method I use to build libtorch, with the settings/options set by environment variables: python3 …/tools/build_libtorch.py
I typically use g+±11 to support the latest CUDA but I have no problems building with any of g+±9/10/11.
Thanks a lot for your tests and findings @tedliosu . My instinct is the compiling error issue is compiler version related as from error msg we see operand ‘!=’ is unmatched, which shouldn’t be the case as thread id comparison operand are implemented in std::thread lib. There might be some new constraints for const ID& comparison operands usage in later g++. We 'll check about this. Thanks again for your valuable findings.