Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

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


Gabriele Fatigati, le Wed 10 Aug 2011 09:35:19 +0200, a écrit :
> these lines, doesn't works:
>
> set = hwloc_bitmap_alloc();
> hwloc_get_cpubind(topology, &set, 0);
>
> hwloc_get_cpubind() crash, because I have to pass set, not &set i suppose.

Right, of course.

> I think hwloc_get_last_cpu_location() is used coupled with hwloc_get_cpubind()?

Well, they don't _have_ to. They provide a different information. It
just happens that get_last_cpu_location usually returns an index withing
what get_cpubind returns ("always", if the binding is strict).

Samuel