Pull Request已成功合入, 合并人@CANN-robot
(感谢 fujun19 的贡献)变更摘要
本 PR 为构建配置更新,适配 dlog 头文件目录迁移,仅修改 cmake/modules/Finddlog.cmake 中 DLOG_HEAD_SEARCH_PATHS 的 CI 编译搜索路径:将 CI 场景下的 dlog 头文件搜索路径由旧的 ${TOP_DIR}/abl/slog/inc/toolchain 更新为 ${TOP_DIR}/runtime/src/dfx/log/inc/toolchain,以匹配迁移后的目录结构,避免 ops-ras 在 CI 编译时仍依赖旧路径。
主要改动
- 更新 CI 编译搜索路径: 在
DLOG_HEAD_SEARCH_PATHS中,将${TOP_DIR}/abl/slog/inc/toolchain替换为${TOP_DIR}/runtime/src/dfx/log/inc/toolchain,使 CI 编译从迁移后的 dlog 头文件目录查找。 - 保留 Ascend 安装目录查找路径: 继续保留
${ASCEND_DIR}/${SYSTEM_PREFIX}/include/toolchain与${ASCEND_DIR}/pkg_inc/base两个搜索路径,兼容现有安装包目录结构,未做改动。


Hi @fujun19, welcome to submitting your first PR to ops-ras!
PR Merge Steps
1. CLA Signing
If the current PR label includes cann-cla/yes, it means you have signed the CLA and can proceed to the next step. If the label includes cann-cla/no, please sign the CLA first. If you have any questions, please refer to the FAQ.
2. CI Check
Please comment /compile to trigger the CI pipeline check. If the CI run is successful, the PR will be tagged with ci-pipeline-passed and you can proceed to the next step. If the CI run fails, the PR will be tagged with ci-pipeline-failed, please check the CI logs to fix the issues in the PR. If you have any questions, please refer to the FAQ.
3. Code Review
After CI passes, please refer to the PR Approval Progress and proactively @ the committers in the table to review the code. After approval, committers will comment /lgtm and /approve. Once the lgtm and approved labels are successfully added, the PR will be merged automatically.


Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/ops-ras | ✅ 於欣洁, 周奇龙 (2/2) | ✅ 於欣洁, 周奇龙 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
fujun19, thanks for your pull request. All authors of the commits have signed the CLA. 👍


流水线任务触发成功
任务链接 [3160fecf045141a087c3ea5eb46d6b8f][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-08-19 11:22:48] CI执行结束


流水线任务触发成功
任务链接 [1532c2bce1ec471ebb1d93b6ac085be4][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> |
[2026-08-19 11:24:49] CI执行结束


@zhou-qilong 适配ops-ras仓dlog头文件cmake路径,麻烦帮忙加分


描述
本次变更适配 dlog 头文件目录调整,更新
cmake/modules/Finddlog.cmake中DLOG_HEAD_SEARCH_PATHS的 CI 编译搜索路径。具体调整:
${TOP_DIR}/abl/slog/inc/toolchain更新为${TOP_DIR}/runtime/src/dfx/log/inc/toolchain。${ASCEND_DIR}/${SYSTEM_PREFIX}/include/toolchain和${ASCEND_DIR}/pkg_inc/base的查找路径,兼容现有安装包结构。该调整用于匹配 dlog 头文件迁移后的目录结构,避免 ops-ras 在 CI 编译时仍依赖旧的
abl/slog路径。关联的Issue
无
测试
已验证构建出包正常,更新后的 dlog 头文件搜索路径可满足编译查找。
文档更新
无
类型标签