Skip to content

Instantly share code, notes, and snippets.

@zbyerly
Created September 6, 2017 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zbyerly/228fdd0aab04423af5dc5344658e5e8a to your computer and use it in GitHub Desktop.
Save zbyerly/228fdd0aab04423af5dc5344658e5e8a to your computer and use it in GitHub Desktop.
/home/zbyerly/work/libgeodecomp/src/libgeodecomp/parallelization/hpxsimulator.cpp: In function ‘void LibGeoDecomp::HpxSimulatorHelpers::gatherAndBroadcastLocalityIndices(double, std::vector<double>*, std::vector<long unsigned int>*, const string&, std::vector<double>)’:
/home/zbyerly/work/libgeodecomp/src/libgeodecomp/parallelization/hpxsimulator.cpp:91:88: error: conversion from ‘hpx::traits::future_traits<hpx::lcos::future<std::vector<hpx::lcos::future<std::vector<double> >, std::allocator<hpx::lcos::future<std::vector<double> > > > > >::result_type {aka std::vector<hpx::lcos::future<std::vector<double> >, std::allocator<hpx::lcos::future<std::vector<double> > > >}’ to non-scalar type ‘std::vector<std::vector<double> >’ requested
hpx::lcos::broadcast<getUpdateGroupSpeeds_action>(localities, basename).get();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /opt/mn/gcc/6.4.0/include/c++/6.4.0/bits/stl_tempbuf.h:60:0,
from /opt/mn/gcc/6.4.0/include/c++/6.4.0/bits/stl_algo.h:62,
from /opt/mn/gcc/6.4.0/include/c++/6.4.0/algorithm:62,
from /home/zbyerly/work/local_install_Debug/include/hpx/runtime/serialization/basic_archive.hpp:12,
from /home/zbyerly/work/local_install_Debug/include/hpx/runtime/serialization/input_archive.hpp:13,
from /home/zbyerly/work/local_install_Debug/include/hpx/runtime/serialization/serialize.hpp:12,
from /home/zbyerly/work/local_install_Debug/include/hpx/runtime/serialization/set.hpp:10,
from /home/zbyerly/work/libgeodecomp/src/libgeodecomp/parallelization/hpxsimulator.h:8,
from /home/zbyerly/work/libgeodecomp/src/libgeodecomp/parallelization/hpxsimulator.cpp:4:
/opt/mn/gcc/6.4.0/include/c++/6.4.0/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = hpx::lcos::future<std::vector<double> >; _Args = {const hpx::lcos::future<std::vector<double, std::allocator<double> > >&}]’:
/opt/mn/gcc/6.4.0/include/c++/6.4.0/bits/stl_uninitialized.h:202:18: required from ‘static _ForwardIterator std::__uninitialized_fill_n<_TrivialValueType>::__uninit_fill_n(_ForwardIterator, _Size, const _Tp&) [with _ForwardIterator = hpx::lcos::future<std::vector<double> >*; _Size = long unsigned int; _Tp = hpx::lcos::future<std::vector<double> >; bool _TrivialValueType = false]’
/opt/mn/gcc/6.4.0/include/c++/6.4.0/bits/stl_uninitialized.h:247:17: required from ‘_ForwardIterator std::uninitialized_fill_n(_ForwardIterator, _Size, const _Tp&) [with _ForwardIterator = hpx::lcos::future<std::vector<double> >*; _Size = long unsigned int; _Tp = hpx::lcos::future<std::vector<double> >]’
/opt/mn/gcc/6.4.0/include/c++/6.4.0/bits/stl_uninitialized.h:358:39: required from ‘_ForwardIterator std::__uninitialized_fill_n_a(_ForwardIterator, _Size, const _Tp&, std::allocator<_Tp2>&) [with _ForwardIterator = hpx::lcos::future<std::vector<double> >*; _Size = long unsigned int; _Tp = hpx::lcos::future<std::vector<double> >; _Tp2 = hpx::lcos::future<std::vector<double> >]’
/opt/mn/gcc/6.4.0/include/c++/6.4.0/bits/stl_vector.h:1299:33: required from ‘void std::vector<_Tp, _Alloc>::_M_fill_initialize(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = hpx::lcos::future<std::vector<double> >; _Alloc = std::allocator<hpx::lcos::future<std::vector<double> > >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = hpx::lcos::future<std::vector<double> >]’
/opt/mn/gcc/6.4.0/include/c++/6.4.0/bits/stl_vector.h:294:27: required from ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = hpx::lcos::future<std::vector<double> >; _Alloc = std::allocator<hpx::lcos::future<std::vector<double> > >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = hpx::lcos::future<std::vector<double> >; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<hpx::lcos::future<std::vector<double> > >]’
/home/zbyerly/work/local_install_Debug/include/hpx/lcos/broadcast.hpp:509:25: required from ‘std::vector<Future> hpx::lcos::detail::wrap_into_vector(hpx::lcos::future<R>) [with Result = hpx::lcos::future<std::vector<double> >]’
/home/zbyerly/work/local_install_Debug/include/hpx/lcos/broadcast.hpp:638:33: required from ‘typename hpx::lcos::detail::broadcast_result<Action>::type hpx::lcos::detail::broadcast_impl(const Action&, const std::vector<hpx::naming::id_type>&, std::size_t, std::false_type, const Ts& ...) [with Action = getUpdateGroupSpeeds_action; Ts = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}; typename hpx::lcos::detail::broadcast_result<Action>::type = std::vector<hpx::lcos::future<std::vector<double> >, std::allocator<hpx::lcos::future<std::vector<double> > > >; std::size_t = long unsigned int; std::false_type = std::integral_constant<bool, false>]’
/home/zbyerly/work/local_install_Debug/include/hpx/lcos/broadcast.hpp:380:35: required from ‘static typename hpx::lcos::detail::broadcast_result<Action>::type hpx::lcos::detail::broadcast_invoker<Action, IsVoid, Ts>::call(const Action&, const std::vector<hpx::naming::id_type>&, std::size_t, IsVoid, const Ts& ...) [with Action = getUpdateGroupSpeeds_action; IsVoid = std::integral_constant<bool, false>; Ts = {std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >}; typename hpx::lcos::detail::broadcast_result<Action>::type = std::vector<hpx::lcos::future<std::vector<double> >, std::allocator<hpx::lcos::future<std::vector<double> > > >; std::size_t = long unsigned int]’
/home/zbyerly/work/local_install_Debug/include/hpx/lcos/broadcast.hpp:436:26: required from ‘struct hpx::lcos::detail::make_broadcast_action_impl<getUpdateGroupSpeeds_action, hpx::util::detail::pack_c<long unsigned int, 0ul> >’
/home/zbyerly/work/local_install_Debug/include/hpx/lcos/broadcast.hpp:441:16: required from ‘struct hpx::lcos::detail::make_broadcast_action<getUpdateGroupSpeeds_action>’
/home/zbyerly/work/libgeodecomp/src/libgeodecomp/parallelization/hpxsimulator.cpp:47:1: required from here
/opt/mn/gcc/6.4.0/include/c++/6.4.0/bits/stl_construct.h:75:7: error: use of deleted function ‘hpx::lcos::future<std::vector<double> >::future(const hpx::lcos::future<std::vector<double> >&)’
{ ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/zbyerly/work/local_install_Debug/include/hpx/runtime/actions/trigger.hpp:11:0,
from /home/zbyerly/work/local_install_Debug/include/hpx/runtime/actions/continuation.hpp:14,
from /home/zbyerly/work/local_install_Debug/include/hpx/runtime/actions/action_invoke_no_more_than.hpp:12,
from /home/zbyerly/work/local_install_Debug/include/hpx/include/actions.hpp:11,
from /home/zbyerly/work/local_install_Debug/include/hpx/include/lcos.hpp:11,
from /home/zbyerly/work/libgeodecomp/src/libgeodecomp/parallelization/hpxsimulator.h:11,
from /home/zbyerly/work/libgeodecomp/src/libgeodecomp/parallelization/hpxsimulator.cpp:4:
/home/zbyerly/work/local_install_Debug/include/hpx/lcos/future.hpp:812:11: note: ‘hpx::lcos::future<std::vector<double> >::future(const hpx::lcos::future<std::vector<double> >&)’ is implicitly declared as deleted because ‘hpx::lcos::future<std::vector<double> >’ declares a move constructor or move assignment operator
class future : public detail::future_base<future<R>, R>
^~~~~~
make[2]: *** [src/CMakeFiles/geodecomp.dir/libgeodecomp/parallelization/hpxsimulator.cpp.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment