---
title: GetCompiledGraphSummary
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendgraphapi/atlasgeapi_07_0106.html
sourcePath: /source/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi_07_0106.html
indexId: 80a1f9f7c3df40e736c05861cf8966136aad38dddbfcbe5f9b29256574bf0dfa72
---
# GetCompiledGraphSummary

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 头文件/库文件

- 头文件：#include <ge/ge_api.h>
- 库文件：libge_runner.so


#### 功能说明

查询图编译结果的概要信息。包括Feature内存大小、Const内存大小、Stream、Event数目及内存是否可刷新等信息。

- 在调用本接口前，必须先调用  CompileGraph
接口进行图编译。
- 您可以自行申请内存，再通过如下接口设置或更新Feature内存、Const内存基址：

  - 通过    SetGraphConstMemoryBase
设置Const内存基址。内存大小从GetCompiledGraphSummary>GetConstMemorySize接口中获取。
  - 通过    UpdateGraphFeatureMemoryBase
更新Feature内存基址，内存大小从GetCompiledGraphSummary>GetFeatureMemorySize接口中获取。
  - 通过    SetGraphFixedFeatureMemoryBase
设置Fixed Feature内存基地址，内存大小从GetCompiledGraphSummary>GetFixedFeatureMemorySize接口中获取。
  - 通过    SetGraphFixedFeatureMemoryBaseWithType
设置图的不同内存类型的Fixed Feature内存基地址，内存大小从GetCompiledGraphSummary>GetAllFeatureMemoryTypeSize接口中获取。
  - 通过    UpdateGraphRefreshableFeatureMemoryBase
更新除了Fixed之外可刷新的Feature内存基址，内存大小从GetCompiledGraphSummary>GetRefreshableFeatureMemorySize接口中获取。


#### 函数原型

```
CompiledGraphSummaryPtr GetCompiledGraphSummary(uint32_t graph_id)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| graph\_id | 输入 | 子图对应的ID。 |


#### 返回值说明

| 参数名 | 类型 | 说明 |
| --- | --- | --- |
| \- | CompiledGraphSummaryPtr | 图编译结果的概要信息CompiledGraphSummary的shared\_ptr。 |


#### 约束说明

无
