Skip to content
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

[cmake] support MacOS arm liblapack #63093

Merged
merged 4 commits into from
Mar 29, 2024

Conversation

gouzil
Copy link
Member

@gouzil gouzil commented Mar 28, 2024

PR Category

User Experience

PR Types

Bug fixes

Description

修复 #62958 中的TODO,支持 MacOS M 系列的lapack

编译后所需的动态库: lapack_mac_arm64_v0.3.26.tar.gz

运行python test/legacy_test/test_zero_dim_sundry_static_api_part4.py TestSundryAPIStatic.test_linalg_cond具体报错如下:

    PreconditionNotMetError: The third-party dynamic library (liblapack.3.dylib) that Paddle depends on is not configured correctly. (error code is dlopen(/usr/local/cuda/lib/liblapack.3.dylib, 0x0005): tried: '/usr/local/cuda/lib/liblapack.3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/cuda/lib/liblapack.3.dylib' (no such file), '/usr/local/cuda/lib/liblapack.3.dylib' (no such file))
      Suggestions:
      1. Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed.
      2. Configure third-party dynamic library environment variables as follows:
      - Linux: set LD_LIBRARY_PATH by `export LD_LIBRARY_PATH=...`
      - Windows: set PATH by `set PATH=XXX;%PATH%`
      - Mac: set  DYLD_LIBRARY_PATH by `export DYLD_LIBRARY_PATH=...` [Note: After Mac OS 10.11, using the DYLD_LIBRARY_PATH is impossible unless System Integrity Protection (SIP) is disabled.] (at /Users/gouzi/Documents/git/Paddle/paddle/phi/backends/dynload/dynamic_loader.cc:275)
      [operator < pd_kernel.phi_kernel > error]

Copy link

paddle-bot bot commented Mar 28, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@gouzil gouzil changed the title [cmake] support liblapack arm [cmake] support MacOS arm liblapack Mar 28, 2024
@paddle-bot paddle-bot bot added the contributor External developers label Mar 28, 2024
Copy link
Contributor

@risemeup1 risemeup1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gouzil gouzil merged commit 29d88c2 into PaddlePaddle:develop Mar 29, 2024
30 checks passed
@gouzil gouzil deleted the fix_mac_arm_lapack branch March 29, 2024 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants