Multi-core Hash Joins
Main-memory hash join implementations for multi-core CPUs
Macros | Functions
CPU mapping tool

Macros

#define CUSTOM_CPU_MAPPING   "cpu-mapping.txt"
 

Functions

int get_cpu_id (int thread_id)
 
int get_numa_id (int mytid)
 
int get_num_numa_regions (void)
 
int get_numa_node_of_address (void *ptr)
 

Detailed Description

Macro Definition Documentation

◆ CUSTOM_CPU_MAPPING

#define CUSTOM_CPU_MAPPING   "cpu-mapping.txt"

if the custom cpu mapping file exists, logical to physical mappings are initialized from that file, otherwise it will be round-robin

Definition at line 24 of file cpu_mapping.h.

Function Documentation

◆ get_cpu_id()

int get_cpu_id ( int  thread_id)

Returns SMT aware logical to physical CPU mapping for a given thread id.

Definition at line 78 of file cpu_mapping.c.

◆ get_num_numa_regions()

int get_num_numa_regions ( void  )

Returns number of NUMA regions.

Returns

Definition at line 124 of file cpu_mapping.c.

◆ get_numa_id()

int get_numa_id ( int  mytid)

Returns the NUMA id of the given thread id returned from get_cpu_id(int)

Parameters
mytid
Returns

Definition at line 105 of file cpu_mapping.c.

◆ get_numa_node_of_address()

int get_numa_node_of_address ( void *  ptr)

Returns the NUMA-node id of a given memory address

Definition at line 135 of file cpu_mapping.c.