|
Boost Users : |
Subject: Re: [Boost-users] [mpi] multithreaded/funneled messaging
From: Matthias Troyer (troyer_at_[hidden])
Date: 2012-06-03 09:29:35
On May 22, 2012, at 4:23 PM, Brian Budge wrote:
> Hi all -
>
> Is boost.mpi able to work with MPI_THREAD_MULTIPLE? If so, how is it specified?
>
> Thanks,
> Brian
Hi Brian,
You need to intiialize Boost.MPI not by creating a boost::mpi::environment object but by directly calling the C API function MPI_Init_thread. You will also need to be careful with threading, since you might get mismatches between probes and receives of messages if multiple threads handle the same message.
Matthias
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net