MPISynqNetInfo
Definition
typedef struct MPISynqNetInfo {
MPINetworkType networkType;
long nodeCount;
long nodeOffset;
MPISynqNetCableLength cableLength[MPISynqNetCableHOP_COUNT];
/* measured length */
} MPISynqNetInfo;
Description
MPISynqNetInfo contains static data that is determined during network initialization. It identifies the network type, number of nodes on the network, starting number (offset) of the first node, and an rough estimate of measured cable lengths.
|
|---|
Sample Code
/* Get the number of nodes on the SynqNet network
Returns -1 if there is an error
*/
int NumberOfNodes(MPISynqNet synqNet)
{
MPISynqNetInfo info;
long returnValue;
int numNodes = -1;
returnValue = mpiSynqNetInfo(synqNet, &info);
if(returnValue == MPIMessageOK) {
numNodes = info.nodeCount;
}
return numNodes;
}
See Also
mpiSynqNetInfo | MPISynqNetConfig
