msptiActivityKernel
msptiActivityKernel is the struct of the activity record type MSPTI_ACTIVITY_KIND_KERNEL. The definition is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 | typedef struct PACKED_ALIGNMENT { msptiActivityKind kind; // Activity record type MSPTI_ACTIVITY_KIND_KERNEL. uint64_t start; // Start timestamp of the kernel execution on the NPU, in ns. If both the start timestamp and end timestamp are 0, the kernel timestamp information cannot be profiled. uint64_t end; // End timestamp of kernel execution, in ns. If both the start and end timestamps are 0, the kernel timestamp information cannot be sampled. struct { uint32_t deviceId; // ID of the device running the kernel. uint32_t streamId; // Stream ID of the kernel. } ds; uint64_t correlationId; // Unique ID generated when the kernel is launched. Other activities can be correlated with the kernel based on the value. const char *type; // Kernel type. const char *name; // Kernel name, which must be the same in the entire activity record. You are advised not to change the name. } msptiActivityKernel; |
Parent topic: msptiBuffersCallbackCompleteFunc