| Files | Last commit | Last update |
|---|---|---|
event-leak-9.2.0 Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !7854 merge event-leak-9.2.0 into 9.2.0 event-leak-9.2.0 Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/3994 RunPreSync里event的创建原本是进程级只创建一个,全程复用,重构被改成了栈变量每次创建但是不释放。 还原回进程复用,且增加析构时的显示destory。 See merge request: cann/pypto!7854 | 1 day ago | |
refactor(build): Reuse the common compilation options from common cmake. Co-authored-by: Feiteng Zheng<zhengfeiteng1@h-partners.com> # message auto-generated for no-merge-commit merge: !5292 merge 20260728-intf-pub-2 into master refactor(build): Reuse the common compilation options from common cmake. Created-by: zhengfeiteng Commit-by: Feiteng Zheng Merged-by: cann-robot Description: 切换使用 cann/cmake 仓规定的 intf_pub。 - 通过CANN_GLIBCXX_USE_CXX11_ABI属性设置tile_fwk_calculator的_GLIBCXX_USE_CXX11_ABI Related Issue: #2650 See merge request: cann/pypto!5292 | 3 months ago | |
fix(operation): Bound FillPad padding to tile columns Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !6513 merge fix-fillpad-9.2.0 into 9.2.0 fix(operation): Bound FillPad padding to tile columns Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: FillPad 对共享 UB 缓冲区中的列分块处理错误,导致有效数据被清零,并可能越过目标缓冲区边界。 concat 结果的形状为 [16,128],vector tile 配置为 [16,80],因此 FillPad 被拆分为前 80 列和后 48 列两个分块。两个分块保留父缓冲区的物理行步长 128。原 TFillPad 封装直接使用 layout 中的静态宽度 128 构造 PTO Tile。底层 TFILLPAD_EXPAND 会将输入有效列之外的区域补到该静态宽度,而不是限制在当前分块的 80/48 列范围内。 Related Issue: https://gitcode.com/cann/pypto/issues/3387 See merge request: cann/pypto!6513 | 2 months ago | |
fix(simulation): Register ERF pipe type and fallback unknown opcodes Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !6556 merge fix/sim-erf-pipe-type-9.2.0 into 9.2.0 fix(simulation): Register ERF pipe type and fallback unknown opcodes Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: fix(simulation): Register ERF pipe type and fallback unknown opcodes Cherry-pick of #6521 (master) into 9.2.0. Task-level simulation (--run_mode sim) aborts with F16766 INVALID_PIPE_TYPE when executing kernels containing the ERF opcode (e.g. GELU/GeGLU in activation.py). Root cause: SCHED_CORE_PIPE_TYPE lacks the ERF mapping, and TileOp::GetPipeType() hard-asserts on unknown opcodes with no fallback path. Changes: - Register {"ERF", CorePipeType::PIPE_VECTOR_ALU} in SCHED_CORE_PIPE_TYPE - Refactor TileOp::GetPipeType(): unknown opcodes now fall back to PIPE_VECTOR_ALU with a SIMULATION_LOGW warning instead of aborting; this also fixes the pre-existing UB where the LOOP exemption path dereferenced end() when LOOP was absent from the table Related Issues: #3392 See merge request: cann/pypto!6556 | 2 months ago | |
perf(pypto_pro): Reduce JIT host overhead Co-authored-by: fafafafafa<yangzhenfa1@huawei.com> # message auto-generated for no-merge-commit merge: !7707 merge 9.2.0 into 9.2.0 perf(pypto_pro): Reduce JIT host overhead Created-by: fafafafafa Commit-by: fafafafafa Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/4001 修改点: - 缓存命中时仅提取STATIC/ellipsis维度,避免完整签名绑定。 - 同次launch复用Tensor shape,去除重复绑定及sanitizer多余缓存复制。 - enable_exception_dump配置,默认关闭,支持按需开启异常现场采集。 See merge request: cann/pypto!7707 | 1 day ago | |
event-leak-9.2.0 Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !7854 merge event-leak-9.2.0 into 9.2.0 event-leak-9.2.0 Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/3994 RunPreSync里event的创建原本是进程级只创建一个,全程复用,重构被改成了栈变量每次创建但是不释放。 还原回进程复用,且增加析构时的显示destory。 See merge request: cann/pypto!7854 | 1 day ago | |
fix(pass): Fix reshape and assemble logic error Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !7040 merge sf1020 into 9.2.0 fix(pass): Fix reshape and assemble logic error Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 变更摘要 本 PR 修复了 pass 阶段中 reshape 与 assemble 相关逻辑的错误。核心改动集中在 RemoveRedundantAssemble::HanldeForSingleAssemble:原先只要 consumers.size() == 1 中的消费者为 OP_ASSEMBLE 就会删除该节点并折叠,现改为仅针对 COPY_OUT -> ASSEMBLE -> RESHAPE -> OUTCAST 这一特定模式进行折叠,并新增了在多个 COPY_IN 消费者场景下对输入进行重连(rewire)的逻辑,以保留 ReplaceTensor 刷新后的绝对 COPY_IN 属性。同时在 RemoveUnalignedReshape 中补充了对空消费者(无消费者)张量的处理,避免进入 COPY_IN 插桩路径。两处配套单测验证了新逻辑。 主要改动 收窄 RemoveRedundantAssemble 的折叠条件:HanldeForSingleAssemble 新增 reshapeToOutcast 与 rewireCopyIns 判定,仅当输出唯一消费者为 OP_RESHAPE 且节点类型为 NodeType::OUTCAST,同时输入输出 magic 相同、生产者全为 COPY_OUT、消费者仅含自身与 COPY_IN 时才执行折叠,避免误删并行的 ASSEMBLE。 新增 COPY_IN 消费者重连逻辑:在 rewireCopyIns 为真时备份消费者集合,对非自身的 COPY_IN 消费者调用 ReplaceInput(output, input),保留由 ReplaceTensor 刷新后的绝对 COPY_IN 属性;同时将 MoveTokenDependencyBeforeRemoveOp、SetAsDeleted、HandleCopyOutToAssemble 等调用对象由原消费者 *cons 统一改为当前 op。 空消费者张量的处理:RemoveUnalignedReshape::HandleNoCopyInConsumer 在完成 UB 检查后,若 output->GetConsumers() 为空则直接 return,不再走插入 COPY_IN 的路径;checkNonCopyInConsumerExists 也将 hasNoCopyInConsumer 初始化为 consumers.empty()。 新增单元测试:test_pre_graph.cpp 增加 KeepParallelAssemblesWithSiblingCopyIn,验证在存在并行 ASSEMBLE 与 COPY_IN 时保留结果并核对 COPY_IN 的绝对偏移属性;test_remove_unaligned_reshape_op.cpp 增加 TestTerminalDynamicReshapeSkipsPairedConversion,验证终端动态 reshape 场景下跳过配对转换。 See merge request: cann/pypto!7040 | 1 month ago | |
feat(pypto_pro): replace internal 'a5' with NPUArch enum Co-authored-by: m0_55221889<chenliwen12@huawei.com> # message auto-generated for no-merge-commit merge: !6781 merge 9.2.0 into 9.2.0 feat(pypto_pro): replace internal 'a5' with NPUArch enum Created-by: m0_55221889 Commit-by: m0_55221889 Merged-by: cann-robot Description: [PR #6705](https://gitcode.com/cann/pypto/pull/6705/discuss) 的商用分支 See merge request: cann/pypto!6781 | 1 month ago | |
fix(dfx): keep log time initialization dependency out of error header Co-authored-by: W4termy<wangmingyang21@huawei.com> # message auto-generated for no-merge-commit merge: !6560 merge fix/log_localtime into 9.2.0 fix(dfx): keep log time initialization dependency out of error header Created-by: W4termy Commit-by: W4termy Merged-by: cann-robot Description: 性能用例批跑时,若线程在 libc 时间转换过程中持有 tzset_lock,此时被信号打断,TerminateHandler 回调打印日志会再次通过 std::localtime() 申请同一把锁,导致线程自我死锁。 修改内容 - 新增私有 log_time.h/.cpp,迁移 dlog 的整数日历换算算法。 - 在启动阶段初始化时区和夏令时配置,并在注册异常处理回调前显式确保初始化完成。 - 日志时间和文件名时间共用换算路径,运行期间不再调用 localtime/localtime_r/tzset。 - 保持原有日志格式、三位毫秒精度及文件名格式不变。 See merge request: cann/pypto!6560 | 2 months ago | |
refactor(operator): Remove tile_fwk_operator library and associated tests. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5704 merge delete_test into master refactor(operator): Remove tile_fwk_operator library and associated tests. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 整改库上代码,删除 framework/src/operator python/tests/st/operator/glm python/tests/st/operator/test_page_attention.py 以及相关涉及文件 See merge request: cann/pypto!5704 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 1 day ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 1 day ago | ||
| 1 day ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 2 months ago | ||
| 3 months ago |