I have a NUMA machine of 2 nodes. I want to allocate the two halves of an array on the two nodes respectively. How can I do that?
Please note that by "half" I mean a continuous chunk of virtual memory. I found the function numa_alloc_interleaved, but it doesn't satisfy my requirement.