Creates data of the aclprofConfig type as a Profiling configuration. This API is synchronous.
Created aclProfConfig data can be reused in multiple calls. The user needs to ensure the consistency and accuracy of the data.
To destroy data of the aclprofConfig type, call aclprofDestroyConfig.
aclprofConfig *aclprofCreateConfig(uint32_t *deviceIdList, uint32_t deviceNums, aclprofAicoreMetrics aicoreMetrics, aclprofAicoreEvents *aicoreEvents, uint64_t dataTypeConfig)
Parameter |
Input/Output |
Description |
|---|---|---|
deviceIdList |
Input |
Device ID list |
deviceNums |
Input |
Device count. Ensure that the number of devices in deviceIdList is the same as that of deviceNums. Otherwise, service exceptions may occur subsequently. |
aicoreMetrics |
Input |
AI Core metric to profile. |
aicoreEvents |
Input |
AI Core event, which is set to NULL. |
dataTypeConfig |
Input |
Logically ORed by the following macros (for example, ACL_PROF_ACL_API | ACL_PROF_AICORE_METRICS). Each macro corresponds to a specific metric.
|