Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::mpi::threading Namespace Reference

Enumerations

enum  level {
  single = MPI_THREAD_SINGLE,
  funneled = MPI_THREAD_FUNNELED,
  serialized = MPI_THREAD_SERIALIZED,
  multiple = MPI_THREAD_MULTIPLE
}
 specify the supported threading level. More...
 

Functions

std::ostream & operator<< (std::ostream &out, level l)
 Formated output for threading level. More...
 
std::istream & operator>> (std::istream &in, level &l)
 Formated input for threading level. More...
 

Enumeration Type Documentation

specify the supported threading level.

Based on MPI 2 standard/8.7.3

Enumerator
single 

Only one thread will execute.

funneled 

Only main thread will do MPI calls.

The process may be multi-threaded, but only the main thread will make MPI calls (all MPI calls are ``funneled'' to the main thread).

serialized 

Only one thread at the time do MPI calls.

The process may be multi-threaded, and multiple threads may make MPI calls, but only one at a time: MPI calls are not made concurrently from two distinct threads (all MPI calls are ``serialized'').

multiple 

Multiple thread may do MPI calls.

Multiple threads may call MPI, with no restrictions.

Function Documentation

std::ostream& boost::mpi::threading::operator<< ( std::ostream &  out,
level  l 
)

Formated output for threading level.

std::istream& boost::mpi::threading::operator>> ( std::istream &  in,
level &  l 
)

Formated input for threading level.