if I understand correctly this routine can tell on which NUMA node(s)
a specific memory area resides, is this correct?
Will this routine work on any memory area allocated with any
allocation routine other than those provided by hwloc?
Can anybody provide a simple example of usage of this routine?
I tried something simple like this
a = (int *) malloc(1000*sizeof(int));
nodeset = hwloc_bitmap_alloc();
ret = hwloc_get_area_membind_nodeset( topology, a,
1000*sizeof(int), nodeset, policy, HWLOC_MEMBIND_STRICT);
but I'm always getting a -1 in ret. What's wrong?
Thanks in advance