Merged
fix: 修复 hashtable lookup 样例链接数学库 #7138
fix: 修复 hashtable lookup 样例链接数学库 #7138
Merged
liuyi424Add on 24 days ago
liuyi424
liuyi424Collaborators
24 days ago

描述

hashtable_lookup 样例在构建产物中使用 std::unordered_map / std::unordered_set,其 rehash() 模板实例会间接引用 ceil。在当前 CANN 9.3.0 + dav-3510 环境下,ASC 链接命令不会自动链接数学库,导致链接阶段报错:

ld.lld: error: undefined symbol: ceil

为样例目标显式链接 m,补齐 ceil 的符号解析。

关联的Issue

无

测试

CANN 9.3.0、dav-3510验证:

  • 修复前:SCENARIO_NUM=0/1/2/3 均在链接阶段失败,错误一致为 undefined symbol: ceil
  • 修复后:SCENARIO_NUM=3 构建通过,链接命令包含 -lm
  • 修复后运行 ./hashtable_lookup,输出 [Success] Case accuracy verification passed.

文档更新

无

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for liuyi424's contribution.)
liuyi424liuyi424Collaborators
24 days ago Created pull request, commit b5ce1d33
CANN-robotCANN-robotCollaborators
24 days ago Added label: cann-cla/no
CANN-robot
CANN-robotCollaborators
24 days ago Comments:

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.
You can self-configure the PR merge rules for this repository. For more details, please refer to 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
examples ✅ ai_xin, louyuxuan (2/2) ✅ ai_xin (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
24 days ago Set zengjuan,zhanghao_0689,suqwe,wulinyu,kong0808,dengjing_aoe,YeZZzzz1,bluesky901,yangbinhua,zhudi22,chenyiyuan,xun_zhuge,XuebinYang,sjtulxh,bianque,houyuyang,Lycheeeee,YANXI_ZHAO,chentianyu19,shi_nanxiang,wuyang_hw,jiangxinyu3,munanhw,ai_xin,ascendhjh,hujiawen_kaven,wangxiaozhi,DragonBornHD84,louyuxuan,changxianyu,hyolee,yukangchen as approver
CANN-robotCANN-robotCollaborators
24 days ago Set xun_zhuge,bianque,YANXI_ZHAO,munanhw,ai_xin,ascendhjh,changxianyu as approver
liuyi424liuyi424Collaborators
24 days ago Modify description of pull request
liuyi424
liuyi424Collaborators
24 days ago Comments:

/check-cla

likedislike
CANN-robot
CANN-robotCollaborators
24 days ago Comments:

CLA检查未通过,详情可参考这里

likedislike
liuyi424liuyi424Collaborators
24 days ago Pre merge succeeded (commit_id: 71442c1bca915f6f89b2231dd322a6e18c90471b)
liuyi424liuyi424Collaborators
24 days ago Force-pushed 1 commits:765808ad-fix: 修复 hashtable lookup 链接数学库
liuyi424liuyi424Collaborators
24 days ago Pre merge succeeded (commit_id: 78ca7e8b72abd95ce3815861196ecff72c444eb3)
CANN-robotCANN-robotCollaborators
24 days ago Removed label: cann-cla/no
CANN-robotCANN-robotCollaborators
24 days ago Added label: cann-cla/yes
liuyi424
liuyi424Collaborators
24 days ago Comments:

compile

likedislike
liuyi424liuyi424Collaborators
24 days ago Pre merge succeeded (commit_id: 3564450c2abd8a9693093093daba5e5b828c0f38)
CANN-robot
CANN-robotCollaborators
24 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
24 days ago Added label: ci-pipeline-running
11 event messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
24 days ago Added label: ci-pipeline-passed
liuyi424
liuyi424Collaborators
24 days ago Comments:

compile

likedislike
liuyi424liuyi424Collaborators
24 days ago Pre merge succeeded (commit_id: 3f57e03ac9a2447e19be48949d0435c48a2042f5)
CANN-robot
CANN-robotCollaborators
24 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
24 days ago Removed label: ci-pipeline-passed
CANN-robotCANN-robotCollaborators
24 days ago Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
24 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
24 days ago Added label: ci-pipeline-passed
louyuxuan
louyuxuanCollaborators
24 days ago Comments:

/lgtm

likedislike
ai_xin
ai_xinCollaborators
24 days ago Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
24 days ago Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
24 days ago Merged pull request