Hi Samuel,
Gabriele Fatigati, le Tue 09 Aug 2011 18:14:55 +0200, a écrit :
> hwloc_get_cpubind() function, return, according to the manual, "current processThe cpuset to which the current process or thread (according to flags)
> or thread binding". What does it means?
was last bound to. That is, the converse of set_cpubind().
No, hwloc_get_last_cpu_location() does that.
> It return cpu index where process/ thread runs?
get_cpubind returns a cpuset, you just provide one you have allocated
> If yes, which cpuset I have to use in function arguments?
the way you prefer.
It is really just the converse of hwloc_set_cpubind(), so for instance:
> Could you give me a little example to use it?
set = hwloc_bitmap_alloc();
hwloc_get_cpubind(topology, &set, 0)
Samuel
_______________________________________________
hwloc-users mailing list
hwloc-users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users