Function: create_config
C Prototype |
aclprofConfig *aclprofCreateConfig(uint32_t *deviceIdlist, uint32_t deviceNums, aclprofAicoreMetrics aicoreMetrics, aclprofAicoreEvents *aicoreEvents, uint64_t dataTypeConfig) |
|---|---|
Python Function |
prof_config = acl.prof.create_config(device_list, aicore_metrics, aicore_events, data_type_config) |
Function Usage |
Creates data of the aclprofConfig type as the profiling configuration. Created aclProfConfig data can be reused in multiple calls. You need to ensure the consistency and accuracy of the data. To destroy data of the aclprofConfig type, call Function: destroy_config. |
Input Description |
device_list: device ID list Set this parameter based on the actual device ID. aicore_metrics: aclprofAicoreMetrics. aicore_events: AI Core event, which is set to 0. data_type_config: Select from the following values in logical OR format (for example, ACL_PROF_ACL_API|ACL_PROF_AICORE_METRICS) as the parameter value of data_type_config. Each value indicates a type of profile data.
|
Return Value |
prof_config: int.
|
Restrictions |
|