![]() |
LIKWID
|
Functions | |
int | cpustr_to_cpulist (const char *cpustring, int *cpulist, int length) __attribute__((visibility("default"))) |
Read CPU selection string and resolve to available CPU numbers. More... | |
int | nodestr_to_nodelist (const char *nodestr, int *nodes, int length) __attribute__((visibility("default"))) |
Read NUMA node selection string and resolve to available NUMA node numbers. More... | |
int | sockstr_to_socklist (const char *sockstr, int *sockets, int length) __attribute__((visibility("default"))) |
Read CPU socket selection string and resolve to available CPU socket numbers. More... | |
int cpustr_to_cpulist | ( | const char * | cpustring, |
int * | cpulist, | ||
int | length | ||
) |
Read CPU selection string and resolve to available CPU numbers.
Reads the CPU selection string and fills the given list with the CPU numbers defined in the selection string. This function is a interface function for the different selection modes: scatter, expression, logical and physical.
[in] | cpustring | Selection string |
[in,out] | cpulist | List of CPUs |
[in] | length | Length of cpulist |
int nodestr_to_nodelist | ( | const char * | nodestr, |
int * | nodes, | ||
int | length | ||
) |
Read NUMA node selection string and resolve to available NUMA node numbers.
Reads the NUMA node selection string and fills the given list with the NUMA node numbers defined in the selection string.
[in] | nodestr | Selection string |
[out] | nodes | List of available NUMA nodes |
[in] | length | Length of NUMA node list |
int sockstr_to_socklist | ( | const char * | sockstr, |
int * | sockets, | ||
int | length | ||
) |
Read CPU socket selection string and resolve to available CPU socket numbers.
Reads the CPU socket selection string and fills the given list with the CPU socket numbers defined in the selection string.
[in] | sockstr | Selection string |
[out] | sockets | List of available CPU sockets |
[in] | length | Length of CPU socket list |