文件最后提交记录最后更新时间
[Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Co-authored-by: zhuceHW<zhuce@huawei.com> # message auto-generated for no-merge-commit merge: !36534 merge v2.7.1-dev into v2.7.1 [Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Created-by: zhucehw Commit-by: zhuceHW Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 https://gitcode.com/Ascend/pytorch/issues/2099?ref=&did=4045338#tid-4045338 # 【修改方案】 1. refactor AOTI codes 2. add aoti shim update code for torchnpugen, generate header file of npu fallback kernel 3. add c shim for AOTI and cpp_wrapper # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 ci pass # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!365348 天前
[Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Co-authored-by: zhuceHW<zhuce@huawei.com> # message auto-generated for no-merge-commit merge: !36534 merge v2.7.1-dev into v2.7.1 [Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Created-by: zhucehw Commit-by: zhuceHW Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 https://gitcode.com/Ascend/pytorch/issues/2099?ref=&did=4045338#tid-4045338 # 【修改方案】 1. refactor AOTI codes 2. add aoti shim update code for torchnpugen, generate header file of npu fallback kernel 3. add c shim for AOTI and cpp_wrapper # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 ci pass # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!365348 天前
[Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Co-authored-by: zhuceHW<zhuce@huawei.com> # message auto-generated for no-merge-commit merge: !36534 merge v2.7.1-dev into v2.7.1 [Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Created-by: zhucehw Commit-by: zhuceHW Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 https://gitcode.com/Ascend/pytorch/issues/2099?ref=&did=4045338#tid-4045338 # 【修改方案】 1. refactor AOTI codes 2. add aoti shim update code for torchnpugen, generate header file of npu fallback kernel 3. add c shim for AOTI and cpp_wrapper # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 ci pass # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!365348 天前
[Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Co-authored-by: zhuceHW<zhuce@huawei.com> # message auto-generated for no-merge-commit merge: !36534 merge v2.7.1-dev into v2.7.1 [Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Created-by: zhucehw Commit-by: zhuceHW Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 https://gitcode.com/Ascend/pytorch/issues/2099?ref=&did=4045338#tid-4045338 # 【修改方案】 1. refactor AOTI codes 2. add aoti shim update code for torchnpugen, generate header file of npu fallback kernel 3. add c shim for AOTI and cpp_wrapper # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 ci pass # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!365348 天前
fix: update AOTI C shim for _to_sparse Co-authored-by: hz893<zhanghao491@huawei.com> # message auto-generated for no-merge-commit merge: !37310 merge fix_to_sparse_aoti_v2.7.1 into v2.7.1 fix: update AOTI C shim for _to_sparse Created-by: hz893 Commit-by: hz893 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [x] 问题单 https://gitcode.com/Ascend/pytorch/issues/2182 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 1. 最新 open/v2.7.1 已包含 _to_sparse 的 NPU supported 注册和实现。 2. 同步更新 AOTInductor NPU C shim header,为 aten::_to_sparse 增加 aoti_torch_npu__to_sparse 声明,避免 backend stubs codegen 校验时 header diff 不一致。 3. 新增声明位于 _thnn_fused_lstm_cell 之后、_unsafe_index_Tensor 之前,保持生成顺序一致。 # 【资料变更】 不涉及。 # 【接口变更】 不涉及。 # 【功能验证】 - 已确认最新 open/v2.7.1 存在 torchnpugen/gen_npu_c_shim.py,gen_backend_stubs.py 会调用 gen_npu_c_shim_files(...)。 - 已检查 c_shim_npu.h 中新增 aoti_torch_npu__to_sparse 的位置符合生成顺序。 - 本次仅同步生成 header 声明,未重新编包验证。 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [ ] 代码注释完备,正确记录错误日志 - [ ] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!373102 天前
[Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Co-authored-by: zhuceHW<zhuce@huawei.com> # message auto-generated for no-merge-commit merge: !36534 merge v2.7.1-dev into v2.7.1 [Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Created-by: zhucehw Commit-by: zhuceHW Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 https://gitcode.com/Ascend/pytorch/issues/2099?ref=&did=4045338#tid-4045338 # 【修改方案】 1. refactor AOTI codes 2. add aoti shim update code for torchnpugen, generate header file of npu fallback kernel 3. add c shim for AOTI and cpp_wrapper # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 ci pass # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!365348 天前
[fix][v2.7.1] Dvm support bitwise bool fusion and softmax decompose Co-authored-by: ginfung<yujianfeng5@huawei.com> # message auto-generated for no-merge-commit merge: !37169 merge v2.7.1_bitwise into v2.7.1 [fix][v2.7.1] Dvm support bitwise bool fusion and softmax decompose Created-by: ginfung Commit-by: ginfung Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [x] issue/工单 - [ ] 重构优化 - [ ] 资料更新 关联issue/工单:[[Feature]26.1.0版本图模式功能增强](https://gitcode.com/Ascend/pytorch/issues/1978) # 【修改方案】 > 请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列\ > 如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容) 本 PR 补充 DVM 对 bool 类型 bitwise 算子的融合支持,并修复 DVM codegen 对算子 rule 的检查缺失问题,避免不支持的 dtype/op 被错误下发到 DVM。同时允许 _softmax 走 decomposition,以扩大 mask + softmax 相关图的 DVM 融合机会。 ### 主要修改 - 在 DVM GENERATE_LIST 中加入 aten.bitwise_andaten.bitwise_oraten.bitwise_not - 在 op_emitter 中为 bool 类型注册 bitwise and/or/not,对非 bool bitwise 保持 fallback - DVM codegen 阶段增加 DVM_OP_REGISTRY rule 检查,rule 返回 false 时不生成 DVM kernel - 去掉 aten._softmax 的 decomposition exclude,使 softmax 可拆解后参与融合 - DVM kernel 启动前将 CPU tensor 输入拷贝到 NPU,支持静态和动态 DVM kernel 的 host tensor 输入场景 - 补充 bitwise bool codegen 和 int bitwise fallback 用例 # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” 不涉及 # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” 不涉及 # 【功能验证】 > 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\ > 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图 - 新增 DVM MLIR fusion 测试,覆盖: - bool bitwise op 正常生成 DVM logical kernel; - int bitwise_not 不误生成 k.logical_not,按规则 fallback。 新增测试文件覆盖本次改动: python test/_inductor/test_dvm_mlir_fusion.py -k bitwise # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [ ] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!3716911 小时前
[v2.7.1] update dvm submodule and profiling headers Co-authored-by: huangchengnuo<huangchengnuo1@huawei.com> # message auto-generated for no-merge-commit merge: !35482 merge update-dvm-profapi-v271 into v2.7.1 [v2.7.1] update dvm submodule and profiling headers Created-by: SorryNaCN Commit-by: huangchengnuo Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > DVM reshape bug 修复;CANN 9.1 profiling 头文件路径/注册兼容问题修复。 - [ ] 需求 - [x] 问题单 - [ ] issue/工单 - [x] 重构优化 - [ ] 资料更新 # 【修改方案】 1. 更新 third_party/dvm/dvm 子仓到 r2.9 最新提交,带入 DVM reshape 场景相关 bug 修复。 2. 带入 DVM 对 CANN 9.1 的 profiling 兼容修复,适配新的 profiling/prof_api.h 头文件路径及注册逻辑。 3. 在 third_party/acl/inc/profiling 下新增必要的 ACL profiling 头文件声明,仅保留当前 DVM/MLIR profiling 编译需要的 API、类型和宏定义。 4. 删除旧 third_party/acl/inc/experiment/msprof/toolchain 头文件,避免继续依赖 experiment 路径。 5. 将 MLIR launcher 中 msprof include 切换到 third_party/acl/inc/profiling 路径。 # 【资料变更】 不涉及。 # 【接口变更】 不涉及客户面可见接口变更。仅涉及仓内第三方 ACL profiling 头文件路径适配,满足 DVM 子仓使用 #include "profiling/prof_api.h" 的编译需求。 # 【功能验证】 1. 已确认仓内无旧 experiment/msprof/toolchain 引用残留。 2. 已通过最小 C++ include 编译检查,覆盖当前使用到的 Msprof API/类型声明。 3. git diff --check 通过。 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志(不涉及) - [x] 代码实现进行了返回值、空指针等校验(不涉及) - [ ] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!3548219 天前
[Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Co-authored-by: zhuceHW<zhuce@huawei.com> # message auto-generated for no-merge-commit merge: !36534 merge v2.7.1-dev into v2.7.1 [Inductor] AOTI refactor, cpp_wrapper&aoti support c shim Created-by: zhucehw Commit-by: zhuceHW Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 https://gitcode.com/Ascend/pytorch/issues/2099?ref=&did=4045338#tid-4045338 # 【修改方案】 1. refactor AOTI codes 2. add aoti shim update code for torchnpugen, generate header file of npu fallback kernel 3. add c shim for AOTI and cpp_wrapper # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 ci pass # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!365348 天前