GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Macros | Functions
locality.h File Reference

Types and functions for gathering locality information. More...

#include "error.h"
#include <hwloc.h>
Include dependency graph for locality.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ghost_hwconfig
 

Macros

#define GHOST_HWCONFIG_INVALID   -1
 
#define GHOST_HWCONFIG_INITIALIZER   {.ncore = GHOST_HWCONFIG_INVALID, .nsmt = GHOST_HWCONFIG_INVALID, .cudevice = GHOST_HWCONFIG_INVALID}
 

Functions

ghost_error ghost_hwconfig_set (ghost_hwconfig)
 
ghost_error ghost_hwconfig_get (ghost_hwconfig *hwconfig)
 
ghost_error ghost_rank (int *rank, ghost_mpi_comm comm)
 
ghost_error ghost_nnode (int *nnode, ghost_mpi_comm comm)
 
ghost_error ghost_nrank (int *nrank, ghost_mpi_comm comm)
 
ghost_error ghost_cpu (int *core)
 
ghost_error ghost_thread_pin (int core)
 
ghost_error ghost_thread_unpin ()
 
ghost_error ghost_nodecomm_get (ghost_mpi_comm *comm)
 
ghost_error ghost_nodecomm_setup (ghost_mpi_comm comm)
 

Detailed Description

Types and functions for gathering locality information.

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

Macro Definition Documentation

#define GHOST_HWCONFIG_INITIALIZER   {.ncore = GHOST_HWCONFIG_INVALID, .nsmt = GHOST_HWCONFIG_INVALID, .cudevice = GHOST_HWCONFIG_INVALID}
#define GHOST_HWCONFIG_INVALID   -1

Function Documentation

ghost_error ghost_cpu ( int *  core)

Here is the call graph for this function:

ghost_error ghost_hwconfig_get ( ghost_hwconfig hwconfig)
ghost_error ghost_hwconfig_set ( ghost_hwconfig  )
ghost_error ghost_nnode ( int *  nnode,
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 *  nrank,
ghost_mpi_comm  comm 
)
ghost_error ghost_rank ( int *  rank,
ghost_mpi_comm  comm 
)
ghost_error ghost_thread_pin ( int  core)

Here is the call graph for this function:

ghost_error ghost_thread_unpin ( )

Here is the call graph for this function: