$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] boostMPI asychronous communication
From: Riccardo Murri (riccardo.murri_at_[hidden])
Date: 2010-06-29 12:24:53
Hi Jack,
please find attached a sample program that does a master/worker
exchange, along the lines of the pseudocode you posted yesterday.
Caveat: I have not been able to have the master wait on *all* messages
sent to all workers in one single call -- I get MPI_ERR_TRUNCATE if
the number of messages sent to a single worker is > 1.
I'm afraid I'm not experienced enough with OpenMPI or Boost.MPI to
debug it any further.
Instead the code sends a message to each worker, waits for the reply,
then sends another batch, etc. -- this is akin to having a barrier
after each round of computation.
Best regards,
Riccardo