aclprofGetStepTimestamp

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function

Sets the start timestamp and end timestamp of an iteration (or step), to display the Profiling analysis result by step after training is implemented by using single-operator model execution APIs.

Prototype

1
aclError aclprofGetStepTimestamp(aclprofStepInfo* stepInfo, aclprofStepTag tag, aclrtStream stream)

Parameters

Parameter

Input/Output

Description

stepInfo

Input

Step information. Call aclprofCreateStepInfo to create data of the aclprofStepInfo type in advance.

For details about the type definition, see aclprofStepInfo, aclprofStepTag, and aclrtStream.

tag

Input

Step start timestamp and end timestamp. Pass the enumerated value ACL_STEP_START at the step start and the enumerated value ACL_STEP_END at the step end.

stream

Input

Stream.

Returns

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