use Accelerate BLAS implementation on Mac #64408
Merged
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.
PR Category
Environment Adaptation
PR Types
New features
Description
Use Apple’s implementation of the BLAS on Mac.
Benefits:
Updates
2024-5-23 update:
our nightly build pipeline has been updated, it's possible to use the package with Apple's BLAS by :
pip install --no-cache paddlepaddle==0.0.0 -f https://www.paddlepaddle.org.cn/whl/mac/cpu/develop.html
.I did a quick test, recognizing 15 random images by using
time paddleocr --image_dir images
, it shows 25% speedup compared with paddlepaddle with openblas on my mac m1. (paddlepaddle using accelerate framework V.S. paddlepaddle using openblas: 1m15.297s V.S. 1m34.525s).2024-5-21 update:
The required CI has turned green, so I think we can go ahead and merge this PR. Meanwhile, we should wait for feedback to see if it resolves the PaddlePaddle freeze on some Mac settings.
2024-5-20 update:
I can successfully build the package on my mac m1 using command:
and successfully run the script in #63344, but building the package with test cases failed on CI pipeline : PR-CI-Mac-Python3.
please ignore the following
PCard-67164