|
Multi-core Hash Joins
Main-memory hash join implementations for multi-core CPUs
|
Affinity methods on Mac OS X. Mac OS X does not export interfaces that identify processors or control thread placement – explicit thread to processor binding is not supported. So this is just a place holder to compile in Mac OS, experiments should be run in Linux. More...
#include <pthread.h>#include "../config.h"Go to the source code of this file.
Macros | |
| #define | CPU_ZERO(PTR) (*(PTR) = 0) |
| #define | CPU_SET(N, PTR) (*(PTR) = (N)) |
| #define | pthread_attr_setaffinity_np(ATTR, SZ, PTR) setaffinity(ATTR, SZ, PTR) |
| #define | sched_setaffinity(A, SZ, PTR) setaffinity(A, SZ, PTR) |
Typedefs | |
| typedef int | cpu_set_t |
Affinity methods on Mac OS X. Mac OS X does not export interfaces that identify processors or control thread placement – explicit thread to processor binding is not supported. So this is just a place holder to compile in Mac OS, experiments should be run in Linux.
(c) 2012, ETH Zurich, Systems Group
Definition in file affinity.h.
| #define CPU_SET | ( | N, | |
| PTR | |||
| ) | (*(PTR) = (N)) |
Definition at line 27 of file affinity.h.
| #define CPU_ZERO | ( | PTR | ) | (*(PTR) = 0) |
Definition at line 26 of file affinity.h.
| #define pthread_attr_setaffinity_np | ( | ATTR, | |
| SZ, | |||
| PTR | |||
| ) | setaffinity(ATTR, SZ, PTR) |
Definition at line 28 of file affinity.h.
| #define sched_setaffinity | ( | A, | |
| SZ, | |||
| PTR | |||
| ) | setaffinity(A, SZ, PTR) |
Definition at line 29 of file affinity.h.
| typedef int cpu_set_t |
Definition at line 31 of file affinity.h.