Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] Is hwloc_bitmap_from_ith_ulong working?
From: Guy Streeter (streeter_at_[hidden])
Date: 2010-12-22 15:59:46


On 12/22/2010 01:50 PM, Guy Streeter wrote:
> I'm using 1.1 on Fedora 13. I start with
>
> set = hwloc_bitmap_alloc_full()
>
> and it looks like
>
> 0xf...f
>
> Then I call
>
> hwloc_bitmap_from_ith_ulong(set, 1, 0xdeadbeef)
>
> and I get
>
> 0xdeadbeef,0x00000034,0x3f77aed8
>
> which I don't understand.
> Example code is attached.
>
> thanks,
> --Guy

hwloc_bitmap_set_ith_ulong() seems to behave in a similar way.

full: 0xf...f
ith: 0xf...f,,0xdeadbeef,0xffffffff,0xffffffff

Example attached.
thanks,
--Guy



  • text/x-csrc attachment: try2.c