Commits/
refactor(ccu): always build HComm runtime backend
Co-authored-by: yuaner1057<zengjiayuan1@h-partners.com> # message auto-generated for no-merge-commit merge: !388 merge ccu-launch-migration into master refactor(ccu): always build HComm runtime backend Created-by: yuaner1057 Commit-by: yuaner1057 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> 移除 CCU Runtime 的 HComm backend 构建开关 ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [ ] 性能优化 / Performance - [x ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ x] 单元测试通过 / UT passed - [x ] 集成测试通过 / ST passed - [ x] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [x ] 代码符合规范 / Code follows style guide - [ x] 测试添加并通过 / Tests added and passed - [ x] 文档已更新 / Docs updated if needed - [ x] 无硬编码敏感信息 / No secrets hardcoded - [ x] 提交信息符合规范 / Commit message follows convention See merge request: cann/asc-comm!388
3 file(s) changed+15-64
Mscripts/package/build_package.sh+1-5
@@ -145,16 +145,12 @@ find_ccu_libraries()
145 -DCANN_3RD_LIB_PATH="${PROJECT_ROOT}/third_party" \145 -DCANN_3RD_LIB_PATH="${PROJECT_ROOT}/third_party" \
146 -DCMAKE_BUILD_TYPE=Release \146 -DCMAKE_BUILD_TYPE=Release \
147 -DASCCOMM_BUILD_CCU=ON \147 -DASCCOMM_BUILD_CCU=ON \
148- -DASCCOMM_BUILD_CCU_RUNTIME=ON \148+ -DASCCOMM_BUILD_CCU_RUNTIME=ON
149- -DASCCOMM_BUILD_CCU_RUNTIME_HCOMM_BACKEND=ON
150 149 
151 cmake --build "${build_dir}" --target asccomm_ccu ccu_runtime150 cmake --build "${build_dir}" --target asccomm_ccu ccu_runtime
152 [[ -f "${library}" ]] || fail "CCU library was not built: ${library}"151 [[ -f "${library}" ]] || fail "CCU library was not built: ${library}"
153 [[ -f "${runtime_library}" ]] || \152 [[ -f "${runtime_library}" ]] || \
154 fail "CCU runtime library was not built: ${runtime_library}"153 fail "CCU runtime library was not built: ${runtime_library}"
155- grep -q '^ASCCOMM_BUILD_CCU_RUNTIME_HCOMM_BACKEND:BOOL=ON$' \
156- "${build_dir}/CMakeCache.txt" || \
157- fail "CCU runtime was built without the HComm backend: ${runtime_library}"
158 CCU_LIBRARY="${library}"154 CCU_LIBRARY="${library}"
159 CCU_RUNTIME_LIBRARY="${runtime_library}"155 CCU_RUNTIME_LIBRARY="${runtime_library}"
160}156}
Msrc/ccu/experimental/CMakeLists.txt+13-21
Msrc/ccu/experimental/ccu_runtime_backend.cpp+1-38

Comments