KaMPIng 0.2.1
Flexible and (near) zero-overhead C++ bindings for MPI
Loading...
Searching...
No Matches
thread_levels.hpp File Reference

MPI thread support levels. More...

#include <mpi.h>
Include dependency graph for thread_levels.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  kamping::ThreadLevel : int { single = MPI_THREAD_SINGLE , funneled = MPI_THREAD_FUNNELED , serialized = MPI_THREAD_SERIALIZED , multiple = MPI_THREAD_MULTIPLE }
 MPI thread support levels defining the allowed concurrency of MPI calls relative to application threads. You can obtain the underlying values by casting the enum value to int. More...
 

Functions

bool kamping::operator== (ThreadLevel lhs, ThreadLevel rhs) noexcept
 Comparison operator for ThreadLevel.
 
bool kamping::operator!= (ThreadLevel lhs, ThreadLevel rhs) noexcept
 Comparison operator for ThreadLevel.
 
bool kamping::operator< (ThreadLevel lhs, ThreadLevel rhs) noexcept
 Comparison operator for ThreadLevel.
 
bool kamping::operator<= (ThreadLevel lhs, ThreadLevel rhs) noexcept
 Comparison operator for ThreadLevel.
 
bool kamping::operator> (ThreadLevel lhs, ThreadLevel rhs) noexcept
 Comparison operator for ThreadLevel.
 
bool kamping::operator>= (ThreadLevel lhs, ThreadLevel rhs) noexcept
 Comparison operator for ThreadLevel.
 

Detailed Description

MPI thread support levels.

Enumeration Type Documentation

◆ ThreadLevel

enum class kamping::ThreadLevel : int
strong

MPI thread support levels defining the allowed concurrency of MPI calls relative to application threads. You can obtain the underlying values by casting the enum value to int.

Enumerator
single 

No thread support; only one thread may execute, and only the main thread can make MPI calls.

funneled 

Only the main thread will make MPI calls, but the application may be multi-threaded.

serialized 

Multiple threads may exist, but only one at a time will make MPI calls (calls are serialized).

multiple 

Full thread support; multiple threads may call MPI concurrently.