| refactor: restructure UT stub files to enable standalone execution without CANN runtime
Co-authored-by: XuebinYang<yangxuebin6@hisilicon.com>
# message auto-generated for no-merge-commit merge:
!117 merge master into master
refactor: restructure UT stub files to enable standalone execution without CANN runtime
Created-by: XuebinYang
Commit-by: XuebinYang
Merged-by: cann-robot
Description:
# Pull Request
## 描述
refactor: restructure UT stub files to enable standalone execution without CANN runtime
Main changes:
- Create stub directory for stub files including acl/acl.h, acl/acl_rt.h, etc.
- Define aclrtTask as void* type to align with real CANN headers
- Update source code to use acl/acl.h instead of rt_sk_intf.h
- Add stub files for securec.h, err_mgr.h, dlog_pub.h, etc.
- Update CMakeLists.txt to adapt to new directory structure
- Fix sk_node.cpp to access aclrtTask members via kernelParams instead of direct access
Enable UT to run independently without depending on CANN runtime libraries
## 变更类型
请选择本次引入的变更类型:
<!-- [x] 表示选中 -->
- [ ] 🐛 Bug 修复
- [ ] ✨ 新功能
- [ ] 💄 代码风格更新(格式化,局部变量)
- [x] ♻️ 重构(既不修复错误也不增加功能的代码变动)
- [ ] 📦 构建过程或辅助工具的变动
- [ ] 📝 文档内容更新
## 关联的Issue
<!-- 如果这个PR是为了解决特定的Issue,请在当前页面的右侧'关联Issue'部分添加相应Issue链接,并勾选'合并后关闭已关联的 Issue'选项。 -->
## 如何测试
描述测试此变更的步骤和前提条件:
1.
2.
## 核对清单
<!-- [x] 表示选中 -->
- [x] 我的代码遵循了项目的代码风格
- [x] 我已对代码进行了自测
- [x] 我已更新了相关的文档
- [x] 我在标题中使用了合适的类型标签(如:feat:, fix:)
- [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等
## 其他信息
在此添加任何其他关于本次 PR 的说明。
See merge request: cann/graph-autofusion!117 | 2 个月前 |