Open MPI logo

Hardware Locality Users' Mailing List Archives

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

Subject: Re: [hwloc-users] hwloc get cpubind function
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2011-08-10 09:34:35

Gabriele Fatigati, le Wed 10 Aug 2011 15:29:43 +0200, a écrit :
> hwloc_obj_t core = hwloc_get_obj_by_type(topology, HWLOC_OBJ_MACHINE, 0);
> int return_value = hwloc_get_last_cpu_location(topology, core->cpuset,
> and now in "core->cpuset" I get the new cpuset bitmap, where process/threads
> runs. Is it right?

Err, yes, but why using core->cpuset?? Giving it as parameter to
hwloc_get_last_cpu_location will only overwrite its content with the
content returned by hwloc_get_last_cpu_location (which is forbidden, see
the documentation of the cpuset field).