| Files | Last commit | Last update |
|---|---|---|
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
fix(machine): Detect intra-loop write overlap for single-root cell-match WAW Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !6438 merge 920 into 9.2.0 fix(machine): Detect intra-loop write overlap for single-root cell-match WAW Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 1. Background(背景信息) 当前 kernel 输入 tensor 的写后写依赖建立过程,单 root、跨迭代写同一 assemble 区域时,无法建立写后写依赖,导致精度异常。 为了解决场景精度异常问题,新增 PASS 在 IR 层进行写后写区域重叠校验:相对当前循环变量,相邻迭代写窗可分,并进行非重叠标记,用于machine部分的写后写依赖判定依据。 ## 2. 总体流程 1. 在create_function之后新增了infer_multi_iter_overlap_pass,用于检测loop 迭代间的写区域重叠; 2. 对于检测区域不重叠的打上标记,使用rebuildable attribute挂载在function上; 3. 获取function的assemble数量,数量>=2的保守视为存在写后写,只考虑assemble数量为1的场景; 4. 对于整体的function,识别assemble所在循环层的循环变量与步长,进行区域重叠检测,不存在循环变量的视为固定区域写,存在重叠;存在循环变量的进行重叠检测,用循环变量i+step与i的offset之差与assemble的tensor shape做比较。 ## 3. 验证场景一览 | # | scene | assemble offset(示意) | 期望 Mark / WAW | |---|-------|-------------------------|-----------------| | 1 | assemble_disjoint | [i*tile, 0] | Mark / 无 WAW | | 2 | assemble_overlap | [i*(tile//2), 0] | 不 Mark / 有 WAW | | 3 | nested_disjoint | [i*tile, j*tile_n](innermost=j 可分) | Mark / 无 WAW | | 4 | nested_overlap | [i*tile, j*(tile_n//2)](innermost=j 半窗重叠) | 不 Mark / 有 WAW | | 5 | fixed_offset | [0, 0](当前变量不在 offset) | 不 Mark / 有 WAW | | 6 | same_idx_diff_step | sibling:左半窗重叠 + 右 step=2 可分 | 同 raw 多 assemble → 不 Mark | | 7 | nested_inner_immediate_offset | 嵌套:[i*tile, 0],innermost=j 不在 offset | 不 Mark / 有 WAW | ## 4. PR限制约束 1. 当前实现逻辑只考虑了最内层循环的重叠判定,在循环嵌套场景下,外层循环的影响没有考虑,存在局限。 2. 当前实现逻辑没有考虑循环内部创建tensor的情况,内部创建的tensor会自动根据迭代次数分配不同的地址区域,所以一定不重叠。 3. 更多的泛化性场景需要验证与补充。 See merge request: cann/pypto!6438 | 2 months ago | |
fix(ir): Fix continue var not correct Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5201 merge substitue into master fix(ir): Fix continue var not correct Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Fix continue var not correct for oi_update in fa test Related Issue: #1185 See merge request: cann/pypto!5201 | 3 months ago | |
feat(pypto-pro): Refactor ssa & control flow Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !6249 merge 9.2.0 into 9.2.0 feat(pypto-pro): Refactor ssa & control flow Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: feat(pypto-pro): Refactor ssa & control flow See merge request: cann/pypto!6249 | 2 months ago | |
feat(IR): Add ir text serialization Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5455 merge normalize-ir-rw into master feat(IR): Add ir text serialization Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Add ir text serialization See merge request: cann/pypto!5455 | 3 months ago | |
fix(pypto-pro): lower loop target and classify tuple Co-authored-by: wangbing110<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !6321 merge 9.2.0 into 9.2.0 fix(pypto-pro): lower loop target and classify tuple Created-by: wangbing110 Commit-by: poorwill;wangbing110 Merged-by: cann-robot Description: fix(pypto-pro): lower loop target and classify tuple See merge request: cann/pypto!6321 | 2 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago | |
feat(pypto_pro): Remove c_type and modify file header Co-authored-by: ChenYongji123<chenyongji6@huawei.com> # message auto-generated for no-merge-commit merge: !5110 merge pr_5054 into master feat(pypto_pro): Remove c_type and modify file header Created-by: ChenYongji123 Commit-by: ChenYongji123 Merged-by: cann-robot Description: Remove c_type and modify file header See merge request: cann/pypto!5110 | 4 months ago | |
fix(ir): Detect type conflict lazily Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5270 merge shape into master fix(ir): Detect type conflict lazily Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5270 | 3 months ago | |
feat(pypto-pro): Support mxfp8/mxfp4 Co-authored-by: fa<yangzf993@163.com> # message auto-generated for no-merge-commit merge: !5439 merge master into master feat(pypto-pro): Support mxfp8/mxfp4 Created-by: fafafafafa Commit-by: fa Merged-by: cann-robot Description: Support mxfp8/mxfp4 See merge request: cann/pypto!5439 | 3 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
feat(pypto_pro): Upload for problem solve Co-authored-by: liuyu<liuyu205@hisilicon.com> # message auto-generated for no-merge-commit merge: !6159 merge 9.2.0 into 9.2.0 feat(pypto_pro): Upload for problem solve Created-by: liuyu205 Commit-by: liuyu Merged-by: cann-robot Description: Upload for b64 support See merge request: cann/pypto!6159 | 2 months ago | |
feat(pypto_pro):unified error codes Co-authored-by: huanyongben<huanyongben1@hisilicon.com> # message auto-generated for no-merge-commit merge: !6508 merge 9.2.0 into 9.2.0 feat(pypto_pro):unified error codes Created-by: huanyongben Commit-by: huanyongben Merged-by: cann-robot Description: pypto统一错误码和日志规范 See merge request: cann/pypto!6508 | 2 months ago | |
feat(ir): Add block ir support Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !3271 merge new_ir into master feat(ir): Add block ir support Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: add block ir See merge request: cann/pypto!3271 | 6 months ago | |
fix(pypto-pro): lower loop target and classify tuple Co-authored-by: wangbing110<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !6321 merge 9.2.0 into 9.2.0 fix(pypto-pro): lower loop target and classify tuple Created-by: wangbing110 Commit-by: poorwill;wangbing110 Merged-by: cann-robot Description: fix(pypto-pro): lower loop target and classify tuple See merge request: cann/pypto!6321 | 2 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago | |
fix(pypto_pro): align runtime divmod with Python semantics Co-authored-by: fa<yangzf993@163.com> # message auto-generated for no-merge-commit merge: !6258 merge 9.2.0 into 9.2.0 fix(pypto_pro): align runtime divmod with Python semantics Created-by: fafafafafa Commit-by: fa Merged-by: cann-robot Description: PR 应该避免没有描述信息,描述信息的最重要的作用是描述修改意图,应该清晰明了。例如:标题中包含了 fix 标签,如果没有描述信息,就需要Review人员猜测PR具体修复了哪些内容,或者怀疑修改的必要性。如果PR和特定的Issue相关,可以单独包含一行 Related Issue: 放到描述信息最后。 下面是一个典型的PR描述信息: The origin issue template brings too many noise, it's not suitable for git message. eg: comments are not removed, labels are redundant as the PR tile already contains the tag. The guide gives a clear suggestion on how to write the PR body. Related Issue: #1234,#5678 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!6258 | 2 months ago | |
feat(ir): Add block ir support Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !3271 merge new_ir into master feat(ir): Add block ir support Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: add block ir See merge request: cann/pypto!3271 | 6 months ago | |
feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !5644 merge pil-ir-normalize into master feat(IR): Fix io text dumper and loader's symbolic scalar and attribute Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: feat(IR): Fix io text dumper and loader's symbolic scalar and attribute See merge request: cann/pypto!5644 | 3 months ago | |
fix(pypto-pro): lower loop target and classify tuple Co-authored-by: wangbing110<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !6321 merge 9.2.0 into 9.2.0 fix(pypto-pro): lower loop target and classify tuple Created-by: wangbing110 Commit-by: poorwill;wangbing110 Merged-by: cann-robot Description: fix(pypto-pro): lower loop target and classify tuple See merge request: cann/pypto!6321 | 2 months ago | |
feat(pypto_pro):unified error codes Co-authored-by: huanyongben<huanyongben1@hisilicon.com> # message auto-generated for no-merge-commit merge: !6508 merge 9.2.0 into 9.2.0 feat(pypto_pro):unified error codes Created-by: huanyongben Commit-by: huanyongben Merged-by: cann-robot Description: pypto统一错误码和日志规范 See merge request: cann/pypto!6508 | 2 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 months ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 6 months ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 6 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 2 months ago |