If I have a multi-processor board that has cache-coherent non-uniform memory access ( NUMA ), i.e. separate \"northbridges\" with separate RAM for each processor, does any compi
NUMA-aware memory allocation is not done at compile time. Making assumptions like this would be bad for portability.
On Linux, this is a kernel function, though you can control this at runtime with numactl or set_mempolicy or with libnuma.
numactl
set_mempolicy
libnuma