已合并
Add DISABLE_THREAD_AFFINITY_ERROR_LOG #47
AtomGit-Bot创建于 2025年6月16日
Add DISABLE_THREAD_AFFINITY_ERROR_LOG #47
已合并
AtomGit-Bot创建于 2025年6月16日
从refs/pull/47/head合入到openEuler-24.03-LTS-SP2
AtomGit-Bot
2025年6月16日

https://gitee.com/src-openeuler/AI4C/issues/ICFDUD?from=project-issue

描述

onnxruntime会调用pthread_setaffinity_np绑核以减少线程调度,但在容器场景下,容器如何存在绑核就会导致pthread_setaffinity_np调用失败(绑定的核不在容器的可访问的范围内, 不影响功能),该问题在社区一直有issue存在,但没有很好的解决,我们这里通过增加一个宏来支持关闭这块log的打印,减少用户使用该功能时候的影响,对比修改前功能不影响,对于性能这块无明显影响,

https://gitee.com/openeuler/AI4C/blob/master/third_party/onnxruntime/onnxruntime/core/platform/posix/env.cc#L254

测试

使能前
输入图片说明

使能后
输入图片说明

likedislike
Pull Request已成功合入, 合并人@
(感谢 AtomGit-Bot 的贡献)
AAtomGit-Bot
2025年6月16日 指派了测试人openeuler-ci-bot
AAtomGit-Bot
2025年6月16日 指派了 openeuler-ci-bot 参与评审
AtomGit-Bot
2025年6月16日 评论:

当前仓库存在以下 保护分支 :

Protected Branch Version Release
master 1.0.4 5
openEuler-22.03-LTS-SP4 0.2.0 3
openEuler-24.03-LTS-Next 1.0.4 5
openEuler-24.03-LTS-SP1 1.0.4 3
* openEuler-24.03-LTS-SP2 1.0.4 7
openEuler-25.03 1.0.4 5

评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作

注意:

  1. /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
  2. 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭
likedislike
openeuler-ci-botopeneuler-ci-bot成员
2025年6月16日 指派了 stubCode 参与评审
openeuler-ci-botopeneuler-ci-bot成员
2025年6月16日 指派了 kuen 参与评审
此处折叠了63条消息 查看更多
openeuler-ci-bot
openeuler-ci-bot成员
2025年6月16日 评论:

lgtm was added to this pull request by: li-yancheng. 👋
NOTE: If this pull request is not merged while all conditions are met, comment "/check-pr" to try again. 😄

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
2025年6月16日 评论:

approved was added to this pull request by: li-yancheng. 👋
NOTE: If this pull request is not merged while all conditions are met, comment "/check-pr" to try again. 😄

likedislike
编译中伙
编译中伙成员
2025年6月16日 评论:

/check-pr

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
2025年6月16日 评论:

@li-yancheng, this pr is not mergeable and the reasons are below:
The target branch of PR has been frozen and it can be merge only by branch owners: @solarhu , @yaqiangchen , @paul-huang , @gitee-cmd , @zengwefeng , @kylinlq , @hekeyi , @yeqinglong01 , @SmallPegasus , @disnight , @Jingwiw , @x33x33

lgtm: A label mandatory for merging a pull request. The repository collaborators can comment '/lgtm' to add the label. The creator of a pull request can comment '/lgtm cancel' to remove the label, but cannot run the '/lgtm' command to add the label.
approved: A label mandatory for merging a pull request. The repository collaborators can comment '/approve' to add the label and comment '/approve cancel' to remove the label.
openeuler-cla/yes: A label mandatory for merging a pull request. The author of each commit of a pull request must sign the Contributor License Agreement (CLA). Otherwise, the pull request will fail to be merged. After signing the CLA, the author can comment '/check-cla' to check the CLA status again.
wait_confirm: A label for confirming pull request merging. A pull request with this label cannot be automatically merged. This label is added because members (including maintainers, committers, and repository administrators) are to be added to sig-info.yaml in the pull request. To remove the label, all members to be added must comment '/lgtm' in the pull request.

likedislike
x33x33
2025年6月16日 评论:

/check-pr

likedislike