Go to the source code of this file.
Typedefs | |
typedef unsigned long | mem_aff_mask |
Functions | |
CpvExtern (int, myCPUAffToCore) | |
static void | MEM_MASK_ZERO (mem_aff_mask *mem_mask) |
static void | MEM_MASK_SET (int nid, mem_aff_mask *mem_mask) |
static void | MEM_MASK_CLEAR (int nid, mem_aff_mask *mem_mask) |
int | print_mem_affinity (void) |
static int | CmiNumNUMANodes (void) |
static int | getNUMANidByRank (int coreid) |
int | CmiSetMemAffinity (int policy, int *nids, int len) |
policy: indicates the memory policy nids: indicates the NUMA nodes to be applied len: indicates how many NUMA nodes nids has | |
void | CmiInitMemAffinity (char **argv) |
typedef unsigned long mem_aff_mask |
Definition at line 30 of file memoryaffinity.C.
CpvExtern | ( | int | , | |
myCPUAffToCore | ||||
) |
static void MEM_MASK_ZERO | ( | mem_aff_mask * | mem_mask | ) | [static] |
Definition at line 31 of file memoryaffinity.C.
Referenced by CmiSetMemAffinity().
static void MEM_MASK_SET | ( | int | nid, | |
mem_aff_mask * | mem_mask | |||
) | [static] |
Definition at line 34 of file memoryaffinity.C.
Referenced by CmiSetMemAffinity().
static void MEM_MASK_CLEAR | ( | int | nid, | |
mem_aff_mask * | mem_mask | |||
) | [static] |
Definition at line 37 of file memoryaffinity.C.
int print_mem_affinity | ( | void | ) |
Definition at line 40 of file memoryaffinity.C.
References CmiMyPe(), CmiPrintf(), and len.
static int CmiNumNUMANodes | ( | void | ) | [static] |
Definition at line 60 of file memoryaffinity.C.
Referenced by CmiInitMemAffinity(), and getNUMANidByRank().
Definition at line 63 of file memoryaffinity.C.
References CmiMyPe(), CmiNumNUMANodes(), CmiPrintf(), and snprintf().
Referenced by CmiInitMemAffinity().
policy: indicates the memory policy nids: indicates the NUMA nodes to be applied len: indicates how many NUMA nodes nids has
Definition at line 102 of file memoryaffinity.C.
References CmiPrintf(), MEM_MASK_SET(), and MEM_MASK_ZERO().
Referenced by CmiInitMemAffinity().