Raunak-Singh-Inventor commented on issue #20144:
URL: 
https://github.com/apache/incubator-mxnet/issues/20144#issuecomment-816324297


   @leezu Disabling `onednn` fixed it. I and getting a new error now when 
running `cmake --build .`
   
   ```
   [ 61%] Building CXX object 
CMakeFiles/mxnet.dir/src/operator/numpy/np_ediff1d_op.cc.o
   [ 61%] Building CXX object 
CMakeFiles/mxnet.dir/src/operator/numpy/np_einsum_op.cc.o
   In file included from /usr/include/c++/8/vector:69,
                    from /home/pi/mxnet/include/dmlc/registry.h:11,
                    from /home/pi/mxnet/include/mxnet/operator_util.h:37,
                    from 
/home/pi/mxnet/src/operator/numpy/./np_einsum_op-inl.h:65,
                    from /home/pi/mxnet/src/operator/numpy/np_einsum_op.cc:58:
   /usr/include/c++/8/bits/vector.tcc: In member function ‘std::vector<_Tp, 
_Alloc>::iterator std::vector<_Tp, _Alloc>::_M_erase(std::vector<_Tp, 
_Alloc>::iterator) [with _Tp = mxnet::op::Alternative; _Alloc = 
std::allocator<mxnet::op::Alternative>]’:
   /usr/include/c++/8/bits/vector.tcc:159:5: note: parameter passing for 
argument of type ‘std::vector<mxnet::op::Alternative>::iterator’ {aka 
‘__gnu_cxx::__normal_iterator<mxnet::op::Alternative*, 
std::vector<mxnet::op::Alternative> >’} changed in GCC 7.1
        vector<_Tp, _Alloc>::
        ^~~~~~~~~~~~~~~~~~~
   /usr/include/c++/8/bits/vector.tcc: In member function ‘void 
std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, 
_Args&& ...) [with _Args = {const mxnet::op::Alternative&}; _Tp = 
mxnet::op::Alternative; _Alloc = std::allocator<mxnet::op::Alternative>]’:
   /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for 
argument of type ‘std::vector<mxnet::op::Alternative>::iterator’ {aka 
‘__gnu_cxx::__normal_iterator<mxnet::op::Alternative*, 
std::vector<mxnet::op::Alternative> >’} changed in GCC 7.1
          vector<_Tp, _Alloc>::
          ^~~~~~~~~~~~~~~~~~~
   In file included from /usr/include/c++/8/vector:64,
                    from /home/pi/mxnet/include/dmlc/registry.h:11,
                    from /home/pi/mxnet/include/mxnet/operator_util.h:37,
                    from 
/home/pi/mxnet/src/operator/numpy/./np_einsum_op-inl.h:65,
                    from /home/pi/mxnet/src/operator/numpy/np_einsum_op.cc:58:
   /usr/include/c++/8/bits/stl_vector.h: In function ‘void 
mxnet::op::_update_other_results(std::vector<mxnet::op::Alternative>*, const 
mxnet::op::Alternative&)’:
   /usr/include/c++/8/bits/stl_vector.h:1318:58: note: parameter passing for 
argument of type ‘__gnu_cxx::__normal_iterator<mxnet::op::Alternative*, 
std::vector<mxnet::op::Alternative> >’ changed in GCC 7.1
          { return _M_erase(begin() + (__position - cbegin())); }
                                                             ^
   /usr/include/c++/8/bits/stl_vector.h: In function 
‘std::vector<std::vector<int> > mxnet::op::_greedy_path(const SetVector*, const 
std::bitset<128>&, const dim_t*, size_t)’:
   /usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for 
argument of type ‘__gnu_cxx::__normal_iterator<mxnet::op::Alternative*, 
std::vector<mxnet::op::Alternative> >’ changed in GCC 7.1
       _M_realloc_insert(end(), __x);
       ^~~~~~~~~~~~~~~~~
   /usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for 
argument of type ‘__gnu_cxx::__normal_iterator<mxnet::op::Alternative*, 
std::vector<mxnet::op::Alternative> >’ changed in GCC 7.1
       _M_realloc_insert(end(), __x);
       ^~~~~~~~~~~~~~~~~
   /usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for 
argument of type ‘__gnu_cxx::__normal_iterator<mxnet::op::Alternative*, 
std::vector<mxnet::op::Alternative> >’ changed in GCC 7.1
       _M_realloc_insert(end(), __x);
       ^~~~~~~~~~~~~~~~~
   In file included from /usr/include/c++/8/vector:69,
                    from /home/pi/mxnet/include/dmlc/registry.h:11,
                    from /home/pi/mxnet/include/mxnet/operator_util.h:37,
                    from 
/home/pi/mxnet/src/operator/numpy/./np_einsum_op-inl.h:65,
                    from /home/pi/mxnet/src/operator/numpy/np_einsum_op.cc:58:
   /usr/include/c++/8/bits/vector.tcc: In member function ‘std::vector<_Tp, 
_Alloc>::iterator std::vector<_Tp, _Alloc>::_M_erase(std::vector<_Tp, 
_Alloc>::iterator) [with _Tp = mxnet::TBlob; _Alloc = 
std::allocator<mxnet::TBlob>]’:
   /usr/include/c++/8/bits/vector.tcc:159:5: note: parameter passing for 
argument of type ‘std::vector<mxnet::TBlob>::iterator’ {aka 
‘__gnu_cxx::__normal_iterator<mxnet::TBlob*, std::vector<mxnet::TBlob> >’} 
changed in GCC 7.1
        vector<_Tp, _Alloc>::
        ^~~~~~~~~~~~~~~~~~~
   /usr/include/c++/8/bits/vector.tcc: In member function ‘void 
std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, 
_Args&& ...) [with _Args = {mxnet::TBlob}; _Tp = mxnet::TBlob; _Alloc = 
std::allocator<mxnet::TBlob>]’:
   /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for 
argument of type ‘std::vector<mxnet::TBlob>::iterator’ {aka 
‘__gnu_cxx::__normal_iterator<mxnet::TBlob*, std::vector<mxnet::TBlob> >’} 
changed in GCC 7.1
          vector<_Tp, _Alloc>::
          ^~~~~~~~~~~~~~~~~~~
   /usr/include/c++/8/bits/vector.tcc: In member function ‘std::vector<_Tp, 
_Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with 
_Args = {mxnet::TBlob}; _Tp = mxnet::TBlob; _Alloc = 
std::allocator<mxnet::TBlob>]’:
   /usr/include/c++/8/bits/vector.tcc:109:4: note: parameter passing for 
argument of type ‘__gnu_cxx::__normal_iterator<mxnet::TBlob*, 
std::vector<mxnet::TBlob> >’ changed in GCC 7.1
       _M_realloc_insert(end(), std::forward<_Args>(__args)...);
       ^~~~~~~~~~~~~~~~~
   /usr/include/c++/8/bits/vector.tcc: In member function ‘void 
std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, 
_Args&& ...) [with _Args = {const mxnet::TBlob&}; _Tp = mxnet::TBlob; _Alloc = 
std::allocator<mxnet::TBlob>]’:
   /usr/include/c++/8/bits/vector.tcc:413:7: note: parameter passing for 
argument of type ‘std::vector<mxnet::TBlob>::iterator’ {aka 
‘__gnu_cxx::__normal_iterator<mxnet::TBlob*, std::vector<mxnet::TBlob> >’} 
changed in GCC 7.1
          vector<_Tp, _Alloc>::
          ^~~~~~~~~~~~~~~~~~~
   In file included from /usr/include/c++/8/vector:64,
                    from /home/pi/mxnet/include/dmlc/registry.h:11,
                    from /home/pi/mxnet/include/mxnet/operator_util.h:37,
                    from 
/home/pi/mxnet/src/operator/numpy/./np_einsum_op-inl.h:65,
                    from /home/pi/mxnet/src/operator/numpy/np_einsum_op.cc:58:
   /usr/include/c++/8/bits/stl_vector.h: In member function ‘void 
std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = 
mxnet::TBlob; _Alloc = std::allocator<mxnet::TBlob>]’:
   /usr/include/c++/8/bits/stl_vector.h:1085:4: note: parameter passing for 
argument of type ‘__gnu_cxx::__normal_iterator<mxnet::TBlob*, 
std::vector<mxnet::TBlob> >’ changed in GCC 7.1
       _M_realloc_insert(end(), __x);
       ^~~~~~~~~~~~~~~~~
   /usr/include/c++/8/bits/stl_vector.h: In function ‘std::vector<_Tp, 
_Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = 
mxnet::TBlob; _Alloc = std::allocator<mxnet::TBlob>]’:
   /usr/include/c++/8/bits/stl_vector.h:515:7: note: parameter passing for 
argument of type ‘std::initializer_list<mxnet::TBlob>’ changed in GCC 7.1
          vector(initializer_list<value_type> __l,
          ^~~~~~
   virtual memory exhausted: Cannot allocate memory
   make[2]: *** [CMakeFiles/mxnet.dir/build.make:3670: 
CMakeFiles/mxnet.dir/src/operator/numpy/np_einsum_op.cc.o] Error 1
   make[1]: *** [CMakeFiles/Makefile2:1202: CMakeFiles/mxnet.dir/all] Error 2
   make: *** [Makefile:160: all] Error 2
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to