-
Notifications
You must be signed in to change notification settings - Fork 6k
[Build] Packaging vendored liblapack dylib on ARM64 platform #79516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
SigureMo
merged 1 commit into
PaddlePaddle:develop
from
cattidea:build/build-vendored-liblapack-dylib-on-arm
Jul 20, 2026
+28
−13
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
问题: 这里仅判断
WITH_ARM会漏掉WITH_NV_JETSON=ON的配置路径。CMakeLists.txt在include(third_party)之后才把WITH_NV_JETSON强制转换成WITH_ARM=ON,所以用户只传-DWITH_NV_JETSON=ON时,lapack.cmake已经进入else()并下载 x86 的lapack_lnx_v3.10.0.20210628.tar.gz。这会让 Jetson/ARM wheel 继续打包错误架构的 LAPACK,和本 PR 的修复目标相反。处理要求:请针对该评论修复并提交新的 commit。
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@risemeup1111 你说的,在「
include(third_party)之后才把WITH_NV_JETSON强制转换成WITH_ARM=ON」,这个逻辑在哪啊?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有,依据在这几处:
CMakeLists.txt:613-614先执行include(third_party)cmake/third_party.cmake:400在这个阶段就会include(external/lapack)CMakeLists.txt:662-665才把WITH_NV_JETSON写回成WITH_ARM=ON所以
lapack.cmake读取到的是当时的WITH_ARM,而不是后面才转换出来的值。也就是说,-DWITH_NV_JETSON=ON但没有显式带-DWITH_ARM=ON时,仍然会走到当前的else()分支。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@risemeup1111 已确定 NV JETSON 不再支持,这个很早就编译不出来了,已经确定 NV JETSON 支持后续可以移除
cc @EmmonsCurse @risemeup1
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
确实,确定 NV JETSON 不再支持,属于废弃代码
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
收到。如果 NV JETSON 已明确不在当前支持范围内,那这条不应作为本 PR 的阻塞项;我撤回前面这条建议,并关闭该线程。