GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
Core functionality

GHOST's core functionality. More...

Enumerations

enum  ghost_type { GHOST_TYPE_INVALID, GHOST_TYPE_WORK, GHOST_TYPE_CUDA }
 Available GHOST types. More...
 

Functions

ghost_error ghost_init (int argc, char **argv)
 Initialize GHOST. More...
 
int ghost_initialized ()
 Check if GHOST is initialized. More...
 
ghost_error ghost_finalize ()
 Finalize GHOST. More...
 

Detailed Description

GHOST's core functionality.

Enumeration Type Documentation

enum ghost_type

Available GHOST types.

Enumerator
GHOST_TYPE_INVALID 

Type is not set.

GHOST_TYPE_WORK 

This GHOST instance does actual work.

GHOST_TYPE_CUDA 

This GHOST instance talks to a CUDA GPU.

Function Documentation

ghost_error ghost_finalize ( )

Finalize GHOST.

Returns
GHOST_SUCCESS on success or an error indicator.

Finalization includes:

Here is the call graph for this function:

ghost_error ghost_init ( int  argc,
char **  argv 
)

Initialize GHOST.

Parameters
argcargc as it has been passed to main() (needed for MPI_Init()).
argvargv as it has been passed to main() (needed for MPI_Init()).
Returns
GHOST_SUCCESS on success or an error indicator.

Here is the call graph for this function:

int ghost_initialized ( )

Check if GHOST is initialized.

Returns
True if GHOST is initialized, false otherwise.