| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
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 个月前 | |
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 个月前 | |
feat(pass): Add slice contract feature for pass with some cases Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !5568 merge slice5close into master feat(pass): Add slice contract feature for pass with some cases Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: PR描述 1.背景 历史实现中,OP_VIEW 和 OP_ASSEMBLE 同时承担两类语义: 视图转换语义:描述 tensor 的 shape、offset、dyn offset、dyn valid shape 等逻辑视图关系。 搬运语义:在 tile graph 后段被 GenerateMoveOp 转换为 copy in / copy out 等真实搬运操作。 本需求将这两类语义拆开: OP_VIEW / OP_ASSEMBLE:保留为视图语义,表达逻辑视图关系。 OP_SLICE / OP_CONTRACT:表达搬运语义,分别对应原 copy in 方向和 copy out 方向的 tile 级搬运描述。 在 ExpandFunction 阶段,原先需要展开的 VIEW/ASSEMBLE 会被展开为 tile 级的 SLICE/CONTRACT。后续 tile graph pass 不能再默认 VIEW/ASSEMBLE 一定会生成真实搬运,而需要按新语义区分: 优化、合并、图结构分析类 pass 需要识别 view-like 和 assemble-like 两组 opcode。 内存推导和 move 生成类 pass 应以 SLICE/CONTRACT 作为真实搬运入口。 本设计覆盖 PVC2_OOO 策略中从 MergeViewAssemble 到 GenerateMoveOp 的相关 pass。 2.. 目标与非目标 2.1 目标 支持 ExpandFunction 后图中出现 OP_SLICE/OP_CONTRACT,并保证后续 pass 能正确识别、合并、拆分、分区和生成 move op。 将原来依赖 OP_VIEW/OP_ASSEMBLE 的搬运逻辑迁移到 OP_SLICE/OP_CONTRACT。 保留 OP_VIEW/OP_ASSEMBLE 的视图表达能力,避免把纯视图语义误转成 copy。 保持现有 offset、dyn offset、dyn valid shape、scope、atomic RMW 属性等关键信息在 pass 改写中正确传递。 兼容原有 pass 中 view/assemble 链路优化能力,使其覆盖 slice/contract 场景。 2.2 非目标 不改变用户侧 API 的 view/assemble 表达方式。 不改变 copy op 的最终执行语义。 不在 GenerateMoveOp 中继续把普通 OP_VIEW/OP_ASSEMBLE 当作搬运入口。 不引入新的 attribute 类型;OP_SLICE 复用 ViewOpAttribute,OP_CONTRACT 复用 AssembleOpAttribute。 2.3 相关验证 MergeViewAssemble UT:覆盖 view-view、slice-view、view-slice、assemble-contract 等链路合并,验证合并后 opcode 和 attribute 正确。 SplitReshape UT:覆盖 contract -> reshape -> slice、reduce_acc 前驱跳过、动态 shape 变轴跳过。 SplitLargeFanoutTensor UT:覆盖大 fanout 中 assemble-like producer 和 view-like consumer 的拆分、offset 更新和冗余删除。 AssignMemoryType UT:覆盖 slice/contract 的 original、requirement、convert 改写、LiteNPU reshape 特殊路径。 RemoveRedundantOp UT:覆盖 view/assemble-like perfect match、partial match、multi-contract-single-slice、single-contract-multi-slice。 ProcessAtomic UT:覆盖 AtomicRMW 属性下沉到 contract、offset 累加、VecDup 分支删除。 GraphPartition 与 IntraSubgraphAdapter UT:覆盖跨子图边界插入 slice/contract,以及 legacy view/assemble memory 不一致时的原地改写。 GenerateMoveOp UT:验证 OP_SLICE/OP_CONTRACT 正确生成 copy in/out,且普通 OP_VIEW/OP_ASSEMBLE 不再作为 move 入口。 See merge request: cann/pypto!5568 | 3 个月前 | |
fix(simulation): Fix null deref in PvModelFactory and OOB in ParseDynTopo Co-authored-by: zhiweiyuan<zhiweiyuan@huawei.com> # message auto-generated for no-merge-commit merge: !5506 merge fix/simulation-null-deref-and-oob into master fix(simulation): Fix null deref in PvModelFactory and OOB in ParseDynTopo Created-by: zhiweiyuan Commit-by: zhiweiyuan Merged-by: cann-robot Description: fix(simulation): Fix null deref in PvModelFactory and OOB in ParseDynTopo Two defensive coding fixes in the cost model simulation module to prevent undefined behavior from unvalidated external inputs. Changes: - Add null check for dlsym return value in PvModelFactory::CreateDyn, throw runtime_error if symbol not found - Parameterize soPath in CreateDyn for testability, default value preserves existing behavior - Validate fields vector size before indexed access in CostModelAgent::ParseDynTopo, skip invalid lines - Add unit test for ParseDynTopo with insufficient fields and dlsym null check Closes #3011, #3021 See merge request: cann/pypto!5506 | 3 个月前 | |
fix(machine): Add aicore-resolve macro Co-authored-by: huanglu<huanglu22@hisilicon.com> # message auto-generated for no-merge-commit merge: !5549 merge master into master fix(machine): Add aicore-resolve macro Created-by: lululu40888 Commit-by: huanglu Merged-by: cann-robot Description: fix(machine): Add aicore-resolve macro See merge request: cann/pypto!5549 | 3 个月前 | |
fix(machine): Add aicore-resolve macro Co-authored-by: huanglu<huanglu22@hisilicon.com> # message auto-generated for no-merge-commit merge: !5549 merge master into master fix(machine): Add aicore-resolve macro Created-by: lululu40888 Commit-by: huanglu Merged-by: cann-robot Description: fix(machine): Add aicore-resolve macro See merge request: cann/pypto!5549 | 3 个月前 | |
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 个月前 | |
fix(pass): Fix copyin attr for assemble condition Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !5440 merge issue0813 into master fix(pass): Fix copyin attr for assemble condition Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: 变更摘要 修复了 RemoveRedundantAssemble 优化 pass 中,Reshape 输入张量被 Assemble/CopyOut 场景重写时 offset 及 CopyIn 属性未同步刷新的问题。核心做法是新增辅助函数以统一更新 Reshape 输入张量的偏移,并在处理 CopyOut 与 Reshape 重排后,同步修正下游 CopyIn 消费者的 fromOffset 与 rawShape;同时在 Assemble op 未被删除时提前跳过 offset 下推,避免对 CopyOut 产生错误更新,并补充了对应单元测试。 主要改动 新增 UpdateReshapeInputOffset 函数: 校验最终动态 offset 与 reshapeInput 形状维数一致后,调用 UpdateOffset 刷新 Reshape 输入张量的偏移。 新增 UpdateCopyInOffsetAfterReshapeInput 函数: 遍历 reshapeInput 的消费者,对其中未删除的 CopyIn op 依据重排前后的形状重新计算 fromOffset,并更新其 fromOffset 与 rawShape。 调整 UpdateCopyOutBeforeReshape: 将属性转换改为 dynamic_pointer_cast<CopyOpAttribute> 并在转换失败时返回 FAILED,同时在更新 CopyOut 后调用上述两个新函数刷新 reshapeInput 的 offset 及 CopyIn 属性。 调整 HandleReshapeToAssemble: 增加 assembleOp.IsDeleted() 判断,当 Assemble op 未被删除时记录日志并提前返回,不再向 CopyOut 推送 offset。 新增单元测试 TestRemoveRedundantAssembleRefreshesReshapeInputOffset: 验证 CopyOut 的 toOffset、reshapeInput 的静态/动态 offset 以及相关张量 rawShape 在 Reshape 重排后的最终取值。 See merge request: cann/pypto!5440 | 3 个月前 | |
feat(platform): Add 950DT 9581 config Co-authored-by: 2501_92924845<niulinkai@huawei.com> # message auto-generated for no-merge-commit merge: !5413 merge platmaster into master feat(platform): Add 950DT 9581 config Created-by: 2501_92924845 Commit-by: 2501_92924845 Merged-by: cann-robot Description: PR修改内容 为 Ascend 平台框架新增 ASCEND_950DT_9581 和 ASCEND_950DT_9581X 两种设备平台的支持,包括平台枚举定义、字符串映射、SoC 版本映射、仿真平台 INI 配置文件以及对应的单元测试覆盖。 主要改动 新增平台枚举值:在 platform.h 的 DPlatform 枚举中添加 ASCEND_950DT_9581 和 ASCEND_950DT_9581X,并在 StringToDpaltform 函数中注册对应的字符串映射 "ASCEND_950DT_9581" 和 "ASCEND_950DT_9581X" 新增仿真平台配置文件:分别添加 950DT_9581.ini 和 950DT_9581x.ini(各 418 行),包含 [version]、[DieInfo]、[SoCInfo]、[AICoreSpec]、[AICoreMemoryRates]、[DtypeMKN]、[CPUCache]、[AICoreintrinsicDtypeMap]、[VectorCoreSpec]、[VectorCoreMemoryRates] 和 [VectorCoreintrinsicDtypeMap] 等完整配置节,定义了 32 核 AI Core(cube/vector 分别为 32/64 核)的硬件参数和 intrinsic 数据类型映射 补充 SoC 版本映射:在 simulation_platform.cpp 的 DPlatformToSocVersion 中新增 ASCEND_950DT_9581 → "950DT_9581" 和 ASCEND_950DT_9581X → "950DT_9581x" 的映射关系 增加单元测试覆盖:在 test_device_platform_config.cpp 中新增 StringToDpaltformAllMappings 测试用例的两个断言、ConfigGetDevicePlatformChain 测试用例的两个平台配置验证、以及 INIParserLoadsNew950DT9581Config 和 INIParserLoadsNew950DT9581xConfig 两个独立测试用例,验证 INI 解析器能正确加载新平台的 ubSize、l0cSize 和 npuArchInfo 等关键配置项 See merge request: cann/pypto!5413 | 3 个月前 | |
refactor(build): Remove link paths and include paths under ASCEND_CANN_PACKAGE_PATH. Co-authored-by: Feiteng Zheng<zhengfeiteng1@h-partners.com> # message auto-generated for no-merge-commit merge: !5310 merge 20260728-intf-pub-2 into master refactor(build): Remove link paths and include paths under ASCEND_CANN_PACKAGE_PATH. Created-by: zhengfeiteng Commit-by: Feiteng Zheng Merged-by: cann-robot Description: 头文件搜索路径中去除对cann包安装路径的直接引用。 构建不允许直接搜索cann包安装路径下的头文件,需要通过target_link_libraries链接依赖库,导入相关的头文件搜索路径。链接路径(target_link_directories)同理。 - setup.py编译pypto相关库时,限定install范围为pypto组件。 Related Issue: #2573 See merge request: cann/pypto!5310 | 3 个月前 | |
feat(machine): Add tile_fwk_adapter and adjust tile_fwk_runtime to tile_fwk_adapter Co-authored-by: arthur_morgan_hw<lipeijie@huawei.com> # message auto-generated for no-merge-commit merge: !2296 merge br_adapter into master feat(machine): Add tile_fwk_adapter and adjust tile_fwk_runtime to tile_fwk_adapter Created-by: arthur_morgan_hw Commit-by: arthur_morgan_hw Merged-by: cann-robot Description: 1、新增adapter组件,对接runtime,acl,hccl,msprof和drv 2、runtime组件已有调用cann的接口全部调用adapter接口 See merge request: cann/pypto!2296 | 7 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 7 个月前 |