aclgrphProfStart

Applicable Products

  • Ascend 950PR/Ascend 950DT: supported
  • Atlas A3 training products/Atlas A3 inference products: supported
  • Atlas A2 training products/Atlas A2 inference products: supported
  • Atlas 200I/500 A2 inference products: not supported
  • Atlas inference products: supported
  • Atlas training products: supported

Header File/Library File

  • Header file: #include <ge/ge_prof.h>
  • Library file: libmsprofiler.so

Function Usage

Starts profiling.

Prototype

1
Status aclgrphProfStart(aclgrphProfConfig *profiler_config)

Parameters

Parameter

Input/Output

Description

profiler_config

Input

Pointer to a struct for a profiling configuration.

Returns

Parameter

Type

Description

-

Status

SUCCESS: success.

Other values: failure.

Restrictions

  • This API must be called before RunGraph. If it is called during model execution, the profile data after the aclgrphProfStart call is collected. As a result, the data may be incomplete.
  • aclgrphProfStart must be called as a pair with, and before, aclgrphProfStop.
  • aclgrphProfInit > aclgrphProfStart > aclgrphProfStop > aclgrphProfFinalize is a complete API call process. You have to follow the complete process if you want to switch models or graphs in a single process or perform multiple rounds of execution. Any API in this process cannot be called out of order or concurrently multiple times.