Le 19/08/2014 18:38, Aulwes, Rob a écrit :
> Hi,
>
> I'm trying to write a custom C++ allocator that wraps hwloc calls.
>  I've tried using various hwloc_alloc* functions to set the memory
> bindings, but when I call hwloc_get_area_membind_nodeset to verify, I
> don't get the same policy I passed to alloc.  Are there example codes
> that show how to set memory bindings?  More generally, are there
> example codes that help illustrate how to use hwloc API?
>
> Thanks,Rob Aulwes
>

Hello

Your problem may be related to the fact that same policies are identical
on some operating systems. For instance DEFAULT and FIRST_TOUCH are
often identical. What did you set and what did you get back?

There are many examples in the tests subdirectory, in doc/hwloc-helloc.c
and in hwloc/helper.h and hwloc/inline.h, but I don't think we have much
about the membind API, and this API isn't a easy one unfortunately
(given the variety of existing policies and operating systems).

Brice

Reply via email to