| Files | Last commit | Last update |
|---|---|---|
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(machine): Add option to control memory reuse of workspace Co-authored-by: duanhaotian<duanhaotian@huawei.com> # message auto-generated for no-merge-commit merge: !5427 merge duanhaotian13 into master feat(machine): Add option to control memory reuse of workspace Created-by: duanhaotian Commit-by: duanhaotian Merged-by: cann-robot Description: ## 改造后:精细 Workspace 总体流程 改造后保留 max_workspace_kb 粗调模式,同时新增 actual_stitch_function_num=[d0,d1,d2] 精细模式。两个模式共用需求收集、memBudget、序列化、Host 申请和 Device allocator,只在容量决策方式上分流。 mermaid flowchart TD Config["配置<br/>max_workspace_kb<br/>actual_stitch_function_num=[d0,d1,d2]"]:::added Load["LoadRuntimeWorkspaceConfig<br/>长度/范围校验并映射三个 depth"]:::added Collect["复用原有需求收集<br/>WorkspaceDesc"]:::legacy Mode{"数组是否为 [0,0,0]"}:::decision Coarse["保留原有 max_workspace_kb / 统一 k_eff 路径"]:::legacy Validate{"每个非空池是否至少支持一个 RootFunction"}:::decision Precise["独立计算三个池容量<br/>CalculatePreciseWorkspaceLayout"]:::added Apply["ResolveStitchDepthConfig<br/>ApplyStitchDepthConfig"]:::added Budget["memBudget.tensor 最终容量<br/>+ workspaceControl 单位需求与深度"]:::added Encode["DevProg 两遍编码并序列化"]:::legacy Dynamic["动态 Shape 求值更新 MaxOutcastMem<br/>深度和池 Slot 数不重算"]:::added HostAlloc["Host 按 memBudget.Total() 申请 Workspace"]:::legacy Init["DeviceWorkspaceAllocator::InitTensorAllocators"]:::legacy Pools["注册原有四池<br/>容量来自精细预算结果"]:::legacy Preflight{"当前 Root 追加前精确预检"}:::decision Alloc["真实申请并绑定地址"]:::legacy Observe["采集三个精细池 current/peak"]:::added Submit["内存不足或原有边界触发 Submit"]:::added Tuning["窗口日志、Launch 汇总和推荐 depth"]:::added Recycle["回收当前窗口并重置窗口峰值"]:::added Config -.-> Load Collect --> Mode Load -.三个 depth.-> Mode Mode -->|是| Coarse Mode -->|否| Validate Validate -->|通过| Precise Validate -->|失败| Error["编码期报错"]:::decision Coarse --> Apply Precise -.-> Apply Collect --> Apply Apply -.-> Budget Budget --> Encode --> Dynamic --> HostAlloc --> Init --> Pools --> Preflight Preflight -->|通过| Alloc --> Observe --> Preflight Preflight -->|失败且窗口非空| Submit Preflight -->|失败且窗口为空| RuntimeError["单个 Root 无法容纳,运行时报错"]:::decision Alloc -->|控制流/硬阈值| Submit Submit --> Tuning --> Recycle --> Preflight classDef legacy fill:#f5f5f5,stroke:#666,stroke-width:1px,color:#222 classDef added fill:#e6f4ff,stroke:#1677ff,stroke-width:3px,color:#102a43 classDef decision fill:#fff7e6,stroke:#d46b08,stroke-width:2px,color:#5c2b00 ### 总体前后差异 | 维度 | 改造前 | 改造后 | |---|---|---| | 外部控制 | max_workspace_kb 总量粗调 | 保留粗调;新增三池 depth 数组 | | 模式启用 | 根据总预算和 Stitch 上限求统一深度 | [0,0,0] 走粗调;任一非零走精细模式 | | 三池容量 | 同一个 k_eff 同步放大 | 三个 depth 独立计算 | | max_workspace_kb | 作为粗调总量依据 | 精细模式下不再截断用户指定的三池容量 | | Boundary Outcast | 拓扑固定 | 仍拓扑固定,不对外精细控制 | | Runtime allocator | 原有四池 | 复用原有四池,无新池 | | 运行时观测 | 无三池闭环推荐 | Window/Launch 峰值、推荐 depth、depth 内存影响 | | 热路径成本 | 无新增采样 | 由 ENABLE_PROFILE_GUIDED 编译期开关隔离 | | 追加前预检 | 聚合 Slot 粗估,失败原因不明确 | 按 Exclusive、InnerTemporal 和 RuntimeItem 分项预检 | | 内存不足处理 | 已有失败后 Submit/重试框架 | 保留框架,增加原因、空窗口保护和更准确预测 | --- See merge request: cann/pypto!5427 | 2 months ago | |
fix(machine): DRCORE balanced scheduling Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !6627 merge br_ctu into master fix(machine): DRCORE balanced scheduling Created-by: wan_jianfen Commit-by: wan_jianfen 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!6627 | 1 month ago | |
fix(machine): fix mismatch and incomplete error descriptions in machine and misc files Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5806 merge pyptolog_fix3 into master fix(machine): fix mismatch and incomplete error descriptions in machine and misc files Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: machine 日志内容整改 See merge request: cann/pypto!5806 | 2 months ago | |
refactor(build): Replace hardcoded paths with CMake imported targets Co-authored-by: wangmingjun<wangmingjun13@huawei.com> # message auto-generated for no-merge-commit merge: !5147 merge header-deps into master refactor(build): Replace hardcoded paths with CMake imported targets Created-by: hwwangmingjun Commit-by: wangmingjun Merged-by: cann-robot Description: 为实现全量源码构建场景(issue #2573),将 CMake 构建系统中对 cann-toolkit 头文件、库文件的硬编码路径依赖(ASCEND_CANN_PACKAGE_PATH) 替换为 CMake imported targets,通过 find_cann_package 查找 acl_rt、ascend_hal、hcomm/hccl、runtime、atrace、slog 等依赖。 Changes: - 顶层 CMakeLists.txt 增加 acl_rt、ascend_hal、hcomm、hccl、runtime 的 find_cann_package 调用,并处理 hcomm_headers 别名 - cmake/device/CMakeLists.txt 增加 ascend_hal、atrace、hcomm/hccl、slog 的依赖查找 - adapter/machine/device 各 CMakeLists.txt 移除硬编码 include/link 目录,改用 target_link_libraries 引用 imported targets - c_sec 安装改用 $<TARGET_FILE> 生成表达式,头文件安装改用 $<TARGET_PROPERTY> - version.cmake 增加 runtime、hcomm 的构建依赖声明 Related Issues: #2573 See merge request: cann/pypto!5147 | 3 months ago | |
feat(machine): Change aicpu kernel launch method Co-authored-by: wan_jianfen<wanjianfen@hisilicon.com> # message auto-generated for no-merge-commit merge: !5045 merge br_aicpuKernelLaunch into master feat(machine): Change aicpu kernel launch method Created-by: wan_jianfen Commit-by: wan_jianfen Merged-by: cann-robot Description: 改变kernel_launch 接口,更换成acl 接口 See merge request: cann/pypto!5045 | 3 months ago |
| Files | Last commit | Last update |
|---|---|---|
| 4 months ago | ||
| 4 months ago | ||
| 2 months ago | ||
| 1 month ago | ||
| 2 months ago | ||
| 3 months ago | ||
| 3 months ago |