L2_DFX_PHASE_2

Function Usage

Collects the delay statistics of the L2 second-phase API aclnnXxx. It must be called at the beginning of the second-phase API.

Prototype

L2_DFX_PHASE_2(APIName)

Parameters

Parameter

Input/Output

Description

APIName

Input

Name of the L2 API on the host, for example, aclnnXxx.

Constraints

This API must be called at the entry of the L2 second-phase API. Otherwise, the delay statistics may be inaccurate.

Example

1
2
// Collect statistics on the second-phase delay of the L2 API of the abs operator.
L2_DFX_PHASE_2(aclnnAbs);