libpressio 0.93.0
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
distributed::comm::serializer::serializer< pressio_data > 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_data const &data, int dest, int tag, MPI_Comm comm)
 
static int recv (pressio_data &data, int source, int tag, MPI_Comm comm, MPI_Status *status)
 
static int bcast (pressio_data &data, int root, MPI_Comm comm)
 

Detailed Description

serializer for pressio_data tyeps

Member Typedef Documentation

◆ mpi_type

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

is the type representable with mpi_types

Member Function Documentation

◆ bcast()

static int distributed::comm::serializer::serializer< pressio_data >::bcast ( pressio_data data,
int  root,
MPI_Comm  comm 
)
static

broadcast a value

Parameters
[in,out]datathe datatype to broadcast
[in]rootthe root to broadcast from
[in]commthe communicator to use

◆ dtype()

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

type MPI_Datatype when mpi_type is true

◆ name()

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

name of the data type

◆ recv()

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

recv the value

Parameters
[out]datathe 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_data >::send ( pressio_data const &  data,
int  dest,
int  tag,
MPI_Comm  comm 
)
static

send the value

Parameters
[in]datathe data 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: