29 Jun
2010
29 Jun
'10
4:24 p.m.
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