PPL Logo

conv-core/memoryaffinity.C File Reference

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 Documentation

typedef unsigned long mem_aff_mask

Definition at line 30 of file memoryaffinity.C.


Function Documentation

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().

Here is the caller graph for this function:

static void MEM_MASK_SET ( int  nid,
mem_aff_mask mem_mask 
) [static]

Definition at line 34 of file memoryaffinity.C.

Referenced by CmiSetMemAffinity().

Here is the caller graph for this function:

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.

Here is the call graph for this function:

static int CmiNumNUMANodes ( void   )  [static]

Definition at line 60 of file memoryaffinity.C.

Referenced by CmiInitMemAffinity(), and getNUMANidByRank().

Here is the caller graph for this function:

static int getNUMANidByRank ( int  coreid  )  [static]

Definition at line 63 of file memoryaffinity.C.

References CmiMyPe(), CmiNumNUMANodes(), CmiPrintf(), and snprintf().

Referenced by CmiInitMemAffinity().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 102 of file memoryaffinity.C.

References CmiPrintf(), MEM_MASK_SET(), and MEM_MASK_ZERO().

Referenced by CmiInitMemAffinity().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Mon Sep 21 08:02:27 2020 for Charm++ by  doxygen 1.5.5