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:48:41


Gabriele Fatigati, le Wed 10 Aug 2011 15:41:19 +0200, a écrit :
> hwloc_cpuset_t set = hwloc_bitmap_alloc();
>
> int return_value = hwloc_get_last_cpu_location(topology, set,
>  HWLOC_CPUBIND_THREAD);
>
> printf( " bitmap_string: %s \n", bitmap_string[0]);
>
> give me:
>
> 0x00000800
>
> converted in binary:
>
> 100000000000
>
> So, CPU 0 I suppose,

Do you mean linear 0 or physical 0?

cpusets are always physical, 0x800 means CPU with physical number 11.

Samuel