| Files | Last commit | Last update |
|---|---|---|
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
refactor(all): Remove trailing whitespace Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !2188 merge pre-commit into master refactor(all): Remove trailing whitespace Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Introduce pre-commit tools, and remove trailing white space with default plugin Related Issue: #1017 See merge request: cann/pypto!2188 | 7 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5008 merge perf/device-cf-hotpath-bundle into master perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Bundle device-side control-flow hot-path optimizations that share stitch/slot/ctrl surfaces. Commits: - perf(machine): Use cellMatchTagSeq and AICORE_TASK_INIT pool reset - perf(machine): Tighten device stitch, task build, and ctrl hot path Changes: - Monotonic cellMatchTagSeq instead of embedding taskId in tags - Word-wise AICORE_TASK_INIT pool reset / overflow clear - Device stitch / task / ctrl hot-path tightening See merge request: cann/pypto!5008 | 4 months ago | |
feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5007 merge perf/aot-cf-code-pool into master feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Replace single-slot AOT CF binary caching with a multi-slot LRU pool, plus coding micro-optimizations that share encode_program surfaces (RuntimeVerify moved out of header, workspace/start-args tidy). Commits: - feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool - refactor(machine): Apply coding and style micro-optimizations Changes: - AOT_CODE_POOL multi-slot LRU - Encode hashKey assert for empty-slot sentinel - ST test_aot_code_pool - RuntimeVerify / workspace micro cleanups Related Issues: N/A See merge request: cann/pypto!5007 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5008 merge perf/device-cf-hotpath-bundle into master perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Bundle device-side control-flow hot-path optimizations that share stitch/slot/ctrl surfaces. Commits: - perf(machine): Use cellMatchTagSeq and AICORE_TASK_INIT pool reset - perf(machine): Tighten device stitch, task build, and ctrl hot path Changes: - Monotonic cellMatchTagSeq instead of embedding taskId in tags - Word-wise AICORE_TASK_INIT pool reset / overflow clear - Device stitch / task / ctrl hot-path tightening See merge request: cann/pypto!5008 | 4 months ago | |
fix(machine): Header files splitting Co-authored-by: W4termy<wangmingyang21@huawei.com> # message auto-generated for no-merge-commit merge: !4375 merge split into master fix(machine): Header files splitting Created-by: W4termy Commit-by: W4termy Merged-by: cann-robot Description: 头文件拆分 See merge request: cann/pypto!4375 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5007 merge perf/aot-cf-code-pool into master feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Replace single-slot AOT CF binary caching with a multi-slot LRU pool, plus coding micro-optimizations that share encode_program surfaces (RuntimeVerify moved out of header, workspace/start-args tidy). Commits: - feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool - refactor(machine): Apply coding and style micro-optimizations Changes: - AOT_CODE_POOL multi-slot LRU - Encode hashKey assert for empty-slot sentinel - ST test_aot_code_pool - RuntimeVerify / workspace micro cleanups Related Issues: N/A See merge request: cann/pypto!5007 | 4 months ago | |
perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5008 merge perf/device-cf-hotpath-bundle into master perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Bundle device-side control-flow hot-path optimizations that share stitch/slot/ctrl surfaces. Commits: - perf(machine): Use cellMatchTagSeq and AICORE_TASK_INIT pool reset - perf(machine): Tighten device stitch, task build, and ctrl hot path Changes: - Monotonic cellMatchTagSeq instead of embedding taskId in tags - Word-wise AICORE_TASK_INIT pool reset / overflow clear - Device stitch / task / ctrl hot-path tightening See merge request: cann/pypto!5008 | 4 months ago | |
perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5008 merge perf/device-cf-hotpath-bundle into master perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Bundle device-side control-flow hot-path optimizations that share stitch/slot/ctrl surfaces. Commits: - perf(machine): Use cellMatchTagSeq and AICORE_TASK_INIT pool reset - perf(machine): Tighten device stitch, task build, and ctrl hot path Changes: - Monotonic cellMatchTagSeq instead of embedding taskId in tags - Word-wise AICORE_TASK_INIT pool reset / overflow clear - Device stitch / task / ctrl hot-path tightening See merge request: cann/pypto!5008 | 4 months ago | |
perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5008 merge perf/device-cf-hotpath-bundle into master perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Bundle device-side control-flow hot-path optimizations that share stitch/slot/ctrl surfaces. Commits: - perf(machine): Use cellMatchTagSeq and AICORE_TASK_INIT pool reset - perf(machine): Tighten device stitch, task build, and ctrl hot path Changes: - Monotonic cellMatchTagSeq instead of embedding taskId in tags - Word-wise AICORE_TASK_INIT pool reset / overflow clear - Device stitch / task / ctrl hot-path tightening See merge request: cann/pypto!5008 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5007 merge perf/aot-cf-code-pool into master feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Replace single-slot AOT CF binary caching with a multi-slot LRU pool, plus coding micro-optimizations that share encode_program surfaces (RuntimeVerify moved out of header, workspace/start-args tidy). Commits: - feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool - refactor(machine): Apply coding and style micro-optimizations Changes: - AOT_CODE_POOL multi-slot LRU - Encode hashKey assert for empty-slot sentinel - ST test_aot_code_pool - RuntimeVerify / workspace micro cleanups Related Issues: N/A See merge request: cann/pypto!5007 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5007 merge perf/aot-cf-code-pool into master feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Replace single-slot AOT CF binary caching with a multi-slot LRU pool, plus coding micro-optimizations that share encode_program surfaces (RuntimeVerify moved out of header, workspace/start-args tidy). Commits: - feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool - refactor(machine): Apply coding and style micro-optimizations Changes: - AOT_CODE_POOL multi-slot LRU - Encode hashKey assert for empty-slot sentinel - ST test_aot_code_pool - RuntimeVerify / workspace micro cleanups Related Issues: N/A See merge request: cann/pypto!5007 | 4 months ago | |
perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5008 merge perf/device-cf-hotpath-bundle into master perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Bundle device-side control-flow hot-path optimizations that share stitch/slot/ctrl surfaces. Commits: - perf(machine): Use cellMatchTagSeq and AICORE_TASK_INIT pool reset - perf(machine): Tighten device stitch, task build, and ctrl hot path Changes: - Monotonic cellMatchTagSeq instead of embedding taskId in tags - Word-wise AICORE_TASK_INIT pool reset / overflow clear - Device stitch / task / ctrl hot-path tightening See merge request: cann/pypto!5008 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5007 merge perf/aot-cf-code-pool into master feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool Replace single-slot AOT CF binary caching with a multi-slot LRU pool, plus coding micro-optimizations that share encode_program surfaces (RuntimeVerify moved out of header, workspace/start-args tidy). Commits: - feat(machine): Cache AOT control-flow binaries in multi-slot LRU pool - refactor(machine): Apply coding and style micro-optimizations Changes: - AOT_CODE_POOL multi-slot LRU - Encode hashKey assert for empty-slot sentinel - ST test_aot_code_pool - RuntimeVerify / workspace micro cleanups Related Issues: N/A See merge request: cann/pypto!5007 | 4 months ago | |
perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5008 merge perf/device-cf-hotpath-bundle into master perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Bundle device-side control-flow hot-path optimizations that share stitch/slot/ctrl surfaces. Commits: - perf(machine): Use cellMatchTagSeq and AICORE_TASK_INIT pool reset - perf(machine): Tighten device stitch, task build, and ctrl hot path Changes: - Monotonic cellMatchTagSeq instead of embedding taskId in tags - Word-wise AICORE_TASK_INIT pool reset / overflow clear - Device stitch / task / ctrl hot-path tightening See merge request: cann/pypto!5008 | 4 months ago | |
perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5008 merge perf/device-cf-hotpath-bundle into master perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): Device CF hot path, tagSeq, and partial-stitch flags Bundle device-side control-flow hot-path optimizations that share stitch/slot/ctrl surfaces. Commits: - perf(machine): Use cellMatchTagSeq and AICORE_TASK_INIT pool reset - perf(machine): Tighten device stitch, task build, and ctrl hot path Changes: - Monotonic cellMatchTagSeq instead of embedding taskId in tags - Word-wise AICORE_TASK_INIT pool reset / overflow clear - Device stitch / task / ctrl hot-path tightening See merge request: cann/pypto!5008 | 4 months ago | |
perf(machine): Lazy-init ItemPool free-list in chunks Co-authored-by: LordOfMysteries<duhongxiang@huawei.com> # message auto-generated for no-merge-commit merge: !5004 merge perf/item-pool-lazy-init into master perf(machine): Lazy-init ItemPool free-list in chunks Created-by: LordOfMysteries Commit-by: LordOfMysteries Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2597 perf(machine): Bump-allocate virgin ItemPool slots without freelist Defer ItemPool slot activation until first use. Virgin slots are taken by bumping initReadyCount (no freelist link/pop). Freelist is only used for slots returned by Destroy. Changes: - Remove chunked LinkFreeListChunk / EnsureFreeSlotAvailable expansion - Create: freelist hit for recycled slots, else bump high-water mark - Rename count_ / ItemPoolMeta.count to size_ - UT covers bump + recycle reuse Related Issues: N/A See merge request: cann/pypto!5004 | 4 months ago | |
fix(machine): Fix dynamic partial-update cell match lifecycle Co-authored-by: Songyangyang18<songyangyang18@huawei.com> # message auto-generated for no-merge-commit merge: !2723 merge lp4 into master fix(machine): Fix dynamic partial-update cell match lifecycle Created-by: songyangyang18 Commit-by: Songyangyang18 Merged-by: cann-robot Description: # 一、需求背景 相关issue: https://gitcode.com/cann/pypto/issues/489,//有规避方法,未解决根本问题 https://gitcode.com/cann/pypto/issues/748,//方案说明 https://gitcode.com/cann/pypto/issues/608,//疑似相同问题,本地稳定可以复现 例如在以下用例中,z 的高维大小由 x 的 shape 确定。当 x 是动态 shape 时,z 的大小是动态的。导致 LOOP_1 和 LOOP_2 在 stitch 到一起时,LOOP_1 中对 z 的 assemble 操作无法正确建立指向 LOOP_2 中对 z view 的z_view 等 tensor 的依赖,进而导致在缺少这些依赖时,存在精度问题。 def matmul_kernel(x, y, bias, out): pypto.set_debug_options(runtime_debug_mode=1) bsz, h = x.shape d = y.shape[1] z = pypto.Tensor([bsz, d], dtype=pypto.DT_FP32) b = 128 b_loop = (bsz + b - 1) // b for b_idx in pypto.loop(b_loop, name="LOOP_1", idx_name="b_idx"): b_valid = (bsz-b_idx*b).min(b) x_view = pypto.view(x, [b, h], [b_idx*b, 0], valid_shape=[b_valid, h]) ## Matmul pypto.set_cube_tile_shapes([128, 128], [128, 128], [128, 128]) c = pypto.matmul(x_view, y, pypto.DT_FP32) pypto.assemble(c, [b_idx*b, 0], z) c = 128 c_loop = (bsz + c - 1) // c for c_idx in pypto.loop(c_loop, name="LOOP_2", idx_name="c_idx"): c_valid = (bsz-c_idx*c).min(c) z_view = pypto.view(z, [c, d], [c_idx*c, 0], valid_shape=[c_valid, d]) bias_view = pypto.view(bias, [c, d], [c_idx*c, 0], valid_shape=[c_valid, d]) pypto.set_vec_tile_shapes(128, 128) pypto.assemble(z_view + bias_view, [c_idx*c, 0], out) 由于当前采用 cell match 来动态计算依赖关系,但是 cell match 在匹配时,需要事先分配相应大小的 cell match table,并且由 prod 更新 cell match table,由 con 读取 cell match table 中的值来建立依赖关系。 # 原因分析 根本原因是目前对于局部动态tensor的处理存在不足。 1. cell match 的问题 目前对于patial update slot,局部tensor需要cell match table,这是用于构建dev_task内依赖关系的重要机制。  目前的cell match table需要在编译期确定完整的大小,以准备完整的DevAscendProgram数据,但是动态局部tensor在编译期只能得到符号表达式,而非实际的大小,所以目前的 cell match table 缺乏处理动态大小tensor的能力,目前的做法是忽视动态大小的-1轴,当作正常数值计算,导致计算得到的cell table大小恒为1,这在动态轴大小为更大的数值(如128)时明显计算错误,这个错误会带到运行时,从而导致依赖建立的丢失或错误。  # 方案设计 考虑单独构建局部动态tensor的cell match分配器,用于运行时分配cell match table,尽量将所有需要的数值在launch阶段得到,运行时直接取,减少计算; ## 编译期(Encode) 1. 支持动态 cell-match 延后决策:编译期允许部分 cell-match 描述先不完整(动态维度场景),不再强行一次性定死。 2. 新增动态元数据输出:产物里补充 dynamic cell-match 的预算上限、slot 数量、以及 launch 期补丁所需 meta(offset/cell shape/候选维度表达式)。 3. workspace 预算模型扩展:把 dynamic cell-match 内存纳入 memBudget.metadata,总预算从“两段式”扩为“三段式”(general + dynamicCellMatch + stitchPool)。 ## Launch 阶段 1. 启动前按真实输入 patch 描述符:基于本次输入 shape 计算 stride,并写回 cfgdata(host 或 H2D)。 2. 动态预算随 kArgs 下发并回填设备侧:新增 dynamic assemble / dynamic cell-match 两类预算字段,设备初始化时回填并重算 runtime offset。 3. 地址布局升级:runtime offset 新增 dynamicCellMatchOffset,形成独立内存区,避免与 general/stitchPool 混用。 ## 运行时(Workspace/Slot 生命周期) 1. partial-update slot 标记更准确:按真实 slotIndex + 描述状态 标记,不再依赖旧的隐式假设。 2. 动态 cell-match 表按需分配/初始化:在 slot 更新和 assemble 分配路径中补齐“分配-初始化-绑定”闭环。 3. 回收路径补全:boundary outcast 释放时联动释放 dynamic cell-match 分配,避免残留和泄漏。 ## Cost Model 模块 1. 与真实 launch 对齐:cost model 启动时同步接收 dynamic 预算参数。 2. 同样执行动态 patch 逻辑:仿真前也按输入求值并 patch cell-match desc,避免“仿真和实跑不一致”。 3. 测试链路同步:ST runner 加入同类 budget refill + desc patch,保证测试口径一致。 See merge request: cann/pypto!2723 | 6 months ago | |
refactor(all): Remove trailing whitespace Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !2188 merge pre-commit into master refactor(all): Remove trailing whitespace Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Introduce pre-commit tools, and remove trailing white space with default plugin Related Issue: #1017 See merge request: cann/pypto!2188 | 7 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago | |
style(all): Apply additional clang-format corrections across codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4883 merge style-cpp into master style(all): Apply additional clang-format corrections across codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Apply additional clang-format corrections across codebase See merge request: cann/pypto!4883 | 4 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 months ago | ||
| 7 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 6 months ago | ||
| 7 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 4 months ago |