已合并
新增asc_nop接口 #4081
shaonaite创建于 7月7日
新增asc_nop接口 #4081
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 shaonaite 的贡献)atomgit-bot
7月7日 评论:
7月7日 评论:
变更摘要
此 PR 为 SIMT 设备函数库新增 asc_nop 接口,通过内联汇编实现一个空操作指令,可引入 15 个时钟周期的停顿,用于精确控制指令流水线延迟。
主要改动
asc_nop函数声明:在include/simt_api/device_functions.h中新增__SIMT_DEVICE_FUNCTIONS_DECL__ inline void asc_nop()的前置声明。asc_nop函数实现:在impl/simt_api/device_functions_impl.h中新增asc_nop()的内联实现,通过asm volatile("NOP wait:0b0000000 stall:15"::)执行空操作并停顿 15 个周期。


不准确?
atomgit-bot
7月7日 评论:
7月7日 评论:
7月7日 添加了label:cann-cla/yes
CANN-robot
7月7日 评论:
7月7日 评论:
CANN-robot
7月7日 评论:
7月7日 评论:
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 |
|---|---|---|
| ** | ✅ gcw_kUomxQ2l, wulinyu (2/2) | ✅ gcw_kUomxQ2l (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


7月7日 将zengjuan,zhanghao_0689,wulinyu,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,yangbinhua,zhudi22,chenyiyuan,xun_zhuge,bianque,houyuyang,shi_nanxiang,wuyang_hw,jiangxinyu3,munanhw,ai_xin,ascendhjh,DragonBornHD84,hyolee,gcw_kUomxQ2l,Andy-lb设为评审人
7月7日 将zengjuan,zhanghao_0689,wulinyu,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,yangbinhua,zhudi22,chenyiyuan,xun_zhuge,bianque,houyuyang,shi_nanxiang,wuyang_hw,jiangxinyu3,munanhw,ai_xin,ascendhjh,DragonBornHD84,hyolee,gcw_kUomxQ2l,Andy-lb设为评审人
7月7日 将munanhw,ai_xin,gcw_kUomxQ2l,Andy-lb设为审查人
shaonaite
7月7日 评论:
7月7日 评论:
/compile


7月7日 预合并成功(commit_id: 2fcfc51aaf52df2d915449149c6d332774a92217)
gao_dafa
7月7日 评论:
7月7日 评论:
shaonaite,感谢您的提交,建议在完成PR充分自验证后,再触发线上构建任务。
若您的PR已具备检视条件,可根据下表的责任田,@对应的committer进行代码检视,我们会在第一时间对您的提交进行处理。
代码责任田:
| module | committer |
|---|---|
| adv_api | chenyiyuan, wuyang_hw |
| basic_api | chenyiyuan, wuyang_hw |
| c_api | pangfd, yue_mo_du_qian |
| cmake | xun_zhuge, DragonBornHD84 |
| docs | munanhw, ai_xin |
| examples | changxianyu, bianque |
| simt_api | wulinyu, zhanghao_0689 |
| scripts | xun_zhuge, kevin365 |
| tools | YANXI_ZHAO, XuebinYang, sjtulxh |
💡 如您不确定可以@谁,可以直接@我或者ascend-c sig的maintainer,xun_zhuge和ascendhjh,我们会为您分配合适的committer进行代码检视。
再次感谢您参与CANN的社区贡献。


7月7日 添加了label:ci-pipeline-running
CANN-robot
7月7日 评论:
7月7日 评论:
流水线任务触发成功
任务链接 [6f4898ec84cc4ccb85ea898e8ca3b608][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck | ✅ SUCCESS | >>>>> | |
| codecheck_Pr | ✅ SUCCESS | ||
| pre_comment | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
[2026-07-07 10:46:42] CI执行结束


CANN-robot
7月7日 评论:
7月7日 评论:
CANN-robot
7月7日 评论:
7月7日 评论:
流水线任务触发成功
任务链接 [beba02538ecc40ef8be92a312d0335f8][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| UT_Test_adv_test_one | ✅ SUCCESS | ||
| UT_Test_adv_test_two | ✅ SUCCESS | ||
| UT_Test_basic_test_two | ✅ SUCCESS | ||
| UT_Test_basic_test_three | ✅ SUCCESS | ||
| UT_Test_basic_test_four | ✅ SUCCESS | ||
| UT_Test_basic_test_five | ✅ SUCCESS | ||
| UT_Test_arm | ✅ SUCCESS | ||
| UT_Test_report | ✅ SUCCESS | >>>>> |
[2026-07-07 10:54:55] CI执行结束


7月7日 删除了label:ci-pipeline-running
7月7日 添加了label:ci-pipeline-passed
liulun0308
7月7日 评论:
7月7日 评论:
/approve


7月7日 添加了label:approved
7月7日 添加了label:lgtm
7月7日 合入了pull request
描述
simt新增asc_nop接口
关联的Issue
测试
文档更新
类型标签