| Files | Last commit | Last update |
|---|---|---|
fix(pypto-pro): lower loop target and classify tuple Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !6261 merge master into master fix(pypto-pro): lower loop target and classify tuple Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: 1. add lower for loop target 2. classify tuple to tuple, named tuple, struct in parser 3. add doc for astype interface See merge request: cann/pypto!6261 | 2 months ago | |
feat(pypto-pro): Decouple generation of tilingdata.h from codegen Co-authored-by: poorwill<wangbing110@huawei.com> # message auto-generated for no-merge-commit merge: !5799 merge master into master feat(pypto-pro): Decouple generation of tilingdata.h from codegen Created-by: wangbing110 Commit-by: poorwill Merged-by: cann-robot Description: decouple generation of tilingdata.h from codegen See merge request: cann/pypto!5799 | 2 months ago | |
feat(ir): Add block bindings support Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !3705 merge new into master feat(ir): Add block bindings support Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: support block bindings See merge request: cann/pypto!3705 | 5 months ago | |
feat(machine): Support host ctrlflow cache by jit Co-authored-by: qq_52905393<liuzhen180@huawei.com> # message auto-generated for no-merge-commit merge: !5741 merge dev-host-ctrl-jit into master feat(machine): Support host ctrlflow cache by jit Created-by: qq_52905393 Commit-by: qq_52905393 Merged-by: cann-robot Description: 1、支持通过 jit ready_on_host_tensors 配置 npu_name: cpu_name 传入配对关系,算子 kernel 传入值依赖 tensor 对应的 cpu tensor 2、支持传入值依赖 tensor 场景下在 host 侧做 controlflow cache See merge request: cann/pypto!5741 | 2 months ago | |
fix(simulation): Relax capture mode during device-to-host data transfer Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5303 merge fix/capture-mode-relax into master fix(simulation): Relax capture mode during device-to-host data transfer Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: fix(simulation): Relax capture mode during device-to-host data transfer In A3 simulation mode, executing capture test cases fails with RT_MEMCPY_FAILED (F7B002) during CopyFromDev. The root cause is that device-to-host memory copy is restricted in capture mode. This change calls ExchangeCaptureModeRelax before the data transfer to relax the capture mode constraint, allowing the memcpy to succeed. Changes: - Add ExchangeCaptureModeRelax call in cost_model.py before device-to-host tensor transfer - Bind ExchangeCaptureModeRelax function in cost_model.cpp - Add ExchangeCaptureModeRelax declaration in __init__.pyi Related Issues: #2887 See merge request: cann/pypto!5303 | 3 months ago | |
feat(ir): Add block bindings support Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !3705 merge new into master feat(ir): Add block bindings support Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: support block bindings See merge request: cann/pypto!3705 | 5 months ago | |
feat(ir): Add block bindings support Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !3705 merge new into master feat(ir): Add block bindings support Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: support block bindings See merge request: cann/pypto!3705 | 5 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(Pass): Assume_divisible for dual_dst Co-authored-by: gggxinmeng<guoxinmeng@huawei.com> # message auto-generated for no-merge-commit merge: !5527 merge dualdst_dynvalidshape_2 into master feat(Pass): Assume_divisible for dual_dst Created-by: gggxinmeng Commit-by: gggxinmeng Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/2858 # OoO阶段无法对动态validshape进行比较,导致dualdst使能失败 动态切分轴的逐 tile validShape 通常由编译器推导为: text min(max(rawShape - offset, 0), tileShape) 例如两个相邻半块可能分别得到: text min(max(vm, 0), TILE_M) min(max(vm - TILE_M, 0), TILE_M) InferDynShape::RecordStaticValidShapeOnL0CCopyUB 会在后续 InferShape 把 shape 归一化为动态表达式之前,将全 concrete 的 valid shape保存到 staticValidShape。但只要任意一维仍含动态成分,快照就整体跳过,DualDst 只能回退到动态表达式比较。 上述两个相邻半块的表达式 dump 不同,而且都没有 concrete 值,DynShapeEq 无法证明它们相等,因此 pair 识别失败。即使业务实际保证 vm 总是 TILE_M 的整数倍、两个半块运行时一定都是完整 tile,编译器仍然缺少这一事实。 根因不是 DualDst 搬运或 codegen 不支持,而是前端没有 Interface 表达“运行时标量可被 tile 整除”,编译期也就无法把逐 tile valid shape证明为静态满块。 # 方案目标 1. 允许用户显式声明某个运行时表达式一定能被指定 tile 整除; 2. 编译器依据该声明证明相关 validShape 恒等于完整 tile,并把它静态化; 3. 在 InferShape 归一化之前让 staticValidShape 快照命中,使现有 DualDst 识别和融合逻辑直接受益; 4. 融合后仅静态化切分轴,保留非切分轴原有 valid shape; 5. 在调试模式下生成运行时取模断言,帮助发现错误的用户声明; 6. 没有假设或证明条件不足时保留原动态表达式,不强行融合。 本方案解决的是“编译器缺少业务整除信息”的问题,而不是自动识别主块和尾块。它是一份由用户提供、编译器信任的语义契约。 # 总体设计 完整链路如下: text Python 用户代码 │ assume_divisible(expr, 128) ▼ Function 保存整除假设 │ expression -> {divisors} ▼ InferDynShape 证明 validShape 恒为 tile │ min/max/add/sub/mul + offset/cap 对齐证明 ▼ 动态 validShape -> 静态 tileShape │ 同步 Tensor 与需要保持一致的 Op attribute ▼ RecordStaticValidShapeOnL0CCopyUB │ 写入 staticValidShape ▼ 现有 DualDst 匹配与融合 │ 保留非切分轴的动态 validShape ▼ 现有 leaf / codegen / dev_encode / runtime 流程 调试模式 runtime_debug_mode=4: Function 中的显式假设 -> 生成 expr % divisor == 0 运行时断言 See merge request: cann/pypto!5527 | 2 months ago | |
fix(operator): Make ScatterUpdate update dst inplace and preserve slot symbol Co-authored-by: gaoxingwang<camuel.gao@huawei.com> # message auto-generated for no-merge-commit merge: !6028 merge scatterupdate-inplace into master fix(operator): Make ScatterUpdate update dst inplace and preserve slot symbol Created-by: gaoxingwang Commit-by: gaoxingwang Merged-by: cann-robot Description: fix(operator): Make ScatterUpdate update dst inplace and preserve slot symbol ScatterUpdate returned a new tensor while leaving dst unchanged, which broke inplace semantics and lost dst ARG symbol in codegen when the src slot (nameless inplace-view SSA) took over dst registration. Changes: - Change ScatterUpdate dst parameter to a mutable reference and assign result back to dst so the caller-side tensor reflects the update - Register input names at param-declaration time via the new TensorSlotManager::MarkInputName (called in RootFunctionBuilder::InitDynFunc and RecordFunc::RecordDynFuncInner), so inputNameList keeps the original ARG symbols before any SetSameSlot migration - Keep slot marking and startArgs fill in BuildDynSlotScope unchanged - Register pypto.scatter_update in _patch_methods so inplace slot tracking covers it Related Issues: #3260 See merge request: cann/pypto!6028 | 2 months ago | |
feat(ir): Add block bindings support Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !3705 merge new into master feat(ir): Add block bindings support Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: support block bindings See merge request: cann/pypto!3705 | 5 months ago | |
refactor(platform): Pass memory space key as string in GetMemoryLimitForArch Co-authored-by: zhengyaoff12<zhengyao12@huawei.com> # message auto-generated for no-merge-commit merge: !5982 merge commit-0907 into master refactor(platform): Pass memory space key as string in GetMemoryLimitForArch Created-by: zhengyaoff12 Commit-by: zhengyaoff12 Merged-by: cann-robot Description: Follow-up to the review comment on #5779: platform (tilefwk) must not include headers from ir. - Remove #include "ir/memory_space.h" from framework/include/tilefwk/platform.h; GetMemoryLimitForArch now takes the memory space as a string key instead of pypto::ir::MemorySpace. - Define the accepted space keys (kMemorySpaceVec/Mat/Left/Right/Acc) in platform.h next to the interface; the key -> platform-ini column mapping (spaceKeys) lives in platform.cpp. - Python bindings and get_memory_limit forward the string key; _get_memory_capacity passes MemorySpace.name instead of .value. Related Issue: https://gitcode.com/cann/pypto/issues/3181 See merge request: cann/pypto!5982 | 2 months ago | |
fix(dfx): Add memory events and change moduleid to PyPTO. Co-authored-by: meiqing2<meiqing2@hisilicon.com> # message auto-generated for no-merge-commit merge: !6215 merge mtr1 into master fix(dfx): Add memory events and change moduleid to PyPTO. Created-by: meiqing2 Commit-by: meiqing2 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!6215 | 2 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 | |
fix(ir): Select merged valid_shape by branch condition Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !5840 merge fix/phi-shape into master fix(ir): Select merged valid_shape by branch condition Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!5840 | 2 months ago | |
feat(machine): Support host ctrlflow cache by jit Co-authored-by: qq_52905393<liuzhen180@huawei.com> # message auto-generated for no-merge-commit merge: !5741 merge dev-host-ctrl-jit into master feat(machine): Support host ctrlflow cache by jit Created-by: qq_52905393 Commit-by: qq_52905393 Merged-by: cann-robot Description: 1、支持通过 jit ready_on_host_tensors 配置 npu_name: cpu_name 传入配对关系,算子 kernel 传入值依赖 tensor 对应的 cpu tensor 2、支持传入值依赖 tensor 场景下在 host 侧做 controlflow cache See merge request: cann/pypto!5741 | 2 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(ir): Add block bindings support Co-authored-by: wuzhongxin<wuzhongxin1@huawei.com> # message auto-generated for no-merge-commit merge: !3705 merge new into master feat(ir): Add block bindings support Created-by: wuzhongxin Commit-by: wuzhongxin Merged-by: cann-robot Description: support block bindings See merge request: cann/pypto!3705 | 5 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 2 months ago | ||
| 5 months ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 5 months ago | ||
| 5 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 5 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 5 months ago |