| Files | Last commit | Last update |
|---|---|---|
fix(codegen): Bind local buffers before skipping VIEW/RESHAPE ops Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !6280 merge codegen_master into master fix(codegen): Bind local buffers before skipping VIEW/RESHAPE ops Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: 问题背景: codegen对SKIP_OPCODE_FOR_CODEGEN中的op会直接continue,连GenAllocForLocalBuffer一并跳过。Mix拆leaf子图后,C,V共用同一memId的UB时,needAlloc被打在被skip的RESHAPE/VIEW输出上,codegen未bind;后续COPY_OUT读的是VIEW后的新tensor(未带needAlloc),导致codegen报SYMBOL_NOT_FOUND。 解决方案: 在 CodeGenCloudNPU::GenFuncBody / CodeGenLiteNPU::GenFuncBody 中,将 GenAllocForLocalBuffer(op, symbolMgr) 移到 SKIP_OPCODE_FOR_CODEGEN 判断之前: - skip op:仍不 GenOpCode,但会消费 in/out 上的 needAlloc 完成 bind(同一 AllocKey 二次调用 reuse,安全) - 非 skip op:行为与原来一致 See merge request: cann/pypto!6280 | 2 months ago | |
feat(pass): Support VF fusion for LiteNPU Co-authored-by: fangrui_32<fangrui30@h-partners.com> # message auto-generated for no-merge-commit merge: !6389 merge master into master feat(pass): Support VF fusion for LiteNPU Created-by: fangrui_32 Commit-by: fangrui_32 Merged-by: cann-robot Description: Related Issue: [[Requirement|需求建议]: 支持 LiteNPU 端侧场景的 VF 融合](https://gitcode.com/cann/pypto/issues/3343) See merge request: cann/pypto!6389 | 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 | |
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(operation): support A5 adaptive in-place overwrite Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !6174 merge codex/scatter-upstream-master into master feat(operation): support A5 adaptive in-place overwrite Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: scatter 算子 现在阶段使用 标量来实现,A5 有了 simt 能力,可以提高效率。 同时,部分场景中,在ub 中使用 Tscatter 性能更有优势 。 我们相当于支持了 scatter 自适应的 ub 和 gm,并且在gm 场景中使用 simt 来提高性能。 单算子场景中,性能平均提升 4~5,在ub 场景中无劣化。 Related Issue: https://gitcode.com/cann/pypto/issues/3470 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!6174 | 1 month ago | |
feat(Conv): conv support L0C2Ub mix Co-authored-by: xinweiliu<xinweiliu@huawei.com> Co-authored-by: xinweiliu<liuxinwei12@huawei.com> # message auto-generated for no-merge-commit merge: !6583 merge Conv_L0C_2_UB_Mix_support into master feat(Conv): conv support L0C2Ub mix Created-by: xinweiliu Commit-by: xinweiliu Merged-by: cann-robot Description: Conv新增L0C2Ub通路mix能力 See merge request: cann/pypto!6583 | 1 month ago | |
feat(Operation): Add pypto.conv_backward_input and its 2D implementation on A2/A3 Co-authored-by: hongyiliu111<liuhongyi1@huawei.com> Co-authored-by: xutianlong1<xutianlong1@huawei.com> Co-authored-by: wangshenhao<wangshenhao1@huawei.com> # message auto-generated for no-merge-commit merge: !5528 merge dev into master feat(Operation): Add pypto.conv_backward_input and its 2D implementation on A2/A3 Created-by: hongyiliu111 Commit-by: wangshenhao;hongyiliu111;xutianlong1 Merged-by: cann-robot Description: feat(Operation): Add pypto.conv_backward_input and its 2D implementation on A2/A3 Add pypto.conv_backward_input interface to compute the gradient of convolution with respect to the input tensor, and implement its 2D support spanning the frontend interface, backend operation implementation and MTE codegen Changes: - Add pypto.conv_backward_input frontend interface with parameter validation - Implement ConvBackwardInput 2D backend operation and codegen - Add UT/ST test cases for the 2D implementation See merge request: cann/pypto!5528 | 3 months ago | |
feat(indexing): Support A5 SIMT gather and index put Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !5404 merge feat/a5-simt-mixed into master feat(indexing): Support A5 SIMT gather and index put Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: gather indexput 支持的simt 实现,在离散场景下提升性能 当 Gather 的 source 位于 GM、indices 位于 UB 时,A5 Codegen 会选择 SIMT MGATHER 实现: 1. 使用 SIMD 批量计算 Gather 的元素偏移。 2. 使用 SIMT MGATHER 根据偏移直接从 GM source 读取数据。 3. source 位于 UB 时继续使用原有实现。 4. int64 indices 暂不使用 SIMT,回退到原有 Scalar 实现。 同时补充了 SIMT Kernel 的端到端识别与下发机制: 1. Pass 识别需要 SIMT 的 Gather,并设置 requiresSimt 属性。 2. 将 requiresSimt 信息传递到 Device Program 和编译流程。 3. 为包含 SIMT 的 A5 Kernel 生成相应的 ELF metadata。 4. Runtime 根据 Kernel 是否包含 SIMT,选择对应的 UB 配置。 5. SIMT Kernel 配置 216 KB 动态 UB,并为 DCache 预留 32 KB。 6. 纯 SIMD Kernel 保持原有 Runtime 下发方式和 UB 配置。 此外,完善了 GM GatherElement 在内存类型推导、动态参数注册、动态 valid shape 处理和 OoO 调度中的支持。 Related Issue: #3162 ``` 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!5404 | 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(codegen): Add bisheng compile cmd Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !6596 merge bisheng into master fix(codegen): Add bisheng compile cmd Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: codegen补充编译命令选项 See merge request: cann/pypto!6596 | 1 month ago | |
feat(codegen): align LITE-NPU CCEC command with standard version via virtual-hook override Co-authored-by: zhuhongyu<zhuhongyu22@h-partners.com> # message auto-generated for no-merge-commit merge: !6307 merge codegen-refactor into master feat(codegen): align LITE-NPU CCEC command with standard version via virtual-hook override Created-by: Zhu1418539395 Commit-by: zhuhongyu Merged-by: cann-robot Description: ### 摘要 LITE-NPU 设备路径 CCEC 命令硬编码 -O3 -g 且缺标准版 3 个对齐选项。本 PR 新增 BuildBaseOptions 虚函数(默认保留原命令),CodeGenLiteNPU override 对齐:-O2 无 -g + 3 个对齐选项按标准版(黄区参考)位置插入。无新类、factory 零改动,云端/仿真链不变。 ### 修改意图与依据 | 改动 | 依据 | |---|---| | CodeGenLiteNPU 基础选项改为 -O2 无 -g | 标准版命令为 -c -O2 -x cce -std=c++17;-g 使 kernel .o 约 98% 是 DWARF,实测触发设备 per-bin 上限(12.69 MiB 过 / 15.81 MiB 挂),删 -g 已板验:silu .o 673KB→17KB(38 倍)、omc 板端 Load model success | | 补 --cce-long-call=true、-fno-jump-tables、--cce-linker-relax=true | 标准版命令含这 3 项,位置在 --cce-aicore-only 之后、--cce-aicore-arch 之前,逐位置对齐 | | 基类新增 BuildBaseOptions 虚函数,默认 = 原 -O3 -g 命令 | 原本逻辑不删;云端/仿真链经继承默认实现,命令 byte-for-byte 不变;--cce-aicore-input-parameter-size=4096 原有(litenpu BuildExtraOptions),不重复添加 | --cce-linker-relax=true未应用,因为会导致camodel和上板验证失败。 ### 改动清单 | 文件 | 说明 | |---|---| | framework/src/codegen/npu/codegen_npu.cpp | PrepareCmd 改调 BuildBaseOptions(:356);新增默认实现(:570) | | framework/src/codegen/npu/codegen_npu.h | 虚函数声明(:184) | | framework/src/codegen/npu/litenpu/codegen_litenpu.cpp | BuildBaseOptions override(:202);BuildArchOptions 补 3 个对齐选项(:219-221) | | framework/src/codegen/npu/litenpu/codegen_litenpu.h | override 声明(:56) | See merge request: cann/pypto!6307 | 2 months ago | |
feat(Conv): conv support L0C2Ub mix Co-authored-by: xinweiliu<xinweiliu@huawei.com> Co-authored-by: xinweiliu<liuxinwei12@huawei.com> # message auto-generated for no-merge-commit merge: !6583 merge Conv_L0C_2_UB_Mix_support into master feat(Conv): conv support L0C2Ub mix Created-by: xinweiliu Commit-by: xinweiliu Merged-by: cann-robot Description: Conv新增L0C2Ub通路mix能力 See merge request: cann/pypto!6583 | 1 month ago | |
feat(Conv): conv support L0C2Ub mix Co-authored-by: xinweiliu<xinweiliu@huawei.com> Co-authored-by: xinweiliu<liuxinwei12@huawei.com> # message auto-generated for no-merge-commit merge: !6583 merge Conv_L0C_2_UB_Mix_support into master feat(Conv): conv support L0C2Ub mix Created-by: xinweiliu Commit-by: xinweiliu Merged-by: cann-robot Description: Conv新增L0C2Ub通路mix能力 See merge request: cann/pypto!6583 | 1 month ago | |
fix(codegen): Null-check taskStat before OPEN_MIX_PERF sys_cnt access Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !6184 merge capture_master into master fix(codegen): Null-check taskStat before OPEN_MIX_PERF sys_cnt access Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: 背景:Capture(aclgraph / NPUGraph)模式下开启 runtime_debug_mode=1(泳道图相关 debug)后,用例执行异常 根因:编译期与 Capture 运行期对泳道能力的处理不一致: 编译期:runtime_debug_mode=1 会在 codegen 增加 -DOPEN_MIX_PERF,在 CV sync 等处插入对 taskStat 的时间戳写(codegen_npu.cpp / codegen_scalar.cpp)。 运行期 Capture:host 故意规避泳道采集: debugEnable = !isCaptureMode && isDebugMode Capture 不下发 toSubMachineConfig RunWithProfile 在 Capture 直接 return(告警:swimlane not supported in CaptureMode) 因此 InitTaskStat 得到 taskStat == nullptr 冲突点:leaf kernel 中 OPEN_MIX_PERF 插桩此前 无空指针保护,仍解引用空 taskStat → AICore 271;后续 AICPU timeout / GetMetrics timeout 为连带现象 解决方法:在 codegen 生成的 OPEN_MIX_PERF 插桩处增加空指针保护 See merge request: cann/pypto!6184 | 2 months ago | |
feat(Operation): add IndexAddGMInplace SIMT Co-authored-by: Super User<root@liteserver-hps-gui7-6-00001.novalocal> # message auto-generated for no-merge-commit merge: !6609 merge feat/indexadd_simt into master feat(Operation): add IndexAddGMInplace SIMT Created-by: chenbl Commit-by: Super User Merged-by: cann-robot Description: 增加 IndexAdd GM Inplace 的SIMT实现 See merge request: cann/pypto!6609 | 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(operation): support A5 adaptive in-place overwrite Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !6174 merge codex/scatter-upstream-master into master feat(operation): support A5 adaptive in-place overwrite Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: scatter 算子 现在阶段使用 标量来实现,A5 有了 simt 能力,可以提高效率。 同时,部分场景中,在ub 中使用 Tscatter 性能更有优势 。 我们相当于支持了 scatter 自适应的 ub 和 gm,并且在gm 场景中使用 simt 来提高性能。 单算子场景中,性能平均提升 4~5,在ub 场景中无劣化。 Related Issue: https://gitcode.com/cann/pypto/issues/3470 更多描述信息见:[Commit Message 规范](../docs/zh/contribute/pull-request.md#commit-message) See merge request: cann/pypto!6174 | 1 month 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(docs): Fix CodeGen log and swim-lane document Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !5832 merge doc_fix into master fix(docs): Fix CodeGen log and swim-lane document Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: 1. 删除swim lane相关的文档指导 2. CodeGen部分日志整改 See merge request: cann/pypto!5832 | 2 months ago | |
feat(operation): Add the Digamma methods Co-authored-by: dingsinuo<dingsinuo@huawei.com> # message auto-generated for no-merge-commit merge: !6657 merge digamma into master feat(operation): Add the Digamma methods Created-by: dingsinuo Commit-by: dingsinuo Merged-by: cann-robot Description: 新增digamma(双伽马函数)算子 See merge request: cann/pypto!6657 | 2 months ago | |
feat(codegen): Support inline multi-axis broadcast for binary ops in for-axis hoisting Co-authored-by: Bee.Hujun<Bee.hujun@huawei.com> # message auto-generated for no-merge-commit merge: !3335 merge codegen/support_binary_brc_multi_axes into master feat(codegen): Support inline multi-axis broadcast for binary ops in for-axis hoisting Created-by: cam_bxh Commit-by: Bee.Hujun Merged-by: cann-robot Description: 1. Support inline multi-axis broadcast for binary ops in for-axis hoisting See merge request: cann/pypto!3335 | 6 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 4 months ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 1 month ago | ||
| 2 months ago | ||
| 1 month ago | ||
| 1 month ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 1 month ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 6 months ago |