-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Check SSE/AVX/AVX2 at runtime to decline in number of release binaries #768
Comments
@gangliao To query CPUID will detect whether CPU supports AVX instincts during runtime. But Paddle code needs to be refactored to switch calculation between AVX and SSE. The code in |
这个可以搞定这个issue后在来做,不只是
|
Maybe the first step is to add a |
@reyoung @hedaoyuan Yeah, |
I think this was already done. Closing this issue, feel free to reopen it. |
Currently, we have four release binaries,
no-avx CPU, avx-CPU, no-avx-GPU, avx-GPU.
, which looks quite miscellaneous. Actually, we can check CPU capabilities at runtime viacpuid
That can help us decline in number of release binaries from four to two.
paddle/utils
Add SIMD flags for runtime check #800#if
in current PaddlePaddle to support AVX and SSE at runtimeThe text was updated successfully, but these errors were encountered: