ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
distributed Directory Reference

Files

 
BoostMPI.h
 The processes of MPI of a program of Boost.MPI, beyond the book, compiled only with ADS_WITH_MPI and the headers of Boost.MPI: the executor, the sort and the mailbox of the processes [see MPIExecutor.h, DistributedSort.h and MPIMailbox.h] take the communicator of MPI (MPI_Comm), to which a boost::mpi::communicator converts by itself, so that MPIExecutor ex( world ) and distributed::sort( pool , world , A ) need nothing more; the environment of Boost.MPI takes the place of MPIEnvironment when it asks for the funneled level (boost::mpi::threading::funneled), the one that the mailbox needs.
 
DistributedSort.h
 The sort of the items spread over the processes of MPI, beyond the book, compiled only with ADS_WITH_MPI (the CMake option of the same name, OFF by default) and an implementation of MPI (Open MPI or MPICH): each of the \( P \) processes of a communicator holds a vector of items, and after sort( comm , A , less ) each holds a sorted vector, those of the ranks \( 0 , \ldots , P - 1 \) in this order being the sorted items of all; the vectors change their sizes.
 
MPIExecutor.h
 The processes of MPI as the workers of a distributed computation, beyond the book, compiled only with ADS_WITH_MPI (the CMake option of the same name, OFF by default, and its macro of the makefiles) and an implementation of MPI (Open MPI or MPICH): MPIExecutor holds a communicator and tells the rank of the process and the number of the processes, and run( f ) makes the call f( rank ), the worker of the process, so that a program written for the workers of run() of the executors of threads [see Executor.h] runs with one worker per process, every process calling run().
 
MPIMailbox.h
 The mailbox of the processes of MPI, beyond the book, compiled only with ADS_WITH_MPI: the mailbox of the workers of Mailbox.h with a process of a communicator as each worker, and with the detection of the termination of the computation by the four counters of Mattern (see Messages, owners and termination).