| 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: !6279 merge codegen_9.2 into 9.2.0 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!6279 | 2 months ago | |
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: !6279 merge codegen_9.2 into 9.2.0 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!6279 | 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 | |
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): Conv api support relu and support unaligned cout Co-authored-by: luyakun<luyakun@h-partners.com> # message auto-generated for no-merge-commit merge: !5312 merge conv_relu into master feat(operation): Conv api support relu and support unaligned cout Created-by: luyakun_hw Commit-by: luyakun Merged-by: cann-robot Description: Conv+ReLU融合,Conv api支持cout非C0对齐 https://gitcode.com/cann/pypto/issues/2896 See merge request: cann/pypto!5312 | 3 months 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): Propagate parallel task exceptions instead of swallowing them Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !5266 merge compile_fix into master fix(codegen): Propagate parallel task exceptions instead of swallowing them Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: 1. 多线程 Codegen 确定性 Kernel 编译 Related Issue:[https://gitcode.com/cann/pypto/issues/2913](https://gitcode.com/cann/pypto/issues/2913) 2. Issue 背景:GenCode 内的 ExecuteParallelCompile 编译失败抛出 COMPILE_CODE_FAILED 被吞掉,leafDict[hash] = leaf 未执行,leafDict不完整。下游 ConstructCodeInfo → RunCompileAicoreKernelStage → RunEncodeStage 继续访问不完整的 leafDict,触发 std::unordered_map::at() 越界,抛出 F00003 RuntimeError: _Map_base::at 二次异常,掩盖了真实的编译错误 根因:codeGen在并行编译遇到错误抛出异常时,只记录日志,并不传播异常和终止剩余task,导致报错在第二现场F00003 RuntimeError: _Map_base::at处 解决方法:修改 ParallelExecuteAndWait,使其在 task 失败时记录错误、提前终止剩余 task、并在所有线程 join 后重新抛出首个 COMPILE_CODE_FAILED异常 修改前:  修改后:  See merge request: cann/pypto!5266 | 3 months ago | |
fix(codegen): Propagate parallel task exceptions instead of swallowing them Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !5266 merge compile_fix into master fix(codegen): Propagate parallel task exceptions instead of swallowing them Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: 1. 多线程 Codegen 确定性 Kernel 编译 Related Issue:[https://gitcode.com/cann/pypto/issues/2913](https://gitcode.com/cann/pypto/issues/2913) 2. Issue 背景:GenCode 内的 ExecuteParallelCompile 编译失败抛出 COMPILE_CODE_FAILED 被吞掉,leafDict[hash] = leaf 未执行,leafDict不完整。下游 ConstructCodeInfo → RunCompileAicoreKernelStage → RunEncodeStage 继续访问不完整的 leafDict,触发 std::unordered_map::at() 越界,抛出 F00003 RuntimeError: _Map_base::at 二次异常,掩盖了真实的编译错误 根因:codeGen在并行编译遇到错误抛出异常时,只记录日志,并不传播异常和终止剩余task,导致报错在第二现场F00003 RuntimeError: _Map_base::at处 解决方法:修改 ParallelExecuteAndWait,使其在 task 失败时记录错误、提前终止剩余 task、并在所有线程 join 后重新抛出首个 COMPILE_CODE_FAILED异常 修改前:  修改后:  See merge request: cann/pypto!5266 | 3 months ago | |
feat(operation): Add FZ Reverse Conversion Co-authored-by: yang-fulai-3<yangfulai3@huawei.com> # message auto-generated for no-merge-commit merge: !5464 merge fz into master feat(operation): Add FZ Reverse Conversion Created-by: yangfulai Commit-by: yang-fulai-3 Merged-by: cann-robot Description: feat(operation): Add FZ Reverse Conversion See merge request: cann/pypto!5464 | 2 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 | |
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: !6187 merge capture_9.2 into 9.2.0 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!6187 | 2 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 | |
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 | |
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 | |
fix(codegen): Fix operandWithMagic out-of-bounds initialization Co-authored-by: anyangle<anyangle@huawei.com> # message auto-generated for no-merge-commit merge: !5678 merge issue into master fix(codegen): Fix operandWithMagic out-of-bounds initialization Created-by: quadrate Commit-by: anyangle Merged-by: cann-robot Description: 1. PyPTO codegen 模块日志整改 2. [Issue:2824](https://gitcode.com/cann/pypto/issues/2824)问题修改 3. [Issue:3020](https://gitcode.com/cann/pypto/issues/3020)问题修改 See merge request: cann/pypto!5678 | 3 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 | ||
| 2 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 3 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 6 months ago |