Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Users mailing list

Subject: Re: [hwloc-users] on using hwloc_get_area_membind_nodeset
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2011-07-05 19:13:19


Alfredo Buttari, le Tue 05 Jul 2011 20:13:55 +0200, a écrit :
> if I understand correctly this routine can tell on which NUMA node(s)
> a specific memory area resides, is this correct?

Yes.

> Will this routine work on any memory area allocated with any
> allocation routine other than those provided by hwloc?

Yes, provided that the OS supports it.

> 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);
> printf("---> %d\n",ret);
>
> hwloc_topology_destroy(topology);
>
>
>
> but I'm always getting a -1 in ret. What's wrong?

Nothing. As Brice said, check errno, it's probably ENOSYS.

Samuel