GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
locality.c File Reference
#include "ghost/config.h"
#include "ghost/types.h"
#include "ghost/util.h"
#include "ghost/locality.h"
#include "ghost/log.h"
#include "ghost/machine.h"
#include "ghost/error.h"
#include "ghost/omp.h"
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
Include dependency graph for locality.c:

Macros

#define _GNU_SOURCE
 
#define LOCAL_HOSTNAME_MAX   256
 
#define ROTL32(num, amount)   (((num) << (amount)) | ((num) >> (32 - (amount))))
 

Functions

static int stringcmp (const void *x, const void *y)
 
ghost_error ghost_thread_pin (int coreNumber)
 
ghost_error ghost_thread_unpin ()
 
ghost_error ghost_cpu (int *core)
 
ghost_error ghost_rank (int *rank, ghost_mpi_comm comm)
 
ghost_error ghost_nnode (int *nNodes, ghost_mpi_comm comm)
 
ghost_error ghost_nrank (int *nRanks, ghost_mpi_comm comm)
 
ghost_error ghost_hwconfig_set (ghost_hwconfig a)
 
ghost_error ghost_hwconfig_get (ghost_hwconfig *hwconfig)
 
static void MurmurHash3_x86_32 (const void *key, int len, uint32_t seed, void *out)
 
static ghost_error ghost_hostname (char **hostnamePtr, size_t *hostnameLength)
 
ghost_error ghost_nodecomm_get (ghost_mpi_comm *comm)
 
ghost_error ghost_nodecomm_setup (ghost_mpi_comm comm)
 

Variables

static ghost_hwconfig my_hwconfig = GHOST_HWCONFIG_INITIALIZER
 
static ghost_mpi_comm ghost_node_comm = MPI_COMM_NULL
 

Macro Definition Documentation

#define _GNU_SOURCE
#define LOCAL_HOSTNAME_MAX   256
#define ROTL32 (   num,
  amount 
)    (((num) << (amount)) | ((num) >> (32 - (amount))))

Function Documentation

ghost_error ghost_cpu ( int *  core)

Here is the call graph for this function:

static ghost_error ghost_hostname ( char **  hostnamePtr,
size_t *  hostnameLength 
)
static

Here is the call graph for this function:

ghost_error ghost_hwconfig_get ( ghost_hwconfig hwconfig)
ghost_error ghost_hwconfig_set ( ghost_hwconfig  a)
ghost_error ghost_nnode ( int *  nNodes,
ghost_mpi_comm  comm 
)

Here is the call graph for this function:

ghost_error ghost_nodecomm_get ( ghost_mpi_comm comm)
ghost_error ghost_nodecomm_setup ( ghost_mpi_comm  comm)

Here is the call graph for this function:

ghost_error ghost_nrank ( int *  nRanks,
ghost_mpi_comm  comm 
)
ghost_error ghost_rank ( int *  rank,
ghost_mpi_comm  comm 
)
ghost_error ghost_thread_pin ( int  coreNumber)

Here is the call graph for this function:

ghost_error ghost_thread_unpin ( )

Here is the call graph for this function:

static void MurmurHash3_x86_32 ( const void *  key,
int  len,
uint32_t  seed,
void *  out 
)
static
static int stringcmp ( const void *  x,
const void *  y 
)
static

Variable Documentation

ghost_mpi_comm ghost_node_comm = MPI_COMM_NULL
static