Questions tagged [boost-mpi]

one of the Boost libraries, a C++-style wrapper around the Message Passing Interface (MPI) library for high-performance distributed computing.

80 questions
0
votes
0 answers

boost mpi nonblocking + hierarchy gather

I have a multi-processing program using Visual C++ and Boost MPI. Each process do it parts and in the end, process 0 gather all the results and summarize. Below is an excerpt of the code (poolsummary is class using Boost serialization) …
user11594134
  • 119
  • 8
0
votes
2 answers

How to fix "vector subscript out of range" using mpi scatter?

Problem is in my misunderstanding on how boost MPI wrappers work. I am using Microsoft MPI implementation. In this code I am trying to scatter std::vector to processes but get a debug assertion vector subscript out of range error. This code is my…
powercat
  • 99
  • 4
0
votes
2 answers

design shared memory for MPI using Boost

I would like to ask if someone knows a boost::mpi documentation for beginners? (i already read Boost.MPI documentation from the Internet site). a bit about my system, i have a claster of about 90 knots, each knot have two CPU with two cores (4 cores…
Eagle
  • 3,362
  • 5
  • 34
  • 46
0
votes
1 answer

Dealing with complex send recv message within a for loop

I am trying to parallelise a biological model in C++ with boost::mpi. It is my first attempt, and I am entirely new to the boost library (I have started from the Boost C++ Libraries book by Schaling). The model consists of grid cells and cohorts of…
michela
  • 61
  • 1
  • 1
  • 3
0
votes
1 answer

MPI_Test: MPI_ERR_TRUNCATE

The following code gives this error message: terminate called after throwing an instance of 'boost::exception_detail::clone_impl' what(): MPI_Test: MPI_ERR_TRUNCATE: message truncated The problem might be related to a bug of boost::mpi which…
Shibli
  • 5,879
  • 13
  • 62
  • 126
0
votes
1 answer

boost::iprobe does not return correct count

In the code below, while probing, the correct number of arrivals is not obtained. The same functionality is also tested with standard MPI functions and correct answer is obtained. Why Boost version does not produce the correct result? Boost…
Shibli
  • 5,879
  • 13
  • 62
  • 126
0
votes
0 answers

mpi.gather not working for boost.mpi for python

I am trying to use mpi.gather in boost.mpi for python as shown below. import mpi print(mpi.rank) mpi.gather(value=True, root=0) When I run the program with the following command, mpiexec -n 3 python mpi_test.py the output is 2 1 0 (The order of…
hitochan
  • 1,028
  • 18
  • 34
0
votes
1 answer

How to use mpi on a real-time streaming application?

I have 2 processes, one process is streaming out packets to another until an internal interrupt halt the process (the process which sends). I want to have a mechanism that the other process can receive until there is any message on this channel to…
Mehrdad
  • 107
  • 8
0
votes
1 answer

using OpenMPI or MPICH with Boost MPI using Win and Linux machines together

These days I am approaching MPI world. I am willing to use Boost MPI libraries probably with OpenMPI or MPICH ( even if with MPICH still I am not sure whether it will work fine because of some post I read around ). My real question is the following:…
user311906
  • 1,575
  • 2
  • 14
  • 17
0
votes
2 answers

How to have a deadlock scenario with boost MPI (I use MPICH compiler)?

I am trying to find out in what cases a potentially blocking boost mpi "send" will actually block and causes a deadlock. #include #include int main(int argc, char *argv[]) { boost::mpi::environment env{argc, argv}; …
Mehrdad
  • 107
  • 8
0
votes
1 answer

How to send string type with boost_mpi?

I am trying to pass more complex data types using boost mpi. I am implementing the sample codes in http://theboostcpplibraries.com/boost.mpi-simple-data-exchange First I try to send a string as an array of chars which works from the aforementioned…
Mehrdad
  • 107
  • 8
0
votes
1 answer

Boost.MPI recv into slice of existing vector

vector master(100); vector> sub = master(&master[10], &master[20]); boost::mpi::irecv(source, tag, sub); Is the above valid and functional to recv and update a subset of the vector? If not, is there an equivalent…
Tims
  • 627
  • 7
  • 19
0
votes
1 answer

OSX "clang++ -lboost_mpi"` ->"ld: library not found for -lboost_mpi" after brew install boost --with-mpi

After installing boost with mpi support using brew I still get the error ld: "library not found for -lboost_mpi" when I run clang++ -lboost_mpi. What can I do to overcome this? I installed boost using brew: $ brew install boost --with-mpi…
kilojoules
  • 9,768
  • 18
  • 77
  • 149
0
votes
2 answers

Looking for mpic++

I am following these instructions trying to build Boost MPI .lib files, but I encountered one problem: I do not have mpic++. Looking at the MPI implementation files such as MPICH and Open MPI, I see no mpic++ included at all. Where can I find…
Karl
  • 5,613
  • 13
  • 73
  • 107
0
votes
1 answer

Returning arbitrary types from a function

I'd like to return an arbitrary type from a function. The return type depends dynamically on a polymorphic function call. Foe example, the following reads values from CSV files with different number of columns, struct File { virtual SOMETHING…
hhbilly
  • 1,265
  • 10
  • 18