Opened 8 years ago
#10669 new Bugs
Assertion failed in broadcast with BOOST_MPI_HOMOGENEOUS defined
Reported by: | Owned by: | Matthias Troyer | |
---|---|---|---|
Milestone: | To Be Determined | Component: | mpi |
Version: | Boost 1.56.0 | Severity: | Problem |
Keywords: | Cc: |
Description
When running a program that does a very simple broadcast of a map<int, int> from the root proc (0) to another proc (1), I get this error:
Assertion failed: (position+l<=static_cast<int>(buffer_.size())), function load_impl, file /Users/sbateman/tmp/boost_mpi_test/boost_1_56_0/boost/mpi/detail/binary_buffer_iprimitive.hpp, line 110.
This only happens when I compile Boost with BOOST_MPI_HOMOGENEOUS defined (i.e., uncommented) in boost/mpi/config.hpp. If I leave that line commented out, the program completes successfully.
I've attached a source file (test.cpp) that reproduces this error. I tested this on a Mac system with OS X 10.9.5 and compiler version:
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0
and also on a Linux system with compiler version:
gcc version 4.8.2 20131016 (Cray Inc.) (GCC) Target: x86_64-suse-linux
Attachments (1)
Note:
See TracTickets
for help on using tickets.
Program to demonstrate the bug