---
title: AOE调优API简介
description: "通过AOE API可以使能AOE调优。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/aoe/aoeref_16_0003.html
sourcePath: /source/zh/canncommercial/900/devaids/aoe/aoeref_16_0003.html
indexId: c2c693a62a4e5fd9d760d18a432c3c9f72c3b11626cbcd701c5e7a156b323cc561
---
# AOE调优API简介

#### 功能

通过AOE API可以使能AOE调优。

接口所在头文件为：CANN软件安装目录/cann/include/aoe/external/aoe.h。


#### 接口约束说明

- 调用接口要求：在  AoeInitialize
和  AoeFinalize
接口之间调用  AoeCreateSession
、  AoeSetGeSession
、  AoeSetTuningGraph
、  AoeSetTuningGraphInput
、  AoeTuningGraph
、  AoeDestroySession
接口。其中配对使用的接口有：  AoeInitialize
/  AoeFinalize
、  AoeCreateSession
/  AoeDestroySession
。不配对使用可能出现异常。
- 建议的接口调用顺序：  AoeInitialize
接口-->  AoeCreateSession
接口-->  AoeSetGeSession
接口（可选）-->  AoeSetTuningGraph
接口-->  AoeSetTuningGraphInput
接口（可选）-->  AoeTuningGraph
接口-->  AoeDestroySession
接口->  AoeFinalize
接口。


#### 样例参考

单击gitee(https://gitee.com/ascend/samples/tree/master/cplusplus/level1_single_api/10_aoe_api)，参见README了解对应sample的功能、目录结构、sample运行以及sample相关代码交付件。
