| 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 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): 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): Support pypto_pro SIMT Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5341 merge master into master feat(pypto_pro): Support pypto_pro SIMT Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Support pypto_pro SIMT See merge request: cann/pypto!5341 | 3 months ago | |
Add check in make_tile Co-authored-by: gaoxiang<gaoxiang26@huawei.com> # message auto-generated for no-merge-commit merge: !5446 merge master into master Add check in make_tile Created-by: gaoxiang618 Commit-by: gaoxiang Merged-by: cann-robot Description: 1. make_tile中addr必选,且增加校验,size改为可选,size如果不填,默认使用shape来计算。 2. 删除resolve_single_kwarg中关于嵌套tuple的处理:if isinstance(python_value, tuple) and any(isinstance(e, tuple) for e in python_value): 当前没有代码用到这种场景 3. 前端接口简化,目前只暴露require_const_value来处理经过parse_expression处理过的IR,用于获取常量。 4. make_tile接口在_api.py中增加,且只支持TileType作为入参 See merge request: cann/pypto!5446 | 3 months ago | |
feat(pypto_pro): Support pypto_pro SIMT Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5341 merge master into master feat(pypto_pro): Support pypto_pro SIMT Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Support pypto_pro SIMT See merge request: cann/pypto!5341 | 3 months ago | |
feat(pypto_pro): Support pypto_pro SIMT Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5341 merge master into master feat(pypto_pro): Support pypto_pro SIMT Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Support pypto_pro SIMT See merge request: cann/pypto!5341 | 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 | |
feat(pypto_pro): Support pypto_pro SIMT Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5341 merge master into master feat(pypto_pro): Support pypto_pro SIMT Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Support pypto_pro SIMT See merge request: cann/pypto!5341 | 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 | |
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 pypto_pro SIMT Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5341 merge master into master feat(pypto_pro): Support pypto_pro SIMT Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Support pypto_pro SIMT See merge request: cann/pypto!5341 | 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): Support pypto_pro SIMT Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !5341 merge master into master feat(pypto_pro): Support pypto_pro SIMT Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: feat(pypto_pro): Support pypto_pro SIMT See merge request: cann/pypto!5341 | 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 |
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 4 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 | ||
| 4 months ago |