GetCompiledGraphSummary

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

x

Atlas inference product

Atlas training product

Header File/Library File

  • Header file: #include <ge/ge_api.h>
  • Library file: libge_runner.so

Function Usage

Queries the summary about the compiled graph. The summary includes the feature memory size, const memory size, numbers of streams and events, and whether the memory can be updated.

  • Before calling this API, you must call CompileGraph to compile the graph.
  • You can allocate memory and set the base addresses of the feature memory and const memory by calling the following APIs:
    • SetGraphConstMemoryBase: sets the base address of const memory. The memory size is obtained from GetCompiledGraphSummary > GetConstMemorySize.
    • UpdateGraphFeatureMemoryBase: updates the base address of feature memory. The memory size is obtained from GetCompiledGraphSummary > GetFeatureMemorySize.
    • SetGraphFixedFeatureMemoryBase: sets the base address of fixed feature memory. The memory size is obtained from GetCompiledGraphSummary > GetFixedFeatureMemorySize.
    • SetGraphFixedFeatureMemoryBaseWithType: sets the base address of fixed feature memory with a different memory type of a graph. The memory size is obtained from GetCompiledGraphSummary > GetAllFeatureMemoryTypeSize.
    • UpdateGraphRefreshableFeatureMemoryBase: updates the base address of feature memory that can be updated except the fixed memory. The memory size is obtained from GetCompiledGraphSummary > GetRefreshableFeatureMemorySize.

Prototype

1
CompiledGraphSummaryPtr GetCompiledGraphSummary(uint32_t graph_id)

Parameters

Parameter

Input/Output

Description

graph_id

Input

Subgraph ID.

Returns

Parameter

Type

Description

-

CompiledGraphSummaryPtr

shared_ptr of CompiledGraphSummary.

Restrictions

None