Open MPI logo

Hardware Locality Users' Mailing List Archives

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

Subject: Re: [hwloc-users] Windows api threading functions equivalent to hwloc?
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2012-11-20 03:49:28

Le 20/11/2012 09:45, Andrew Somorjai a écrit :
> Samuel,
> This is what I have so far. I'm not sure how to get the handle for an array and I'm also getting an
> error from this line:
> hwloc_bitmap_set_only(bitmap, t);
> |50|undefined reference to `hwloc_bitmap_set_only'|

sorry, it's hwloc_bitmap_only() instead of set_onyl().

> Also when do I use:
> hwloc_bitmap_free(bitmap);
> Is it correct in my program or do I need it inside the for loop?

It should be in the same code block than hwloc_bitmap_alloc().

In your code, you can put both inside the for loop, or both outside (the
same bitmap can be reused multiple times).