![]() |
LIKWID
|
Classes | |
struct | NumaNode |
CPUs in NUMA node and general information about a NUMA domain. More... | |
struct | NumaTopology |
The NumaTopology structure describes all NUMA nodes in the current system. More... | |
Typedefs | |
typedef NumaTopology * | NumaTopology_t |
Pointer for exporting the NumaTopology data structure. | |
Functions | |
NumaTopology_t | get_numaTopology (void) __attribute__((visibility("default"))) |
Retrieve NUMA information of the current machine. More... | |
int | likwid_getNumberOfNodes (void) __attribute__((visibility("default"))) |
Retrieve the number of NUMA nodes. More... | |
void | numa_finalize (void) __attribute__((visibility("default"))) |
Destroy NUMA information structure. More... | |
int | numa_init (void) __attribute__((visibility("default"))) |
Initialize NUMA information. More... | |
void | numa_membind (void *ptr, size_t size, int domainId) __attribute__((visibility("default"))) |
Allocate memory from a specific specific NUMA node. More... | |
void | numa_setInterleaved (const int *processorList, int numberOfProcessors) __attribute__((visibility("default"))) |
Set memory allocation policy to interleaved. More... | |
Variables | |
NumaTopology | numa_info |
Variable holding the global NUMA information structure. | |
NumaTopology_t get_numaTopology | ( | void | ) |
Retrieve NUMA information of the current machine.
Get the previously initialized NUMA info structure
int likwid_getNumberOfNodes | ( | void | ) |
Retrieve the number of NUMA nodes.
Returns the number of NUMA nodes of the current machine. Can also be read out of NumaTopology_t
void numa_finalize | ( | void | ) |
Destroy NUMA information structure.
Destroys the NUMA information structure NumaTopology_t. Retrieved pointers to the structures are not valid anymore after this function call
int numa_init | ( | void | ) |
Initialize NUMA information.
Initialize NUMA information NumaTopology_t using either HWLOC or CPUID/ProcFS. If a topology config file is present it is read at topology_init() and fills NumaTopology_t
void numa_membind | ( | void * | ptr, |
size_t | size, | ||
int | domainId | ||
) |
Allocate memory from a specific specific NUMA node.
[in,out] | ptr | Start pointer of memory |
[in] | size | Size for the allocation |
[in] | domainId | ID of NUMA node for the allocation |
void numa_setInterleaved | ( | const int * | processorList, |
int | numberOfProcessors | ||
) |
Set memory allocation policy to interleaved.
Set the memory allocation policy to interleaved for given list of CPUs
[in] | processorList | List of processors |
[in] | numberOfProcessors | Length of processor list |