aclprofInit

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

Initializes profiling and sets the path for saving profile data files.

Prototype

1
aclError aclprofInit(const char *profilerResultPath, size_t length)

Parameters

Parameter

Input/Output

Description

profilerResultPath

Input

An absolute or relative path for saving profile data files.

length

Input

Length of the profilerResultPath, in bytes. The maximum length is 4096 bytes.

Returns

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

Restrictions

aclprofInit must be used in pair with and be called before aclprofFinalize.