GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
core.c File Reference
#include "ghost/config.h"
#include "ghost/core.h"
#include "ghost/log.h"
#include "ghost/util.h"
#include "ghost/math.h"
#include "ghost/machine.h"
#include "ghost/locality.h"
#include "ghost/taskq.h"
#include "ghost/thpool.h"
#include "ghost/timing.h"
#include "ghost/pumap.h"
#include "ghost/omp.h"
#include "ghost/rand.h"
#include "ghost/instr.h"
#include "ghost/autogen.h"
#include <hwloc.h>
#include <strings.h>
Include dependency graph for core.c:

Functions

char * ghost_type_string (ghost_type t)
 
ghost_error ghost_type_set (ghost_type t)
 
ghost_error ghost_type_get (ghost_type *t)
 
int ghost_initialized ()
 Check if GHOST is initialized. More...
 
ghost_error ghost_init (int argc, char **argv)
 Initialize GHOST. More...
 
ghost_error ghost_finalize ()
 Finalize GHOST. More...
 
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...
 

Variables

static ghost_type mytype = GHOST_TYPE_INVALID
 
static int MPIwasInitialized = 0
 
static int initialized = 0
 
static ghost_mpi_comm ghost_cuda_comm = MPI_COMM_NULL
 A communicator containing only the processes with GHOST_HAVE_CUDA enabled. More...
 

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)

Variable Documentation

ghost_mpi_comm ghost_cuda_comm = MPI_COMM_NULL
static

A communicator containing only the processes with GHOST_HAVE_CUDA enabled.

This is necessary, e.g., for gathering CUDA information in heterogeneous runs containing Xeon Phis.

int initialized = 0
static
int MPIwasInitialized = 0
static
ghost_type mytype = GHOST_TYPE_INVALID
static