PrincetonVision / marvin

Marvin: A Minimalist GPU-only N-Dimensional ConvNets Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot compile marvin code

neouyghur opened this issue · comments

How can I solve this problem? Thank you.

nvcc -std=c++11 -O3 -o marvin marvin.cu -I. -I/usr/local/cudnn/v3/include/ -I/usr/local/cuda/include -L/usr/local/cudnn/v3/lib64 -L/usr/local/cuda/lib64 -lcudart -lcublas -lcudnn -lcurand -D_MWAITXINTRIN_H_INCLUDED
/usr/include/c++/5/functional(78): error: class "std::thread" has no member "result_type"
          detected during:
            instantiation of class "std::_Maybe_get_result_type<_Functor, void> [with _Functor=std::thread]" 
(86): here
            instantiation of class "std::_Weak_result_type_impl<_Functor> [with _Functor=std::thread]" 
(184): here
            instantiation of class "std::_Weak_result_type<_Functor> [with _Functor=std::thread]" 
(264): here
            instantiation of class "std::_Reference_wrapper_base_impl<true, true, _Tp> [with _Tp=std::thread]" 
(283): here
            instantiation of class "std::_Reference_wrapper_base<_Tp> [with _Tp=std::thread]" 
(399): here
            instantiation of class "std::reference_wrapper<_Tp> [with _Tp=std::thread]" 
/usr/include/c++/5/future(1638): here

/usr/include/c++/5/functional(266): error: class "std::thread" has no member "argument_type"
          detected during:
            instantiation of class "std::_Reference_wrapper_base_impl<true, true, _Tp> [with _Tp=std::thread]" 
(283): here
            instantiation of class "std::_Reference_wrapper_base<_Tp> [with _Tp=std::thread]" 
(399): here
            instantiation of class "std::reference_wrapper<_Tp> [with _Tp=std::thread]" 
/usr/include/c++/5/future(1638): here

/usr/include/c++/5/functional(267): error: class "std::thread" has no member "first_argument_type"
          detected during:
            instantiation of class "std::_Reference_wrapper_base_impl<true, true, _Tp> [with _Tp=std::thread]" 
(283): here
            instantiation of class "std::_Reference_wrapper_base<_Tp> [with _Tp=std::thread]" 
(399): here
            instantiation of class "std::reference_wrapper<_Tp> [with _Tp=std::thread]" 
/usr/include/c++/5/future(1638): here

/usr/include/c++/5/functional(268): error: class "std::thread" has no member "second_argument_type"
          detected during:
            instantiation of class "std::_Reference_wrapper_base_impl<true, true, _Tp> [with _Tp=std::thread]" 
(283): here
            instantiation of class "std::_Reference_wrapper_base<_Tp> [with _Tp=std::thread]" 
(399): here
            instantiation of class "std::reference_wrapper<_Tp> [with _Tp=std::thread]" 
/usr/include/c++/5/future(1638): here

/usr/include/c++/5/bits/stl_iterator_base_types.h(154): error: name followed by "::" must be a class or namespace name
          detected during:
            instantiation of class "std::__iterator_traits<_Iterator, void> [with _Iterator=int]" 
(163): here
            instantiation of class "std::iterator_traits<_Iterator> [with _Iterator=int]" 
dss.hpp(1321): here

/usr/include/c++/5/bits/stl_iterator_base_types.h(155): error: name followed by "::" must be a class or namespace name
          detected during:
            instantiation of class "std::__iterator_traits<_Iterator, void> [with _Iterator=int]" 
(163): here
            instantiation of class "std::iterator_traits<_Iterator> [with _Iterator=int]" 
dss.hpp(1321): here

/usr/include/c++/5/bits/stl_iterator_base_types.h(156): error: name followed by "::" must be a class or namespace name
          detected during:
            instantiation of class "std::__iterator_traits<_Iterator, void> [with _Iterator=int]" 
(163): here
            instantiation of class "std::iterator_traits<_Iterator> [with _Iterator=int]" 
dss.hpp(1321): here

/usr/include/c++/5/bits/stl_iterator_base_types.h(157): error: name followed by "::" must be a class or namespace name
          detected during:
            instantiation of class "std::__iterator_traits<_Iterator, void> [with _Iterator=int]" 
(163): here
            instantiation of class "std::iterator_traits<_Iterator> [with _Iterator=int]" 
dss.hpp(1321): here

/usr/include/c++/5/bits/stl_iterator_base_types.h(158): error: name followed by "::" must be a class or namespace name
          detected during:
            instantiation of class "std::__iterator_traits<_Iterator, void> [with _Iterator=int]" 
(163): here
            instantiation of class "std::iterator_traits<_Iterator> [with _Iterator=int]" 
dss.hpp(1321): here

9 errors detected in the compilation of "/tmp/tmpxft_000010fd_00000000-9_marvin.cpp1.ii".

the GCC version which linked to NVCC should be lower than 4.9.