![]() |
GHOST
1.1.2
General, Hybrid, and Optimized Sparse Toolkit
|
#include "ghost/datatransfers.h"
#include "ghost/util.h"
#include <map>
#include <vector>
#include <string>
#include <numeric>
#include <sstream>
#include <ostream>
#include <iomanip>
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 |
|
static |
ghost_error ghost_datatransfer_register | ( | const char * | tag, |
ghost_datatransfer_direction_t | dir, | ||
int | rank, | ||
size_t | volume | ||
) |
Register a data transfer.
tag | The tag of the data transfer. |
dir | The transfer's direction. |
rank | The rank of the communication partner. |
volume | The size of the data transfer. |
ghost_error ghost_datatransfer_summarystring | ( | char ** | str | ) |
Create a string summarizing all data transfers.
str | Where to store the string. |
size_t ghost_datatransfer_volume_get | ( | const char * | tag, |
ghost_datatransfer_direction_t | dir, | ||
int | rank | ||
) |
|
static |