GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
core.h
Go to the documentation of this file.
1 
6 #ifndef GHOST_CORE_H
7 #define GHOST_CORE_H
8 
9 #include "error.h"
10 #include "types.h"
11 
17 typedef enum {
30 } ghost_type;
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
46  ghost_error ghost_init(int argc, char **argv);
54  int ghost_initialized();
75  char * ghost_type_string(ghost_type t);
76 
86  ghost_error ghost_string(char **str);
87 
89 
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif
This GHOST instance does actual work.
Definition: core.h:25
Header file for type definitions.
ghost_error ghost_type_get(ghost_type *t)
Definition: core.c:85
Types, functions and macros for error handling.
int ghost_mpi_comm
Definition: types.h:19
ghost_error
Error return type.
Definition: error.h:23
ghost_type
Available GHOST types.
Definition: core.h:17
ghost_error ghost_init(int argc, char **argv)
Initialize GHOST.
Definition: core.c:122
ghost_error ghost_type_set(ghost_type t)
Definition: core.c:75
int ghost_initialized()
Check if GHOST is initialized.
Definition: core.c:100
ghost_error ghost_finalize()
Finalize GHOST.
Definition: core.c:600
ghost_error ghost_cuda_comm_get(ghost_mpi_comm *comm)
Get a communicator containing only processes with GHOST_HAVE_CUDA enabled.
Definition: core.c:737
char * ghost_type_string(ghost_type t)
Definition: core.c:53
Type is not set.
Definition: core.h:21
This GHOST instance talks to a CUDA GPU.
Definition: core.h:29
ghost_error ghost_string(char **str)
Construct string holding information on GHOST.
Definition: core.c:655
ghost_error ghost_barrier()
Definition: core.c:725