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-28 12:14:11


Hello,

maybe too early, but I have some new names for the functions:

> /* Return the set of processor IDs for a node ID, rel. (f) */
> map_from_node_id(int node_id, cpu_set_t *cpuset);
node_get_cpumap(int node_id, cpu_set_t *cpumap);

Because a file in a nodeX directory is called cpumap and have exactly this
information

> /* Return the set of all possible processor IDs
> if bit i is set in cpuset, a processor ID with i exist */
> get_processor_set(cpu_set_t *cpuset);
maybe: get_cpumap();

>
> /* Return the set of all possible node IDs
> if bit i is set in nodeset, a node ID with i exist */
> get_node_set(cpu_set_t *nodeset);
maybe: get_nodemap();

>
> /* Return the set of all sockets
> if bit i is set in socketset, at least one tuple (s, c, t) exist
> with s == i */
> get_socket_set(cpu_set_t *socketset);
maybe: get_socketmap();

>
> /* Return the set of all sockets from a node ID
> if bit i is set in socketset, at least one tuple (s, c, t) exist
> with s == i and this tuple is in node node_id
> NOTE: this is the only function that brings the tuples and nodes
> directly into relation
> relation (g) */
> get_socket_set_in_node(int node_id, cpu_set_t *socketset);
node_get_socketmap()

>
> /* Return the set of all possible cores in a socket
> if bit i is set in coreset, at least one tuple (s, c, t) exist
> with s == socket and c == i
> relation (h) */
> get_core_set(int socket, cpu_set_t *coreset);
socket_get_coremap()
or:
socket_get_core_siblings()

>
> /* Return the set of all possible threads in a (socket,core) tuple
> if bit i is set in threadset, there exist exactly one tuple (s, c, t)
> with s == socket and c == core and t == i
> relation (i) */
> get_thread_set(int socket, int core, cpu_set_t *threadset);
socket_core_get_threadmap()
or:
socket_core_get_thread_siblings()

Bert