| Files | Last commit | Last update |
|---|---|---|
fix(codegen): Avoid ASC CACHE_LINE_SIZE and g_tilingKey link conflicts Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !6246 merge bugfix into master fix(codegen): Avoid ASC CACHE_LINE_SIZE and g_tilingKey link conflicts Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: **根因:** 使能 ASC print/dump后,检测到 $ASCEND_HOME_PATH/asc/include 就默认注入 -D__ENABLE_ASC_PRINTF__,entry/leaf/mid 都会拉 ASC 调试头。新 ASC 头依赖变了,旧包碰不到的符号被编进 PyPTO 多 TU 链接路径,于是炸了两层:CCE上报 CACHE_LINE_SIZE 宏与 ASC const 冲突(F70002);ld -r 时报 g_tilingKey 强符号重复(F70003)。**本质是 CANN ASC 版本问题** **修复:** 1. CACHE_LINE_SIZE 改为 AicorePrintConst::CACHE_LINE_SIZE,避免与 ASC 常量冲突。 2. 用 -DTILING_KEY_VAR=0(头文件内再兜底)抑制 g_tilingKey 多 TU 重复定义。 3. PYPTO_ENABLE_AICORE_PRINT=true 才注入 __ENABLE_ASC_PRINTF__,默认关闭,不再拉 ASC dump/printf 头;打开后 1/2 仍作兼容。 See merge request: cann/pypto!6246 | 2 months ago | |
fix(machine): DRCORE balanced scheduling Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !6627 merge br_ctu into master fix(machine): DRCORE balanced scheduling Created-by: wan_jianfen Commit-by: wan_jianfen 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!6627 | 1 month ago | |
refactor(machine): Drop execute-path RUNTIME_SlotMarkNeedAlloc covered by path marking Co-authored-by: songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !6754 merge clean into master refactor(machine): Drop execute-path RUNTIME_SlotMarkNeedAlloc covered by path marking Created-by: songyangyang18 Commit-by: songyangyang18 Merged-by: cann-robot Description: ## 问题背景: Execute 图上的 NeedAlloc 标记曾用于修复非 assemble 算子(如 pypto.full), 产出的 assemble 目标漏发 RUNTIME_SlotMarkNeedAlloc 的问题。 目前,IR builder 会把所有非 assemble 生产者记录到 tensorConstructFunc_,PATH 级标记constructAssembleSlotList已经覆盖这些 slot,Execute 图上的标记因此变得冗余。 ## 删除的安全性: - 每个 PATH 只有一个 root,PATH 级标记在 PATH 入口发出,早于该 root 的 RUNTIME_RootAlloc。Execute 图标记的非参数 slot 都已被 PATH 标记过,且该标志是幂等的。 - Execute 图额外标记的只有 kernel 参数 slot。运行时 ResolveOutcastAddress 对这些 slot走外部 IO 分支,从不读取 NeedAlloc 标志,因此这些标记本身不起作用。 - 作用:参数 slot 不再计入 constructAssembleNeedAllocRuntimeSlots,totalAssembleOutcastSlot 不再为它们多预留 InnerTemporal slot。 ## 问题样例: 下面的算子,out会被错误纳入assemble outcast内存分配,去掉excute路径,恢复正常。 @pypto.frontend.jit(**_JIT) def _k_out_compute_then_assemble(src: _T, out: _T): pypto.set_vec_tile_shapes(TILE, TILE) out[:] = pypto.mul(src.view([BS, HIDDEN], [0, 0]), 2.0) for i in pypto.loop(N_ROW, name="NA_OCA", idx_name="i"): pypto.set_vec_tile_shapes(TILE, TILE) v = src.view([TILE, HIDDEN], [i * TILE, 0]) pypto.assemble(pypto.mul(v, 4.0), [i * TILE, 0], out) See merge request: cann/pypto!6754 | 1 month ago | |
refactor(machine): Remove unused DevicePerf::RunPrepare Co-authored-by: Jie Yin<yinjie27@huawei.com> # message auto-generated for no-merge-commit merge: !6924 merge pgo-framework into master refactor(machine): Remove unused DevicePerf::RunPrepare Created-by: yinjie27_ Commit-by: Jie Yin Merged-by: cann-robot Description: DevicePerf::RunPrepare has no production caller: its only call site was removed together with the legacy DeviceRunner launch path in 34770d5bd ("Unify C++ launch path to use KernelBinary and LaunchKernel"). The per-launch refresh of the perf data pointers is already handled by DeviceLauncher::SetDevPerfAddr -> DevicePerf::SetDebugEnable, which runs on every launch (device_launcher.cpp), so RunPrepare is dead code. Changes: - Remove the unused DevicePerf::RunPrepare definition and declaration - Remove the DevicePerfTest.RunPrepare_DebugMode unit test - Remove the include that became unused after the deletion Verification: - device_perf.cpp syntax-checked with the project's own compile flags (build/compile_commands.json), UT file checked with the same flags + gtest - pre-commit checks passed on commit See merge request: cann/pypto!6924 | 1 month ago | |
fix(machine): Add aicore-resolve macro Co-authored-by: huanglu<huanglu22@hisilicon.com> # message auto-generated for no-merge-commit merge: !5549 merge master into master fix(machine): Add aicore-resolve macro Created-by: lululu40888 Commit-by: huanglu Merged-by: cann-robot Description: fix(machine): Add aicore-resolve macro See merge request: cann/pypto!5549 | 3 months ago | |
fix(machine): DRCORE balanced scheduling Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !6627 merge br_ctu into master fix(machine): DRCORE balanced scheduling Created-by: wan_jianfen Commit-by: wan_jianfen 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!6627 | 1 month 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 |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 3 months ago | ||
| 1 month ago | ||
| 3 months ago |