libpressio 0.93.0
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
distributed::comm::serializer::serializer< pressio_thread_safety > Struct Reference

#include <serializable.h>

Public Types

using mpi_type = std::false_type
 

Static Public Member Functions

static MPI_Datatype dtype ()
 
static std::string name ()
 
static int send (pressio_thread_safety const &dtype, int dest, int tag, MPI_Comm comm)
 
static int recv (pressio_thread_safety &dtype, int source, int tag, MPI_Comm comm, MPI_Status *status)
 
static int bcast (pressio_thread_safety &dtype, int root, MPI_Comm comm)
 

Detailed Description

serializer for pressio_dtypes tyeps

Member Typedef Documentation

◆ mpi_type

using distributed::comm::serializer::serializer< pressio_thread_safety >::mpi_type = std::false_type

is the type representable with mpi_types

Member Function Documentation

◆ bcast()

static int distributed::comm::serializer::serializer< pressio_thread_safety >::bcast ( pressio_thread_safety dtype,
int  root,
MPI_Comm  comm 
)
static

broadcast a value

Parameters
[in]dtypethe datatype to broadcast
[in]rootthe root to broadcast from
[in]commthe communicator to use

◆ dtype()

static MPI_Datatype distributed::comm::serializer::serializer< pressio_thread_safety >::dtype ( )
inlinestatic

type MPI_Datatype when mpi_type is true

◆ name()

static std::string distributed::comm::serializer::serializer< pressio_thread_safety >::name ( )
inlinestatic

name of the data type

◆ recv()

static int distributed::comm::serializer::serializer< pressio_thread_safety >::recv ( pressio_thread_safety dtype,
int  source,
int  tag,
MPI_Comm  comm,
MPI_Status *  status 
)
static

recv the value

Parameters
[out]dtypethe datatype to serialize
[in]sourcethe destination to send to
[in]tagthe tag to use
[in]commthe comm to serialize to
[out]statusthe optional status to receive
Returns
an error code

◆ send()

static int distributed::comm::serializer::serializer< pressio_thread_safety >::send ( pressio_thread_safety const &  dtype,
int  dest,
int  tag,
MPI_Comm  comm 
)
static

send the value

Parameters
[in]dtypethe datatype to serialize
[in]destthe destination to send to
[in]tagthe tag to use
[in]commthe comm to serialize to
Returns
an error code

The documentation for this struct was generated from the following file: