Function: start
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Supported
- Atlas inference products: Supported
- Atlas training products: Supported
Function
Starts profile data collection.
You can call acl.prof.start as required during model execution. The data collected by profiling is the data generated after this API is called.
Prototype
-
C Prototype
aclError aclprofStart(const aclprofConfig *profilerConfig) -
Python Function
ret = acl.prof.start(profiler_config)
Parameters
| Parameter | Description |
|---|---|
| profiler_config | Int, profiling configuration. Call the acl.prof.create_config API to create data of the aclprofConfig type in advance. |
Return Values
| Return Value | Description |
|---|---|
| ret | Int, error code.0: successIf other values are returned, the operation fails. |
Constraints
This API is used in pair with acl.prof.stop. Call acl.prof.start before acl.prof.stop.