| Files | Last commit | Last update |
|---|---|---|
fix(machine): fix log level mismatch, magic number and grammar errors Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5720 merge pyptolog_fix2 into master fix(machine): fix log level mismatch, magic number and grammar errors Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 日志规范性整改 See merge request: cann/pypto!5720 | 3 months ago | |
fix(machine): Compile monitor info fix. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5321 merge compile_fix into master fix(machine): Compile monitor info fix. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 删除重复warning信息;删除重复compile_monitor标识 See merge request: cann/pypto!5321 | 3 months ago | |
feat(platform): Modify Platform config Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !6227 merge sfplatform into 9.2.0 feat(platform): Modify Platform config Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景: 原始的platform信息并沿用了机器层面命名。 本 PR 对平台配置域做概念规范化,统一到三个标准概念: soc_series:原 short_soc_version(ini 键 Short_SoC_version),如 Ascend950; soc_version:芯片分 bin(ini 键 SoC_version,每个 soc_version 一个 ini 文件),如 Ascend950PR_9589; NPU_ARCH:核架构名称(ini 键 NpuArch),如 3510/2201。 A2/A3/A5 属于整机(chip + host CPU/网卡/机箱)层面的机器概念,不再用于平台配置选择。 Changes: platform_config 精简为实际交付的 13 个 soc_version ini(69 -> 13),规格与 CANN 9.2.0 包内文件一致;Ascend910_9363、Ascend950DT_9581X 按交付需求保留 DPlatform 枚举适配真实 soc_version,不再自定义枚举值:删除与实际芯片不符的 ASCEND_950DT_9579/ASCEND_950PR_9582(对应真实 bin 为 Ascend950DT_9572/Ascend950PR_9589), 补充 ASCEND_910_9363/ASCEND_950DT_9581X platform.h 新增 DPlatformToNPUArch(),统一 soc_version -> NPU_ARCH 映射 (910B 系列 -> 2201,950 系列 -> 3510,Kirin -> 3113/3003) GetCyclesForPass 仿真器选择改为按 NPU_ARCH 判断(3510 -> "A5",其余 -> "A2A3"), 不再按 A2A3/A5 机器名前缀匹配;A2A3/A5 仅作为 cost model 内部实现类型名保留 默认 device_platform 统一为标准格式 Ascend910B2(config_manager.h / tile_fwk_config.json) CMakeLists 安装清单与交付 ini 清单保持一致 UT 同步更新:枚举映射、legacy 格式兼容、NPU_ARCH 映射、ini 规格加载用例, 新增 Ascend910_9363 / Ascend950DT_9581X 用例 兼容性: 旧格式 device_platform(如 "ASCEND_910B2")仍可识别,自动归一化为标准 soc_version 并打印告警; 其中 ASCEND_950DT_9579 -> Ascend950DT_9572、ASCEND_950PR_9582 -> Ascend950PR_9589, 与其原先实际加载的 ini 规格保持一致 ASCEND_910C4 为无效值,回落默认 Ascend910B2(与原行为一致) Tests: TestDevicePlatformConfig(16 例)、TestConfigManager、CostModelTest 相关用例全部通过; See merge request: cann/pypto!6227 | 2 months ago | |
fix(interface): Reduce UT time and resolve code style. Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !3697 merge review into master fix(interface): Reduce UT time and resolve code style. Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: 1. 减少ut耗时 2. 整改代码规范 See merge request: cann/pypto!3697 | 5 months ago | |
fear(ir): Keep every assemble version of one slot as outcast output Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !6386 merge ass_9.2 into 9.2.0 fear(ir): Keep every assemble version of one slot as outcast output Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!6386 | 2 months ago | |
compilation issue fixed Co-authored-by: hsqnb<heshouqi@h-partners.com> # message auto-generated for no-merge-commit merge: !5798 merge master into master compilation issue fixed Created-by: hsqnb Commit-by: hsqnb Merged-by: cann-robot Description: fix(interface): Add missing cstdint header in pre_def The pre_def.h uses uint8_t (via BinDataPtr typedef) but does not include <cstdint> that defines it. This causes compilation failures on strict toolchains where <cstdint> is not transitively included. Changes: - Add #include <cstdint> to framework/src/interface/inner/pre_def.h Related Issue: #3172 See merge request: cann/pypto!5798 | 2 months ago | |
fix(interpreter): Support per-batch MX scales Co-authored-by: y00957431<yangrui231@huawei.com> # message auto-generated for no-merge-commit merge: !6276 merge tools_scaleBMM-920 into 9.2.0 fix(interpreter): Support per-batch MX scales Created-by: yr12318 Commit-by: y00957431 Merged-by: cann-robot Description: ### 背景 PR 5571 将 scaled_mm + BatchMatmul 场景中的 scale_a 和 scale_b 从跨 Batch 共享调整为按 Batch 独立缩放。精度工具的 Interpreter 尚未适配新的 Scale 维度和 Batch 语义,导致 3D/4D MX MatMul 无法正常进行精度校验。 ### 修改内容 - 扩展 MX Scale 的识别范围,支持维度为 3、4、5,且末维为 2 的 DT_FP8E8M0 Scale。 - MX MatMul 支持维度为 2、3、4 的 Matrix,并增加以下校验: - A、B Matrix 的维度相同。 - Scale 的维度等于对应 Matrix 的维度加 1。 - Scale 的 Batch 维度与对应 Matrix 一致。 - 调整 scale_a 和 scale_b 的转置、展平及扩展逻辑,在 Scale 展开过程中保留 Batch 维度。 - 支持 scale_a 和 scale_b 的转置布局。 - 支持 A、B Matrix 的 Batch 广播,确保广播前各 Matrix 使用自身 Batch 对应的 Scale。 - 对 ceil(K / 64) 产生的尾部 Scale 按实际 K 长度进行裁剪,支持 K 非 64 对齐场景。 - 保持原有 2D Matrix + 3D Scale 场景的行为兼容。 - 修正 FP8 E5M2 编码中的就近偶数舍入及尾数进位处理。 - CallOp 场景复用已有的 Tensor Data View,避免因 Valid Shape 变化重新创建数据视图。 ### UT 覆盖 - 2D Matrix + 3D Scale 兼容场景。 - 3D Per-Batch Scale、Batch 广播及 K = 33 非对齐场景。 - 4D Matrix 交叉 Batch 广播场景。 - 5D 转置 Scale 及 Bias 输入识别场景。 - 使用不同 E8M0 Scale 验证各 Batch 独立计算。 See merge request: cann/pypto!6276 | 2 months ago | |
refactor(pypto-pro): Normalize integer scalar source types | 2 months ago | |
fix(machine): Execount optimize Co-authored-by: yanggen<yanggen4@hisilicon.com> Co-authored-by: sunhaoxuan2024<sunhaoxuan3@h-partners.com> # message auto-generated for no-merge-commit merge: !5954 merge master into master fix(machine): Execount optimize Created-by: yanggen Commit-by: sunhaoxuan2024;yanggen 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!5954 | 2 months ago | |
fix(operation): Clamp GM accumulation K view shape to remaining K [9.2.0] Co-authored-by: li_qingyan<liqingyan10@h-partners.com> # message auto-generated for no-merge-commit merge: !6447 merge fix/operation/gm-acc-view-shape-9.2.0 into 9.2.0 fix(operation): Clamp GM accumulation K view shape to remaining K [9.2.0] Created-by: li_qingyan Commit-by: li_qingyan Merged-by: cann-robot Description: > 同步自 master 分支(基线 upstream/9.2.0,涉及文件两分支无差异,干净落位)。 ## 问题 GM 累加(splitK)路径 ComputeGmAccumulationKernel 中,当 K 不是 L1 tile 整数倍时,K 尾块 A/B tensor 的 View **shape 仍声明整块 kL1Size**,超出实际剩余 K 数据(仅 validShape 裁剪),块尺寸与真实数据范围不匹配,存在越界读取/构图语义错误风险。 ## 方案 新增 kViewShape = min(kSize2D - kL1Size * kIdx, kL1Size),A/B tensor View shape 由 kL1Size 改为 kViewShape(transA/transB 4 处布局同步);partialKValidShape 裁剪上限同步改为 kViewShape。 总计 1 个文件,+6/-5。 ## 校验 UT:DynamicMatmulUTest.mm_A_B_ND_KSplit_bf16(GM 累加路径)单跑通过;Matmul 相关 UT 套件结果与未改动基线一致(既有用例间污染失败非本改动引入)。 Related Issue: #3364 See merge request: cann/pypto!6447 | 2 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 | |
feat(interpreter): Interpreter recently fix Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !6122 merge 9.2.0 into 9.2.0 feat(interpreter): Interpreter recently fix Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: 1. RUNTIME_GetTensorDataInt32 符号求值防御性校验加固 2. 精度工具产物output空目录修复 3. RANGE 算子 支持DYN_SCALAR 动态值解析 4. 日志规范 5. view和assemble展开时,要和其他计算op一样,重置一下展开后logicaltensor的raw 6. 展开view时,把自身的toDynValidshape属性切分到各个slice上 See merge request: cann/pypto!6122 | 2 months ago | |
refactor(pypto-pro): Normalize integer scalar source types | 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 | |
fear(ir): Keep every assemble version of one slot as outcast output Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !6386 merge ass_9.2 into 9.2.0 fear(ir): Keep every assemble version of one slot as outcast output Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!6386 | 2 months ago | |
fix(opration): Repair Alerts Co-authored-by: chen_zhang<zju_zhangchen@zju.edu.cn> # message auto-generated for no-merge-commit merge: !6371 merge FIX_WARNINGS into 9.2.0 fix(opration): Repair Alerts Created-by: chen_zhang Commit-by: chen_zhang Merged-by: cann-robot Description: fix(opration): Repair Alerts issue:https://gitcode.com/cann/pypto/issues/3314 See merge request: cann/pypto!6371 | 2 months ago | |
feat(machine): Support ASCEND_RT_LAUNCH_BLOCKING for AICPU scheduling blocking Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !5823 merge br_blocking into master feat(machine): Support ASCEND_RT_LAUNCH_BLOCKING for AICPU scheduling blocking Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: ## 修改意图 支持通过环境变量 ASCEND_RT_LAUNCH_BLOCKING=1 控制 AICPU 调度流阻塞下发,用于调试和时序问题排查场景。 ## 修改内容 ### 1. Adapter 层新增 API 加载 - AclRtNoBlockingLaunchBegin/End:从 libruntime.so 加载 aclrtNoBlockingLaunchBeginImpl/EndImpl(libascendcl.so 未导出这两个符号,实际实现位于 libruntime.so) - AclRtSetStreamAttribute:从 libascendcl.so 加载 aclrtSetStreamAttribute ### 2. 运行时阻塞控制 - common.h 新增 IsLaunchBlockingEnabled(),读取 ASCEND_RT_LAUNCH_BLOCKING 环境变量(static 缓存) - device_launcher.cpp 中 LaunchKernel:当 !IsCaptureMode() && IsLaunchBlockingEnabled() 时,用 AclRtNoBlockingLaunchBegin/End 包裹 sche stream 上的 AICPU 调度下发 ### 3. ST 测试用例 - 新增 test_blocking_launch.py,通过 spawn 子进程在 import torch 前继承环境变量验证功能 ## 改动文件 | 文件 | 说明 | |------|------| | framework/src/adapter/api/acl_api.cpp / acl_api.h | 新增 AclRtSetStreamAttribute、AclRtNoBlockingLaunchBegin/End 实现 | | framework/src/adapter/manager/types/acl_adapter_types.h | 新增 RtSetStreamAttribute 枚举与符号映射 | | framework/src/adapter/manager/types/runtime_adapter_types.h | 新增 NoBlockingLaunchBegin/End 枚举,映射到 aclrtNoBlockingLaunchBeginImpl/EndImpl | | framework/src/adapter/stubs/acl_stubs.cpp / acl_stubs.h | 新增 StubRtSetStreamAttribute stub | | framework/src/interface/utils/common.h | 新增 IsLaunchBlockingEnabled() | | framework/src/machine/runtime/launcher/device_launcher.cpp | LaunchKernel 中接入阻塞下发控制 | | python/tests/st/test_blocking_launch.py | 新增 ST 用例 | ## 验证 - 环境变量未设置时:行为不变(走原有 ring event / RunPreSync 同步) - ASCEND_RT_LAUNCH_BLOCKING=1 时:sche stream 非阻塞下发 - CANN 版本不兼容时(缺少符号)打印 warning 但不中断执行 Related Issue: #3188 See merge request: cann/pypto!5823 | 2 months ago | |
feat(conv): Support conv tileshape infer transdata vec tileshape Co-authored-by: Catherie<mayuan33@huawei.com> # message auto-generated for no-merge-commit merge: !5148 merge conv_tile_to_vec_tile into master feat(conv): Support conv tileshape infer transdata vec tileshape Created-by: xinweiliu Commit-by: Catherie Merged-by: cann-robot Description: 支持A2A3 通过Conv tileshape 内部推导Transdata Vec TileShape,用户不需要前端显示配置 See merge request: cann/pypto!5148 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 3 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 5 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 7 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 3 months ago |