GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
types.c File Reference
#include "ghost/config.h"
#include "ghost/types.h"
#include "ghost/util.h"
Include dependency graph for types.c:

Functions

ghost_error ghost_mpi_datatype_get (ghost_mpi_datatype *dt, ghost_datatype datatype)
 
ghost_error ghost_mpi_datatypes_create ()
 
ghost_error ghost_mpi_datatypes_destroy ()
 
ghost_error ghost_datatype_size (size_t *size, ghost_datatype datatype)
 
bool ghost_datatype_valid (ghost_datatype datatype)
 Check whether a given data type is valid. More...
 
const char * ghost_datatype_string (ghost_datatype datatype)
 Stringify a ghost_datatype. More...
 
ghost_error ghost_datatype_idx_get (ghost_datatype_idx *idx, ghost_datatype datatype)
 
ghost_error ghost_idx2datatype (ghost_datatype *datatype, ghost_datatype_idx idx)
 
const char * ghost_location_string (ghost_location location)
 
const char * ghost_implementation_string (ghost_implementation implementation)
 
int ghost_idx_of_location (ghost_location l)
 

Variables

static ghost_mpi_datatype GHOST_MPI_DT_C = MPI_DATATYPE_NULL
 
static ghost_mpi_datatype GHOST_MPI_DT_Z = MPI_DATATYPE_NULL
 

Function Documentation

ghost_error ghost_datatype_idx_get ( ghost_datatype_idx idx,
ghost_datatype  datatype 
)

Here is the call graph for this function:

ghost_error ghost_datatype_size ( size_t *  size,
ghost_datatype  datatype 
)

Here is the call graph for this function:

bool ghost_datatype_valid ( ghost_datatype  datatype)

Check whether a given data type is valid.

Parameters
datatypeThe data type.
Returns
1 if the data type is valid and 0 if it isn't.

An data type is valid if exactly one of GHOST_DT_FLOAT and GHOST_DT_DOUBLE and exactly one of GHOST_DT_REAL and GHOST_DT_COMPLEX is set.

ghost_error ghost_idx2datatype ( ghost_datatype datatype,
ghost_datatype_idx  idx 
)
int ghost_idx_of_location ( ghost_location  l)
const char* ghost_implementation_string ( ghost_implementation  implementation)
const char* ghost_location_string ( ghost_location  location)
ghost_error ghost_mpi_datatype_get ( ghost_mpi_datatype dt,
ghost_datatype  datatype 
)
ghost_error ghost_mpi_datatypes_create ( )
ghost_error ghost_mpi_datatypes_destroy ( )

Variable Documentation

ghost_mpi_datatype GHOST_MPI_DT_C = MPI_DATATYPE_NULL
static
ghost_mpi_datatype GHOST_MPI_DT_Z = MPI_DATATYPE_NULL
static