已合并
fix clock ut fail #1039
ruoshuisixue创建于 3月20日
fix clock ut fail #1039
已合并
ruoshuisixue创建于 3月20日
已删除 :cherry-pick-mr-913-1773970496066-auto合入到cann/asc-devkit9.0.0
ruoshuisixue成员
3月20日

描述

fix clock ut fail

关联的Issue

测试

文档更新

类型标签

  • 🐛 fix: Bug 修复
  • ✨ feat: 新功能
  • ⚡ perf: 性能优化
  • ♻️ refactor: 代码重构
  • 🧪 test: 新增或修改测试
  • 📝 docs: 文档更新
  • 🔧 ci: CI/CD 配置修改
  • ↩️ revert: 回退
  • 🧹 chore: 其他,请具体描述
likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 ruoshuisixue 的贡献)
Rruoshuisixue成员
3月20日 创建了 pull request,commit 6a4e6036
CANN-robot
CANN-robot成员
3月20日 评论:

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
include/simt_api zhanghao_0689, wulinyu (2/2) zhanghao_0689 (1/1)
repo-cann/asc-devkit zhanghao_0689, wangxiaozhi, wulinyu (3/2) zhanghao_0689, wangxiaozhi (2/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robot成员
3月20日 将zengjuan,zhanghao_0689,yanqingshang,wulinyu,zhuliangying,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,wqtshg_wt,yangbinhua,gao_dafa,chenyiyuan,xun_zhuge,ookkkkoo1122,bianque,houyuyang,shi_nanxiang,wuyang_hw,ascendhjh,DragonBornHD84,jiangZD设为评审人
CANN-robotCANN-robot成员
3月20日 添加了label:cann-cla/yes
CANN-robotCANN-robot成员
3月20日 将zengjuan,zhanghao_0689,yanqingshang,wulinyu,zhuliangying,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,wqtshg_wt,yangbinhua,gao_dafa,chenyiyuan,xun_zhuge,ookkkkoo1122,bianque,houyuyang,shi_nanxiang,wuyang_hw,ascendhjh,DragonBornHD84,jiangZD设为审查人
CANN-robot
CANN-robot成员
3月20日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
CANN-robot
CANN-robot成员
3月20日 评论:

问题/功能描述

本次PR旨在增强代码在不同编译环境下的适应性和灵活性。具体为,在定义了 ASCENDC_CPU_DEBUG 宏的CPU调试场景下,通过条件编译禁用 __asc_simt_vf 命名空间内的 clock 函数,以避免可能出现的编译或链接问题。

修改方案描述

修改方案是在头文件 __asc_simt_vf 命名空间的 clock 函数定义周围,添加 #ifndef ASCENDC_CPU_DEBUG#endif 条件编译指令。当未定义该宏时,函数实现保持不变;当定义该宏时,该函数定义将被排除在编译单元之外。此修改仅作用于编译预处理阶段,不改变原有函数的逻辑或运行时行为。

likedislike
Rruoshuisixue成员
3月20日 update merge request[project id: 8547062, iid: 1039, commit_id: 11bae4f4d29b3996426b404c3555065706ce03f8] virtual merging success
Rruoshuisixue成员
3月20日 强制推送  1 个提交:5798d58a-fix clock ut fail
Rruoshuisixue成员
3月20日 update merge request[project id: 8547062, iid: 1039, commit_id: 52eef383ded81fec07ce5567aa3f322f8d2bc48b] virtual merging success
CANN-robot
CANN-robot成员
3月20日 评论:

🔵 source code change are detected, tasks labels is removed in this pull request!

likedislike
ruoshuisixue成员
3月20日 评论:

/compile

likedislike
CANN-robotCANN-robot成员
3月20日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
3月20日 评论:

流水线任务触发成功
任务链接 [8c1eff8345c84a04b5a8a86ff2293c2f][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
codecheck ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
UT_Test_3 ✅ SUCCESS
UT_Test_2 ✅ SUCCESS
UT_Test_1 ❌ FAILED
UT_Test ✅ SUCCESS
API_Check ⚪ ABORTED >>>>>
UT_Test_report ⚪ ABORTED >>>>>

[2026-03-20 10:02:44]    CI执行失败

likedislike
CANN-robotCANN-robot成员
3月20日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
3月20日 添加了label:ci-pipeline-failed
ruoshuisixue成员
3月20日 评论:

/compile

likedislike
CANN-robotCANN-robot成员
3月20日 删除了label:ci-pipeline-failed
CANN-robotCANN-robot成员
3月20日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
3月20日 评论:

流水线任务触发成功
任务链接 [1155ecc34bf143a99c14fb6362b66ff1][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
codecheck ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
UT_Test_3 ✅ SUCCESS
UT_Test_2 ✅ SUCCESS
UT_Test_1 ✅ SUCCESS
UT_Test ✅ SUCCESS
UT_Test_report ✅ SUCCESS >>>>>

[2026-03-20 16:35:33]    CI执行结束

likedislike
CANN-robotCANN-robot成员
3月20日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
3月20日 添加了label:ci-pipeline-passed
wulinyu成员
3月21日 评论:

/lgtm

likedislike
wangxiaozhi成员
3月21日 评论:

/approve

likedislike
zhanghao_0689
zhanghao_0689成员
3月23日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
3月23日 添加了label:lgtmapproved
CANN-robot
CANN-robot成员
3月23日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: zhanghao_0689, wangxiaozhi.
Reviewers who wrote a comment of /lgtm are: zhanghao_0689, wulinyu, wangxiaozhi.

likedislike
CANN-robotCANN-robot成员
3月23日 合入了pull request