Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] towards PLPA-like API in 1.0
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2009-12-10 02:08:28


Brice Goglin wrote:
>> I am looking at what we could add to the main API/helpers, here's what
>> could be useful:
>> 1) get_obj_under_by_type(topology, type, index, subtype, subindex)
>> returns for instance core 2 under socket 3. It's very easy
>> (get_obj_by_type+get_obj_inside_cpuset_by_type).
>> 2) Some people might want _under_under with 3 types/indexes. Not sure we
>> want it, or want to make it generic with arrays of types/indexes...
>> 3) Generic conversion routines between os_index and logical_index, like
>> get_obj_by_os_index(type, os_index) and get_os_index_by_type(type, index)
>> 4) Some kind of processor flag which tells us whether a physical proc
>> exists and is online
>>
>>
>
>
> Any opinion about this? Should we drop the current plpa.h and just add
> the above new inlines to helper.h? (with some documentation about
> switching from PLPA into these new functions)
>

Since nobody commented and Jeff has already removed the PLPA tests from
trunk, I am going to add (1) and probably (3), and document (2) and (4)
in the PLPA doc section. Then I'll move most comments from plpa.h into
this doc section and remove plpa.h entirely.

Brice