Yes of course:
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);Err, yes, but why using core->cpuset?? Giving it as parameter to
>
> int return_value = hwloc_get_last_cpu_location(topology, core->cpuset,
> HWLOC_CPUBIND_THREAD);
>
> and now in "core->cpuset" I get the new cpuset bitmap, where process/threads
> runs. Is it right?
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).
Samuel
_______________________________________________
hwloc-users mailing list
hwloc-users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users