已合并
add chapter01 to master br #786
add chapter01 to master br #786
已合并
wangmingming创建于 19 天前
wangmingming成员
19 天前

描述

·

AutoFusion cann-learning-hub课程第一章节,自动融合概述内容,从test分支同步到master分支

关联的Issue

测试

文档更新

类型标签

其他信息

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 wangmingming 的贡献)
Wwangmingming成员
19 天前 创建了 pull request,commit a3a6f6b9
atomgit-bot
atomgit-bot
19 天前 评论:

变更摘要

本 PR 将《AutoFuse 开发教程》的第 1 章(基础介绍)以 Jupyter Notebook 形式合入 master 分支,新增了 tutorials/autofusion_development/01_basic_overview/ 目录下的 4 个文档文件,全部为纯文档性新增内容(无既有代码改动)。该章节面向使用者系统介绍 AutoFuse(基于 Ascend C 的自动融合框架)的整体认知:从"什么是 AutoFuse"及其缓解 Memory Bound 问题的原理,到 GE 框架与 PyTorch Inductor 两条接入路线、前端 FusedGraph/AscBackend/AscGraph/AscIR 与后端 Kernel/Tiling 代码生成的融合过程,再到通过环境变量 AUTOFUSE_FLAGS 完成基础使能的具体配置方法,并配套课后练习用于自测。

主要改动

  • 新增章节引言(01.01_chapter_intro.ipynb:建立章节导航,列出前置要求(CANN、昇腾 NPU 基础概念)与章节目标,并串联本 PR 新增的 4 个 Notebook 学习路径。
  • 新增 AutoFuse 概念讲解(01.02_autofuse_introduction.ipynb:以术语表形式解释算子、GM、UB、MTE、Tiling、AscIR 等基础概念,说明 AutoFuse 通过算子融合减少内存搬运以缓解 Memory Bound 的原理,并介绍基于 GE 框架与 PyTorch Inductor 两条接入路线及 FusedGraphAscBackendAscGraphAscIR 的融合过程,同时给出支持的产品型号与使用边界。
  • 新增 AutoFuse 使能配置说明(01.03_enable_autofusion.ipynb:说明通过环境变量 AUTOFUSE_FLAGS="--enable_autofuse=true" 开启总开关、以英文分号分隔多配置项的格式规范,以及通过 --autofuse_enable_pass=reduce,concat 显式开启默认不使能的 Reduce、Concat 融合能力(Elemwise、Broadcast 默认支持),并澄清 AUTOFUSE_DFX_FLAGS 仅为进阶定位配置等常见误区。
  • 新增章节练习(01.04_chapter_practice.ipynb:以判断、单选、多选题目综合检验对 AutoFuse 定位、收益来源、接入路线与基础使能方式的掌握情况,各 Notebook 通过 !cat ./answer/01.0x_answer.txt 提供答案查看方式。
likedislike
不准确?
atomgit-bot
atomgit-bot
19 天前 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
Wwangmingming成员
19 天前 修改了pull request 的描述
CANN-robotCANN-robot成员
19 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
19 天前 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
For more, you also can visit HICANN.


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-cann/cann-learning-hub waimaidaole, Mexyy (2/2) waimaidaole (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

gcw_WTfSfUy7, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
wangmingming成员
19 天前 评论:

compile

likedislike
Wwangmingming成员
19 天前 update merge request[project id: 9260575, iid: 786, commit_id: 7b3ac9c7fab194f769ec4d13400df7b045c4b0ca] virtual merging success
CANN-robotCANN-robot成员
19 天前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
19 天前 评论:

流水线任务触发成功
任务链接 [e0084c82955c4c88aea88ef740f58eba][流水线指导]

任务名称状态日志下载链接
SCA ❌ FAILED
antipoison ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
codecheck_style ✅ SUCCESS >>>>>
pre-commit ✅ SUCCESS
likedislike
CANN-robotCANN-robot成员
19 天前 删除了label:ci-pipeline-running
此处折叠了5条事件消息 查看更多
CANN-robotCANN-robot成员
19 天前 添加了label:ci-pipeline-failed
wangmingming成员
19 天前 评论:

compile

likedislike
CANN-robotCANN-robot成员
19 天前 删除了label:ci-pipeline-failed
CANN-robotCANN-robot成员
19 天前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
19 天前 评论:

流水线任务触发成功
任务链接 [316802c5378741e7949392d40f2d8e72][流水线指导]

任务名称状态日志下载链接
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
codecheck_style ✅ SUCCESS >>>>>
pre-commit ✅ SUCCESS

[2026-08-20 19:01:09]    CI执行结束

likedislike
CANN-robotCANN-robot成员
19 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
19 天前 添加了label:ci-pipeline-passed
CANN-robotCANN-robot成员
19 天前 删除了label:ci-pipeline-passed
CANN-robotCANN-robot成员
19 天前 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
19 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
19 天前 添加了label:ci-pipeline-passed
夏国正成员
19 天前 评论:

/lgtm

likedislike
meme成员
19 天前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
19 天前 添加了label:lgtmapproved
CANN-robotCANN-robot成员
19 天前 合入了pull request