Sometimes, it is convenient to view the processors/nodes of the machine as a tree. For this purpose, CONVERSE defines a tree over processors/nodes. We provide functions to obtain the parent and children of each processor/node. On those machines where the communication topology is relevant, we arrange the tree to optimize communication performance. The root of the spanning tree (processor based or node-based) is always 0, thus the CmiSpanTreeRoot call has been eliminated.
int CmiSpanTreeParent(int procNum)
This function returns the processor number of the parent of
procNum in the spanning tree.
int CmiNumSpanTreeChildren(int procNum)
Returns the number of children of procNum in the spanning tree.
void CmiSpanTreeChildren(int procNum, int *children)
This function fills the array children with processor
numbers of children of procNum in the spanning tree.
int CmiNodeSpanTreeParent(int nodeNum)
This function returns the node number of the parent of
nodeNum in the spanning tree.
int CmiNumNodeSpanTreeChildren(int nodeNum)
Returns the number of children of nodeNum in the spanning tree.
void CmiNodeSpanTreeChildren(int nodeNum, int *children)
This function fills the array children with node
numbers of children of nodeNum in the spanning tree.
November 23, 2009
Converse Homepage
Charm Homepage