GEStreamAllocationSummaryGetAttachedStreamIds

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_graph_compile_summary.h>
  • Library file: libge_compiler.so

Function Usage

Obtains the IDs of the auxiliary secondary logical streams of the root graph and subgraphs.

Prototype

1
ge::Status GEStreamAllocationSummaryGetAttachedStreamIds(const ge::CompiledGraphSummary &compiled_graph_summary, std::map<AscendString, std::vector<std::vector<int64_t>>> &graph_to_attached_stream_ids)

Parameters

Parameter

Input/Output

Description

compiled_graph_summary

Input

Brief information about the graph build result.

graph_to_attached_stream_ids

Output

A value in Map format. The key is the graph name. The value is the vector indicating auxiliary secondary logical streams. The index indicates the logical stream ID.

Returns

Parameter

Type

Description

-

ge::Status

  • SUCCESS: The API is called successfully.
  • FAILED: The API fails to be called.

Restrictions

None