Does gcc, icc, or Microsoft's C/C++ compiler support or know anything about NUMA?

前端 未结 3 1472
梦如初夏
梦如初夏 2021-02-03 10:59

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

3条回答
  •  迷失自我
    2021-02-03 11:52

    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.

提交回复
热议问题