|
Multi-core Hash Joins
Main-memory hash join implementations for multi-core CPUs
|
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) |
| #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.
| 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.
| int get_num_numa_regions | ( | void | ) |
| int get_numa_id | ( | int | mytid | ) |
Returns the NUMA id of the given thread id returned from get_cpu_id(int)
| mytid |
Definition at line 105 of file cpu_mapping.c.
| 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.