Boost C++ Libraries: Ticket #4695: Exposing packed_iarchive::position() https://svn.boost.org/trac10/ticket/4695 <p> I'm transferring variable number of packed objects (of same datatype) using isend/recv. <em>(I'm new to MPI, so I might be wrong -- but is it true that for multiple isends with the same message tag the received message would contain a concatenation?)</em> </p> <p> Then I'm reading objects out of the buffer using packed_iarchive. Because their number is not known, I need a way to know if I read all objects from archive. <code>packed_iprimitive</code> already has <code>position</code> field. </p> <p> Is it worth to make <code>position()</code> publicly accessible? The patch against trunk is attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4695 Trac 1.4.3 astukalov@… Wed, 29 Sep 2010 15:55:30 GMT attachment set https://svn.boost.org/trac10/ticket/4695 https://svn.boost.org/trac10/ticket/4695 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">iprimitive_position.diff</span> </li> </ul> <p> add position() to packed_iprimitive and binary_buffer_iprimitive </p> Ticket astukalov@… Wed, 29 Sep 2010 16:02:44 GMT type changed https://svn.boost.org/trac10/ticket/4695#comment:1 https://svn.boost.org/trac10/ticket/4695#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Feature Requests</span> </li> </ul> Ticket Matthias Troyer Wed, 03 Nov 2010 19:03:18 GMT owner, status changed https://svn.boost.org/trac10/ticket/4695#comment:2 https://svn.boost.org/trac10/ticket/4695#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Matthias Troyer</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Matthias Troyer Wed, 03 Nov 2010 19:44:58 GMT milestone changed https://svn.boost.org/trac10/ticket/4695#comment:3 https://svn.boost.org/trac10/ticket/4695#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost-1.46.0</span> </li> </ul> Ticket Matthias Troyer Sat, 27 Nov 2010 11:00:43 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4695#comment:4 https://svn.boost.org/trac10/ticket/4695#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> No, the messages will not be concatenated but each one will have to be received separately by MPI. When you packed the elements you know how many have arrived. a call to probe() returns a status object that contains the number of elements in a message. This shouldbe sufficient for your purpose. </p> Ticket