-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Unify core avx and core_noavx to libpaddle #46095
Unify core avx and core_noavx to libpaddle #46095
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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.
LGTM
才知道这个历史原因。 |
是的,需要从底层解决 |
* unify core_avx and core_noavx * fix except error * revert mac compile logic * revert dylib to so * add core_noavx branch * remove core_noavx * replace paddle_core by lib paddle * polish var name * replace paddle_core by libpaddle * update custom device commit * polish code by comments
* unify core_avx and core_noavx * fix except error * revert mac compile logic * revert dylib to so * add core_noavx branch * remove core_noavx * replace paddle_core by lib paddle * polish var name * replace paddle_core by libpaddle * update custom device commit * polish code by comments
PR types
Function optimization
PR changes
Others
Describe
Unify core avx and core_noavx to libpaddle
之前paddle为了使一个whl包同时支持avx和noavx,采用了一种比较trick的方式,编译两遍paddle,分别编译avx和noavx,最后打包到一起,#17889
这种方式虽然解决了问题,但也引入了新的问题:
本PR清理了一些历史代码,将动态库名称统一改为
libpaddle
,参考linux shared library的命名公约,https://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html同时需要在PaddleCustomDevice中对这两个命名的使用增加一个if分支:https://github.com/PaddlePaddle/PaddleCustomDevice/search?q=core_avx
PaddlePaddle/PaddleCustomDevice#112