已合并
refactor: 替换 rt 内部接口为 rt包间接口和aclrt 对外接口 #3313
tangqunzhang创建于 6月2日
refactor: 替换 rt 内部接口为 rt包间接口和aclrt 对外接口 #3313
已合并
tangqunzhang创建于 6月2日
tangqunzhang成员
6月2日

Pull Request

描述

将 GE 项目中使用的 rt 内部接口(如 rtMalloc、rtFree、rtStreamCreate、rtKernelLaunch 等)统一替换为 aclrt 对外公开接口(如 aclrtMalloc、aclrtFree、aclrtCreateStream、aclrtLaunchKernel 等),提升接口规范性,消除对内部头文件的依赖。

主要变更:

  • 替换 runtime 层 rt 内部接口调用为 aclrt 对外接口
  • 替换 compiler 层 rt 内部接口调用为 aclrt 对外接口
  • 替换 base 公共模块中的 rt 内部接口调用
  • 更新对应的 UT/ST 测试用例适配新接口
  • 清理不再需要的 rt 内部头文件引用

变更类型

关联的Issue

如何测试

  1. 编译 GE 项目,确认无编译错误
  2. 运行 UT/ST 测试用例,确认功能正常

核对清单

其他信息

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 tangqunzhang 的贡献)
Ttangqunzhang成员
6月2日 添加了label:enhancement
Ttangqunzhang成员
6月2日 创建了 pull request,commit 1f30f628
CANN-robotCANN-robot成员
6月2日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
6月2日 评论:

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


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
compiler/engines/cpu_engine yuht9, 刘伟, kobemini (3/2) 刘伟 (1/1)
compiler/engines/dvpp_engine 王涛, kobemini, yuht9 (3/2) 王涛 (1/1)
compiler/engines/ffts_engine lijunyu_111, kobemini, yuht9 (3/2) lijunyu_111 (1/1)
compiler/engines/hccl_engine yuht9, dingweiqin_57, kobemini (3/2) dingweiqin_57 (1/1)
compiler/engines/nn_engine lijunyu_111, kobemini, yuht9 (3/2) lijunyu_111 (1/1)
compiler/engines/rts_engine 王涛, kobemini, yuht9 (3/2) 王涛 (1/1)
compiler/opcompiler lijunyu_111, kobemini, yuht9 (3/2) lijunyu_111 (1/1)
repo-cann/ge 王涛, yuht9, kobemini (3/2) 王涛 (1/1)
tests/engines/ffts_engine yuht9, lijunyu_111, kobemini (3/2) lijunyu_111 (1/1)
tests/engines/hccl_engine dingweiqin_57, kobemini, yuht9 (3/2) dingweiqin_57 (1/1)
tests/engines/nn_engine lijunyu_111, kobemini, yuht9 (3/2) lijunyu_111 (1/1)
tests/engines/rts_engine yuht9, 王涛, kobemini (3/2) 王涛 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

tangqunzhang, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
tangqunzhang成员
6月2日 评论:

compile

likedislike
此处折叠了473条消息 查看更多
57_Viking
57_Viking成员
6月18日 评论:

/approve

likedislike
李俊谕成员
6月18日 评论:

/approve

likedislike
王涛成员
6月18日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
6月18日 添加了label:approved
CANN-robotCANN-robot成员
6月18日 合入了pull request