msptiActivityCommunication

msptiActivityCommunication is the struct of the activity record type MSPTI_ACTIVITY_KIND_COMMUNICATION, used to correlate with activity records. The definition is as follows:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
typedef struct PACKED_ALIGNMENT {
    msptiActivityKind kind;   // Activity record type MSPTI_ACTIVITY_KIND_COMMUNICATION.
    msptiCommunicationDataType dataType;   // Data type of the communication operator.
    uint64_t count;   // Data volume of the communication operator.
    struct {
        uint32_t deviceId;   // ID of the device where the communication operator runs.
        uint32_t streamId;   // Stream ID of the communication operator.
    } ds;
    uint64_t start;   // Start timestamp of the communication operator execution on the NPU device, in ns. If both the start and end timestamps are 0, the timestamp information of communication operators cannot be profiled.
    uint64_t end;   // End timestamp of communication operator execution, in ns. If both the start and end timestamps are 0, the timestamp information of communication operators cannot be profiled.
    const char* algType;   // Algorithm used by the communication operator.
    const char* name;   // Communication operator name.
    const char* commName;   // Name of the communicator where the communication operator is located.
    uint64_t correlationId;   // Unique ID generated when the communication operator is executed. Other activities can be correlated with the communication operator based on the value.
} msptiActivityCommunication;