Documentation 6b54b78464
Loading...
Searching...
No Matches
CBaseMPIWrapper< ScalarType > Class Template Reference

#include <mpi_structure.hpp>

Classes

struct  Status
 

Public Types

using Comm = int
 
using Datatype = int
 
using Request = int
 
using Op = int
 

Static Public Member Functions

static void CopyData (const void *sendbuf, void *recvbuf, int size, Datatype datatype, int recvshift=0, int sendshift=0)
 
static void Error (const std::string &ErrorMsg, const std::string &FunctionName)
 
static int GetRank ()
 
static int GetSize ()
 
static void SetComm (Comm newComm)
 
static Comm GetComm ()
 
static void Init (int *argc, char ***argv)
 
static void Init_thread (int *argc, char ***argv, int required, int *provided)
 
static void Barrier (Comm comm)
 
static void Abort (Comm comm, int error)
 
static void Comm_rank (Comm comm, int *rank)
 
static void Comm_size (Comm comm, int *size)
 
static void Finalize ()
 
static void Isend (const void *buf, int count, Datatype datatype, int dest, int tag, Comm comm, Request *request)
 
static void Irecv (void *buf, int count, Datatype datatype, int source, int tag, Comm comm, Request *request)
 
static void Wait (Request *request, Status *status)
 
static int Request_free (Request *request)
 
static void Waitall (int nrequests, Request *request, Status *status)
 
static void Waitany (int nrequests, Request *request, int *index, Status *status)
 
static void Send (const void *buf, int count, Datatype datatype, int dest, int tag, Comm comm)
 
static void Recv (void *buf, int count, Datatype datatype, int dest, int tag, Comm comm, Status *status)
 
static void Bcast (void *buf, int count, Datatype datatype, int root, Comm comm)
 
static void Reduce (const void *sendbuf, void *recvbuf, int count, Datatype datatype, Op op, int root, Comm comm)
 
static void Allreduce (const void *sendbuf, void *recvbuf, int count, Datatype datatype, Op op, Comm comm)
 
static void Gather (const void *sendbuf, int sendcnt, Datatype sendtype, void *recvbuf, int recvcnt, Datatype recvtype, int root, Comm comm)
 
static void Scatter (const void *sendbuf, int sendcnt, Datatype sendtype, void *recvbuf, int recvcnt, Datatype recvtype, int root, Comm comm)
 
static void Allgatherv (const void *sendbuf, int sendcnt, Datatype sendtype, void *recvbuf, const int *recvcnt, const int *displs, Datatype recvtype, Comm comm)
 
static void Allgather (const void *sendbuf, int sendcnt, Datatype sendtype, void *recvbuf, int recvcnt, Datatype recvtype, Comm comm)
 
static void Sendrecv (const void *sendbuf, int sendcnt, Datatype sendtype, int dest, int sendtag, void *recvbuf, int recvcnt, Datatype recvtype, int source, int recvtag, Comm comm, Status *status)
 
static void Reduce_scatter (const void *sendbuf, void *recvbuf, const int *recvcounts, Datatype datatype, Op op, Comm comm)
 
static void Alltoall (const void *sendbuf, int sendcount, Datatype sendtype, void *recvbuf, int recvcount, Datatype recvtype, Comm comm)
 
static void Alltoallv (const void *sendbuf, const int *sendcounts, const int *sdispls, Datatype sendtype, void *recvbuf, const int *recvcounts, const int *recvdispls, Datatype recvtype, Comm comm)
 
static void Probe (int source, int tag, Comm comm, Status *status)
 
static passivedouble Wtime (void)
 

Member Typedef Documentation

◆ Comm

template<typename ScalarType >
using CBaseMPIWrapper< ScalarType >::Comm = int

◆ Datatype

template<typename ScalarType >
using CBaseMPIWrapper< ScalarType >::Datatype = int

◆ Op

template<typename ScalarType >
using CBaseMPIWrapper< ScalarType >::Op = int

◆ Request

template<typename ScalarType >
using CBaseMPIWrapper< ScalarType >::Request = int

Member Function Documentation

◆ Abort()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Abort ( Comm  comm,
int  error 
)
inlinestatic

◆ Allgather()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Allgather ( const void *  sendbuf,
int  sendcnt,
Datatype  sendtype,
void *  recvbuf,
int  recvcnt,
Datatype  recvtype,
Comm  comm 
)
inlinestatic

◆ Allgatherv()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Allgatherv ( const void *  sendbuf,
int  sendcnt,
Datatype  sendtype,
void *  recvbuf,
const int *  recvcnt,
const int *  displs,
Datatype  recvtype,
Comm  comm 
)
inlinestatic

◆ Allreduce()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Allreduce ( const void *  sendbuf,
void *  recvbuf,
int  count,
Datatype  datatype,
Op  op,
Comm  comm 
)
inlinestatic

◆ Alltoall()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Alltoall ( const void *  sendbuf,
int  sendcount,
Datatype  sendtype,
void *  recvbuf,
int  recvcount,
Datatype  recvtype,
Comm  comm 
)
inlinestatic

◆ Alltoallv()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Alltoallv ( const void *  sendbuf,
const int *  sendcounts,
const int *  sdispls,
Datatype  sendtype,
void *  recvbuf,
const int *  recvcounts,
const int *  recvdispls,
Datatype  recvtype,
Comm  comm 
)
inlinestatic

◆ Barrier()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Barrier ( Comm  comm)
inlinestatic

◆ Bcast()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Bcast ( void *  buf,
int  count,
Datatype  datatype,
int  root,
Comm  comm 
)
inlinestatic

◆ Comm_rank()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Comm_rank ( Comm  comm,
int *  rank 
)
inlinestatic

◆ Comm_size()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Comm_size ( Comm  comm,
int *  size 
)
inlinestatic

◆ CopyData()

template<typename ScalarType >
void CBaseMPIWrapper< ScalarType >::CopyData ( const void *  sendbuf,
void *  recvbuf,
int  size,
Datatype  datatype,
int  recvshift = 0,
int  sendshift = 0 
)
static

◆ Error()

template<typename ScalarType >
void CBaseMPIWrapper< ScalarType >::Error ( const std::string &  ErrorMsg,
const std::string &  FunctionName 
)
static

◆ Finalize()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Finalize ( )
inlinestatic

◆ Gather()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Gather ( const void *  sendbuf,
int  sendcnt,
Datatype  sendtype,
void *  recvbuf,
int  recvcnt,
Datatype  recvtype,
int  root,
Comm  comm 
)
inlinestatic

◆ GetComm()

template<typename ScalarType >
static Comm CBaseMPIWrapper< ScalarType >::GetComm ( )
inlinestatic

◆ GetRank()

template<typename ScalarType >
static int CBaseMPIWrapper< ScalarType >::GetRank ( )
inlinestatic

◆ GetSize()

template<typename ScalarType >
static int CBaseMPIWrapper< ScalarType >::GetSize ( )
inlinestatic

◆ Init()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Init ( int *  argc,
char ***  argv 
)
inlinestatic

◆ Init_thread()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Init_thread ( int *  argc,
char ***  argv,
int  required,
int *  provided 
)
inlinestatic

◆ Irecv()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Irecv ( void *  buf,
int  count,
Datatype  datatype,
int  source,
int  tag,
Comm  comm,
Request *  request 
)
inlinestatic

◆ Isend()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Isend ( const void *  buf,
int  count,
Datatype  datatype,
int  dest,
int  tag,
Comm  comm,
Request *  request 
)
inlinestatic

◆ Probe()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Probe ( int  source,
int  tag,
Comm  comm,
Status *  status 
)
inlinestatic

◆ Recv()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Recv ( void *  buf,
int  count,
Datatype  datatype,
int  dest,
int  tag,
Comm  comm,
Status *  status 
)
inlinestatic

◆ Reduce()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Reduce ( const void *  sendbuf,
void *  recvbuf,
int  count,
Datatype  datatype,
Op  op,
int  root,
Comm  comm 
)
inlinestatic

◆ Reduce_scatter()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Reduce_scatter ( const void *  sendbuf,
void *  recvbuf,
const int *  recvcounts,
Datatype  datatype,
Op  op,
Comm  comm 
)
inlinestatic

◆ Request_free()

template<typename ScalarType >
static int CBaseMPIWrapper< ScalarType >::Request_free ( Request *  request)
inlinestatic

◆ Scatter()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Scatter ( const void *  sendbuf,
int  sendcnt,
Datatype  sendtype,
void *  recvbuf,
int  recvcnt,
Datatype  recvtype,
int  root,
Comm  comm 
)
inlinestatic

◆ Send()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Send ( const void *  buf,
int  count,
Datatype  datatype,
int  dest,
int  tag,
Comm  comm 
)
inlinestatic

◆ Sendrecv()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Sendrecv ( const void *  sendbuf,
int  sendcnt,
Datatype  sendtype,
int  dest,
int  sendtag,
void *  recvbuf,
int  recvcnt,
Datatype  recvtype,
int  source,
int  recvtag,
Comm  comm,
Status *  status 
)
inlinestatic

◆ SetComm()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::SetComm ( Comm  newComm)
inlinestatic

◆ Wait()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Wait ( Request *  request,
Status *  status 
)
inlinestatic

◆ Waitall()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Waitall ( int  nrequests,
Request *  request,
Status *  status 
)
inlinestatic

◆ Waitany()

template<typename ScalarType >
static void CBaseMPIWrapper< ScalarType >::Waitany ( int  nrequests,
Request *  request,
int *  index,
Status *  status 
)
inlinestatic

◆ Wtime()

template<typename ScalarType >
static passivedouble CBaseMPIWrapper< ScalarType >::Wtime ( void  )
inlinestatic

The documentation for this class was generated from the following files: