GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Functions | Variables
datatransfers.cpp File Reference
#include "ghost/datatransfers.h"
#include "ghost/util.h"
#include <map>
#include <vector>
#include <string>
#include <numeric>
#include <sstream>
#include <ostream>
#include <iomanip>
Include dependency graph for datatransfers.cpp:

Classes

struct  ghost_datatransfer_region_accu_t
 Region datatransfer accumulator. More...
 

Functions

ghost_error ghost_datatransfer_register (const char *tag, ghost_datatransfer_direction_t dir, int rank, size_t volume)
 Register a data transfer. More...
 
size_t ghost_datatransfer_volume_get (const char *tag, ghost_datatransfer_direction_t dir, int rank)
 
static int ghost_datatransfer_nneigh_get (const char *tag, ghost_datatransfer_direction_t dir)
 
ghost_error ghost_datatransfer_summarystring (char **str)
 Create a string summarizing all data transfers. More...
 

Variables

static map< string,
ghost_datatransfer_region_accu_t
datatransfers
 

Function Documentation

static int ghost_datatransfer_nneigh_get ( const char *  tag,
ghost_datatransfer_direction_t  dir 
)
static
ghost_error ghost_datatransfer_register ( const char *  tag,
ghost_datatransfer_direction_t  dir,
int  rank,
size_t  volume 
)

Register a data transfer.

Parameters
tagThe tag of the data transfer.
dirThe transfer's direction.
rankThe rank of the communication partner.
volumeThe size of the data transfer.
Returns
ghost_error ghost_datatransfer_summarystring ( char **  str)

Create a string summarizing all data transfers.

Parameters
strWhere to store the string.
Returns
GHOST_SUCCESS on success or an error indicator.

Here is the call graph for this function:

size_t ghost_datatransfer_volume_get ( const char *  tag,
ghost_datatransfer_direction_t  dir,
int  rank 
)

Variable Documentation

map<string,ghost_datatransfer_region_accu_t> datatransfers
static