msptiActivityGetNextRecord¶
Supported Products¶
Note: For details about Ascend product models, see Ascend Product Models.
| Product Type | Supported |
|---|---|
| Ascend 950 products | √ |
| Atlas A3 training products/Atlas A3 inference products | √ |
| Atlas A2 training products/Atlas A2 inference products | √ |
| Atlas 200I/500 A2 inference products | √ |
| Atlas inference products | × |
| Atlas training series products | × |
Description ¶
Obtain data from the activity buffer in sequence. One activity record is read each time.
Function Prototype¶
msptiResult msptiActivityGetNextRecord(uint8_t *buffer, size_t validBufferSizeBytes, msptiActivity **record)
Parameter Description¶
Table 1 Command-line options
Size of the data recorded in the| . | ||
| . | ||
Return Values¶
MSPTI_SUCCESS indicates that the operation is successful. MSPTI_ERROR_MAX_LIMIT_REACHED is returned when there is no more record data in the activity buffer, indicating that the data in the activity buffer has been completely obtained. MSPTI_ERROR_INVALID_PARAMETER is returned when the activity buffer is empty, indicating that the operation fails.