Thrill  0.1
thrill::net::mpi Namespace Reference

Classes

class  AsyncRequest
 
class  Connection
 Virtual MPI connection class. More...
 
class  Dispatcher
 
class  Exception
 A derived exception class which looks up MPI error strings. More...
 
class  Group
 A net group backed by virtual MPI connection. More...
 

Typedefs

using AsyncRequestCallback = tlx::delegate< void(MPI_Status &), mem::GPoolAllocator< char > >
 Signature of async MPI request callbacks. More...
 

Functions

bool Construct (size_t group_size, DispatcherThread &dispatcher, std::unique_ptr< Group > *groups, size_t group_count)
 Construct Group which connects to peers using MPI. More...
 
static void Deinitialize ()
 atexit() method to deinitialize the MPI library. More...
 
static void Initialize ()
 run MPI_Init() if not already done (can be called multiple times). More...
 
size_t MpiRank ()
 Return the rank of this process in the MPI COMM WORLD. More...
 
size_t NumMpiProcesses ()
 Return the number of MPI processes. More...
 

Variables

std::mutex g_mutex
 The Grand MPI Library Invocation Mutex (The GMLIM) More...
 
static const size_t g_simultaneous = 32
 number of simultaneous transfers More...
 

Function Documentation

◆ Deinitialize()

static void thrill::net::mpi::Deinitialize ( )
inlinestatic

atexit() method to deinitialize the MPI library.

Definition at line 634 of file group.cpp.

Referenced by Initialize().

◆ Initialize()

static void thrill::net::mpi::Initialize ( )
inlinestatic

run MPI_Init() if not already done (can be called multiple times).

Definition at line 641 of file group.cpp.

References Deinitialize(), die, and Exception::Exception().

Referenced by Construct(), Group::Group(), MpiRank(), and NumMpiProcesses().

Variable Documentation

◆ g_mutex

std::mutex g_mutex

The Grand MPI Library Invocation Mutex (The GMLIM)

Definition at line 26 of file group.cpp.

◆ g_simultaneous

const size_t g_simultaneous = 32
static

number of simultaneous transfers

Definition at line 27 of file dispatcher.cpp.