Open MPI logo

PLPA Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all PLPA Users mailing list

From: Bert Wesarg (wesarg_at_[hidden])
Date: 2007-04-24 14:31:27


Bert Wesarg wrote:
>> - have node ID, want a list of processor IDs and/or a list of
>> (socket,core) tuples
>> plpa_map_from_node(int node_id, int *socket, int *core, int
>> *processor_id);
>> (socket,core) can be NULL or processor_id can be NULL, but not both.
> how about this:
>
> /* return a cpumap with all processor ids in node node_id */
> plpa_map_from_node(int node_id, plpa_cpu_set_t *processorset);
To make this a little user friendly, I think it is needed to extend the
plpa_cpu_set_t API with functions like:

 * copy
 * count set bits
 * simple iterator over all set bits
 * find next set/unset?

Bert