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.h File Reference

Functions for GHOST's core functionality. More...

#include "error.h"
#include "types.h"
Include dependency graph for core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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...
 
ghost_error ghost_type_set (ghost_type t)
 
ghost_error ghost_type_get (ghost_type *t)
 
char * ghost_type_string (ghost_type t)
 
ghost_error ghost_string (char **str)
 Construct string holding information on GHOST. More...
 
ghost_error ghost_barrier ()
 
ghost_error ghost_cuda_comm_get (ghost_mpi_comm *comm)
 Get a communicator containing only processes with GHOST_HAVE_CUDA enabled. More...
 

Detailed Description

Functions for GHOST's core functionality.

Author
Moritz Kreutzer morit.nosp@m.z.kr.nosp@m.eutze.nosp@m.r@fa.nosp@m.u.de

Function Documentation

ghost_error ghost_barrier ( )

Here is the call graph for this function:

ghost_error ghost_cuda_comm_get ( ghost_mpi_comm comm)

Get a communicator containing only processes with GHOST_HAVE_CUDA enabled.

Parameters
commWhere to store the communicator
Returns
GHOST_SUCCESS on success or an error indicator.
ghost_error ghost_type_get ( ghost_type t)
ghost_error ghost_type_set ( ghost_type  t)
char* ghost_type_string ( ghost_type  t)