| Files | Last commit | Last update |
|---|---|---|
fix(machine): Adjust blocking mode | 2 months ago | |
refactor(build): Reuse the common compilation options from common cmake. Co-authored-by: Feiteng Zheng<zhengfeiteng1@h-partners.com> # message auto-generated for no-merge-commit merge: !5292 merge 20260728-intf-pub-2 into master refactor(build): Reuse the common compilation options from common cmake. Created-by: zhengfeiteng Commit-by: Feiteng Zheng Merged-by: cann-robot Description: 切换使用 cann/cmake 仓规定的 intf_pub。 - 通过CANN_GLIBCXX_USE_CXX11_ABI属性设置tile_fwk_calculator的_GLIBCXX_USE_CXX11_ABI Related Issue: #2650 See merge request: cann/pypto!5292 | 3 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 | |
fix(simulation): Register ERF pipe type and fallback unknown opcodes Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !6521 merge fix/sim-erf-pipe-type into master fix(simulation): Register ERF pipe type and fallback unknown opcodes Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: fix(simulation): Register ERF pipe type and fallback unknown opcodes Task-level simulation (--run_mode sim) aborts with F16766 INVALID_PIPE_TYPE when executing kernels containing the ERF opcode (e.g. GELU/GeGLU in activation.py). Root cause: SCHED_CORE_PIPE_TYPE lacks the ERF mapping, and TileOp::GetPipeType() hard-asserts on unknown opcodes with no fallback path. Changes: - Register {"ERF", CorePipeType::PIPE_VECTOR_ALU} in SCHED_CORE_PIPE_TYPE - Refactor TileOp::GetPipeType(): unknown opcodes now fall back to PIPE_VECTOR_ALU with a SIMULATION_LOGW warning instead of aborting; this also fixes the pre-existing UB where the LOOP exemption path dereferenced end() when LOOP was absent from the table Related Issues: #3392 See merge request: cann/pypto!6521 | 2 months ago | |
refactor(operation): Replace GatherInUB magic numbers with named constants Co-authored-by: bynshard<zhangbingshuai@huawei.com> # message auto-generated for no-merge-commit merge: !6589 merge codex/gather-in-ub-remove-magic-number into master refactor(operation): Replace GatherInUB magic numbers with named constants Created-by: bynshard Commit-by: bynshard Merged-by: cann-robot Description: gatherinub 代码中魔鬼数字整改 Related Issue: https://gitcode.com/cann/pypto/issues/3413 See merge request: cann/pypto!6589 | 2 months ago | |
feat(ir): Support dump function attribute Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !6675 merge attr into master feat(ir): Support dump function attribute Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Related Issue: #2559 See merge request: cann/pypto!6675 | 2 months ago | |
feat(Pass): Realign iso pairs only after DualDst fuse pairs are identified Co-authored-by: gggxinmeng<guoxinmeng@huawei.com> # message auto-generated for no-merge-commit merge: !6631 merge aligniso into master feat(Pass): Realign iso pairs only after DualDst fuse pairs are identified Created-by: gggxinmeng Commit-by: gggxinmeng Merged-by: cann-robot Description: https://gitcode.com/cann/pypto/issues/3426 RealignAllocByIso 将 AIV1 侧同构算子按 AIV0 顺序镜像重排,目的是保证DualDst 融合后两核的下发序(内存申请/释放顺序)一致。 同构判定只校验 AIV task 的结构镜像(opcode/shape/签名)。而两核ALLOOC 的执行位置由它消费的数据决定——数据由哪个 AIC task 生产,ALLOC 就排在那个 AIC task 附近。AIC 是单核,一次只跑一个 task,调度时只看依赖和空闲,不存在也不需要"两核同构"的概念:AIV0 依赖的 AIC task 可能排在时间轴前段,AIV1 依赖的排在后段。因此两核的同构配对在各自序列中的位置天然不一致——这不是排序错误,是单核 AIC调度顺序的结果。当两核的前序 AIC task 完全不相交(L0C 输出仅到单 AIV 核)时: - 两 AIV 核 task 结构上依然"同构",iso 配对照常建立; - 但 identify 找不到任何真实融合对——融合要求某个 L0C 输出恰好被分属两核的两个 L0C_COPY_UB 消费,若只有单核消费者,DualDst 实际不会生效; - 原 Realign 在 fuse 判定之前执行,它不知道 ALLOC 的位置由 AIC 调度决定,拿着这批配对按序号盲目镜像,把 AIV1 的 ALLOC 拉离其 AIC依赖所在的位置,破坏了初始排序按数据依赖给出的正确排布。 以 flash_attention case11 为例:task[18](AIV0) 与 task[0](AIV1) 结构同构,但前序 AIC 分别为 {22,24,26,28,30}@7739-13163 和 {3,5,7,9,11}@11931-15783,都是单aiv输出,ub_alloc顺序又aic task决定,序号镜像把 UB_ALLOC[12182] 从全局 602 拉到421、UB_ALLOC[12183] 从 944 拉到 422,与 11823/11822 挤成连续四段ALLOC——AIV0 基准中不存在这种结构。两块 80KB buffer 在远离消费者的位置提前且相邻物化,正值 UB 峰值,spill 回载所需 64KB 无法分配,编译以 F4FFFF(OoO Spill all buffer failed)失败。 现将 RealignAllocByIso 移入 RunDualDstFuse:仅当 identify 确认存在真实融合对(两核确实分食同一 L0C 输出)时才执行重排;fuse 无对时保持初始排序不动。 See merge request: cann/pypto!6631 | 2 months ago | |
feat(platform): Add Platform config Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !6063 merge platformconfig into master feat(platform): Add Platform config Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 背景: 原始的platform信息并沿用了机器层面命名。 本 PR 对平台配置域做概念规范化,统一到三个标准概念: 1. soc_series:原 short_soc_version(ini 键 Short_SoC_version),如 Ascend950; 2. soc_version:芯片分 bin(ini 键 SoC_version,每个 soc_version 一个 ini 文件),如 Ascend950PR_9589; 3. 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!6063 | 2 months ago | |
fix(dfx): Fix crash-path log hang caused by localtime() re-entry Co-authored-by: W4termy<wangmingyang21@huawei.com> # message auto-generated for no-merge-commit merge: !6535 merge fix/logbug_localtime into master fix(dfx): Fix crash-path log hang caused by localtime() re-entry Created-by: W4termy Commit-by: W4termy Merged-by: cann-robot Description: 性能用例批跑时,若线程在 libc 时间转换过程中持有 tzset_lock,此时被信号打断,TerminateHandler 回调打印日志会再次通过 std::localtime() 申请同一把锁,导致线程自我死锁。 修改内容 - 新增私有 log_time.h/.cpp,迁移 dlog 的整数日历换算算法。 - 在启动阶段初始化时区和夏令时配置,并在注册异常处理回调前显式确保初始化完成。 - 日志时间和文件名时间共用换算路径,运行期间不再调用 localtime/localtime_r/tzset。 - 保持原有日志格式、三位毫秒精度及文件名格式不变。 See merge request: cann/pypto!6535 | 2 months ago | |
refactor(operator): Remove tile_fwk_operator library and associated tests. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5704 merge delete_test into master refactor(operator): Remove tile_fwk_operator library and associated tests. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 整改库上代码,删除 framework/src/operator python/tests/st/operator/glm python/tests/st/operator/test_page_attention.py 以及相关涉及文件 See merge request: cann/pypto!5704 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 2 months ago | ||
| 3 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 2 months ago | ||
| 3 months ago |