| Files | Last commit | Last update |
|---|---|---|
Fix bug of const folding with kernel local const Co-authored-by: gaoxiang<gaoxiang26@huawei.com> # message auto-generated for no-merge-commit merge: !5373 merge master into master Fix bug of const folding with kernel local const Created-by: gaoxiang618 Commit-by: gaoxiang 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!5373 | 3 months ago | |
feat(pypto_pro): Remove pl.function and pl.program Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5628 merge function into master feat(pypto_pro): Remove pl.function and pl.program Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Remove pl.function and pl.program See merge request: cann/pypto!5628 | 3 months ago | |
feat(pypto-pro): Support array fields in struct and struct_array Co-authored-by: h9718w<wangchaoyuan10@huawei.com> # message auto-generated for no-merge-commit merge: !5344 merge feat-struct-enhance into master feat(pypto-pro): Support array fields in struct and struct_array Created-by: h9718w Commit-by: h9718w Merged-by: cann-robot Description: 此 PR 为 pl.struct 和 pl.struct_array 新增数组字段(list-valued fields)支持,允许在结构体中声明如 innerS1Realsize=[0,0,0,0] 的列表字段,并提供 s.arr[idx] 和 arr[i].arr[j] 的元素级读写能力。核心改动涉及 C++ IR 算子扩展、C++ 代码生成适配以及 Python 解析器的赋值与表达式路径增强。 主要改动 struct.set 算子扩展为支持三参数形式:在 struct_ops.cpp 中,struct.set 的 f_deduce_type 校验逻辑从仅接受 2 个参数扩展为同时接受 2 或 3 个参数(base, index, value),用于数组字段元素的写入操作。 struct.create 代码生成支持数组字段初始化:在 backend_cce_block_out_ops.cpp 中,当 struct.create 的字段参数为 MakeTuple 类型时,C++ 代码生成器会输出花括号初始化列表(如 .arr={0, 0, 0, 0}),而非原来的逐字段 scalar 赋值。 struct.set 代码生成支持数组元素写入:在 backend_cce_block_out_ops.cpp 中,三参数形式的 struct.set 会生成 base.field[index] = value; 形式的 C++ 语句,而二参数形式保持原有的 base.field = value; 行为。 Python 解析器赋值路径新增数组元素写入处理:在 _assignment_parser.py 中,_parse_subscript_assignment 方法新增对 base.arr_field[idx] = val 模式的处理,通过 struct.set 三参数形式生成 IR。 Python 解析器表达式路径支持链式下标属性访问:在 _expression_parser.py 中,属性访问逻辑新增对非 Name 基表达式(如 arr[0].field)的支持,允许在下标结果上继续访问结构体字段。 --- ## 更新内容(增量提交) ### 1. make_tuple 链式方法访问支持 在 _expression_parser.py 的 _route_ir_node_method 中新增非 ast.Name 基表达式的 tile_group 方法链支持(+12 行),使 tensor_info.acc_db.next() 形式的链式调用正常降低为 _lower_group_accessor。新增 _is_pl_prefixed 守卫排除 pl.xxx() 调用。 支持场景: - tensor_info.acc_db.next() / .current() / .previous() — make_tuple 包装 tile_group 后的链式方法访问 - 多槽 tile_group(含 MemorySpace.Acc、valid_shape、compact 等高级 TileType 参数) - 单槽 tile_group(无 cursor,静态 const mutex id) ### 2. 新增测试用例 - Python UT 24 个(test_make_tuple_chain.py):常量折叠 / 运行时降级 / 多层级链(2/3/4 层)/ 元素类型交互 / tile_group 链式方法(含 Acc 多槽)/ 错误处理与边界(6 类异常场景) - Python ST 12 个(test_make_tuple_chain.py):2/3/4 层链上板 / 算术 / struct_array 元素 / tile_group next/current/previous / 双缓冲循环 / 环形缓冲 / for 累加 / if-else 分支 See merge request: cann/pypto!5344 | 3 months ago | |
feat(pypto_pro): Remove pl.function and pl.program Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5628 merge function into master feat(pypto_pro): Remove pl.function and pl.program Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Remove pl.function and pl.program See merge request: cann/pypto!5628 | 3 months ago | |
feat(pypto): unify manual sync ID handling and extend validation coverage Co-authored-by: gcw_bTlukKC6<xuxinlei1@huawei.com> # message auto-generated for no-merge-commit merge: !5299 merge my_new_branch into master feat(pypto): unify manual sync ID handling and extend validation coverage Created-by: gcw_bTlukKC6 Commit-by: gcw_bTlukKC6 Merged-by: cann-robot Description: - 统一 sync_src/sync_dst 和 mutex_lock/mutex_unlock 的静态、动态 ID 表示,全部使用 _dyn IR,并将静态 ID 转换为 ConstInt operand。 - 删除旧的静态同步 IR 和后端注册,合并静态、动态 CCE codegen,同时移除 mutex mode 参数并固定底层模式值为 0。 - 在 Parser 和 C++ IR 层补充 pipe 枚举、ID 数据类型及范围、mutex 候选 ID、owner 信息和 sync_all workspace 组合校验。 - 保留 Python bool 的真实类型,避免 event_id/mutex_id 被转换为整数;补充 mutex_ids 和 make_tile_group 中 bool 输入的拦截。 - 统一后端 mutex 候选 ID 提取逻辑,支持显式 mutex_ids、ConstInt operand 和 max_mutex_id 回退,并适配 V-pipe mutex 分析。 - 完善手动核内同步的 UT、Codegen UT 和动态 Shape ST,覆盖静态/动态 ID、控制流、反向同步、大 Shape、手动与自动同步共存等场景。 - 完善同步接口文档和可执行调用示例,明确 sync_all 的 HARD/SOFT、AIV_ONLY/AIC_ONLY/MIX 用法及多核参与约束。 See merge request: cann/pypto!5299 | 3 months ago | |
feat(pypto_pro): Remove pl.function and pl.program Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5628 merge function into master feat(pypto_pro): Remove pl.function and pl.program Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Remove pl.function and pl.program See merge request: cann/pypto!5628 | 3 months ago | |
feat(pypto_pro): Remove pl.function and pl.program Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5628 merge function into master feat(pypto_pro): Remove pl.function and pl.program Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Remove pl.function and pl.program See merge request: cann/pypto!5628 | 3 months ago | |
Fix bug of const folding with kernel local const Co-authored-by: gaoxiang<gaoxiang26@huawei.com> # message auto-generated for no-merge-commit merge: !5373 merge master into master Fix bug of const folding with kernel local const Created-by: gaoxiang618 Commit-by: gaoxiang 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!5373 | 3 months ago | |
fix tile pad Co-authored-by: gaoxiang<gaoxiang26@huawei.com> # message auto-generated for no-merge-commit merge: !5570 merge master into master fix tile pad Created-by: gaoxiang618 Commit-by: gaoxiang Merged-by: cann-robot Description: 1. 修复三元表达式报错,提升报错准确性 2. 支持对于同时存在is_transpose=True和False的场景,支持TensorDef对同一个Var存在两种变体,并定义两个GlobalTensor 3. 合并mxLayout和普通layout场景,统一通过defs_来记录同一个tensor的不同变种,并在kernel.cpp的最开始声明。 See merge request: cann/pypto!5570 | 3 months ago | |
Fix bug of type converter Co-authored-by: gaoxiang<gaoxiang26@huawei.com> # message auto-generated for no-merge-commit merge: !5655 merge master into master Fix bug of type converter Created-by: gaoxiang618 Commit-by: gaoxiang Merged-by: cann-robot Description: 1. 修复type converter中关于column=1场景下的bug 2. Fp4中的stride乘2的动作自动计算,不用set_stride,并删除set_stride接口(该接口存在bug,在一个tensor多个layout变种的情况下,只设置了一个变种)。 See merge request: cann/pypto!5655 | 3 months ago | |
feat(pypto_pro): Support tile_group subscript index Co-authored-by: cfy111<chenfengyu3@huawei.com> # message auto-generated for no-merge-commit merge: !5339 merge new_multi_id into master feat(pypto_pro): Support tile_group subscript index Created-by: cfy111 Commit-by: cfy111 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!5339 | 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 | |
feat(pypto-pro): multi return Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !5379 merge master into master feat(pypto-pro): multi return Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: feat(pypto-pro): multi return See merge request: cann/pypto!5379 | 3 months ago | |
feat(pypto_pro): Support GM NZ Co-authored-by: fa<yangzf993@163.com> # message auto-generated for no-merge-commit merge: !5660 merge master into master feat(pypto_pro): Support GM NZ 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!5660 | 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 | |
feat(pypto_pro): Remove pl.function and pl.program Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5628 merge function into master feat(pypto_pro): Remove pl.function and pl.program Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Remove pl.function and pl.program See merge request: cann/pypto!5628 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 4 months ago | ||
| 3 months ago |