MPIEventSynqNetData

Declaration

typedef struct MPIEventSynqNetData {
   int32_t         crcError[MPINetworkPortCOUNT];
   MPIUInt64    failedNodeMask;
   MPIUInt64    shutdownNodeMask;
   int32_t         maxForegroundTime;
} MPIEventSynqNetData;

Required Header: stdmpi.h

Change History: Added in 04.00.

Description

MPIEventSynqNetData holds information about a SynqNet event generated on the controller.

crcError The values of the CRC error registers when the event occurred.
failedNodeMask The bit-mask representing the failed nodes when the event occurred.
shutdownNodeMask The bit-mask representing the nodes that are shutdown when the event occurred.
maxForegroundTime The maximum foreground time of the controller when the event occurred.

Sample Code

MPI_RESULT MPI_DECL2
    mySynqNetEventCallback(MPIControl control, const MPIEventData* status, void* userData)
{
    /* print event information to the screen. */

    printf("%s event occurred at controller sample %d.\n"
           "  IN Port CRC error count  = %d\n"
           "  OUT Port CRC error count = %d\n"
           "  Failed nodes             = 0x%016llx\n"
           "  Shutdown nodes           = 0x%016llx\n",
        mpiEventTypeName(status->eventType),
        status->data.sampleCounter,
        status->data.synqNet.crcError[MPINetworkPortIN0],
        status->data.synqNet.crcError[MPINetworkPortOUT0],
        status->data.synqNet.failedNodeMask,
        status->data.synqNet.shutdownNodeMask);
}

See Also

MPIEventData