aclprofStart

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

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 products

√

Function

Starts profiling.

Call aclprofStart as required during model execution. Only profile data after the API call is collected.

Prototype

1
aclError aclprofStart(const aclprofConfig *profilerConfig)

Parameters

Parameter

Input/Output

Description

profilerConfig

Input

Profiling configuration. For details about the type definition, see aclprofConfig.

Call aclprofCreateConfig to create data of the aclprofConfig type in advance.

Returns

0 on success; otherwise, failure. For details, see aclError.

Restrictions

aclprofStart must be used in pair with and be called before aclprofStop.