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

strip after compilation #32145

Merged
merged 7 commits into from
Apr 22, 2021
Merged

Conversation

Avin0323
Copy link
Contributor

@Avin0323 Avin0323 commented Apr 8, 2021

PR types

Others

PR changes

Others

Describe

仅在Linux系统上,打包安装Whl包时,使用strip命令处理打包文件中的动态库文件,从而降低Whl包体积。

strip工具是linux系统自带的命令,其作用是去除文件中一些调试符号信息,从而使文件变小。

以2.0.2版本测试:

  • 【cpu】 py27mu py35m py36m py37m py38m
Whl包 处理前 strip处理后 变化比例
paddlepaddle-2.0.2-cp27-cp27mu-manylinux1_x86_64.whl 161M 138M 降低14.3%
paddlepaddle-2.0.2-cp35-cp35m-manylinux1_x86_64.whl 161M 138M 降低14.3%
paddlepaddle-2.0.2-cp36-cp36m-manylinux1_x86_64.whl 161M 138M 降低14.3%
paddlepaddle-2.0.2-cp37-cp37m-manylinux1_x86_64.whl 161M 138M 降低14.3%
paddlepaddle-2.0.2-cp38-cp38-manylinux1_x86_64.whl 161M 138M 降低14.3%
  • 【cuda10.2】 py27mu py35m py36m py37m py38m
Whl包 处理前 strip处理后 变化比例
paddlepaddle_gpu-2.0.2-cp27-cp27mu-manylinux1_x86_64.whl 679M 606M 降低10.8%
paddlepaddle_gpu-2.0.2-cp35-cp35m-manylinux1_x86_64.whl 679M 606M 降低10.8%
paddlepaddle_gpu-2.0.2-cp36-cp36m-manylinux1_x86_64.whl 679M 606M 降低10.8%
paddlepaddle_gpu-2.0.2-cp37-cp37m-manylinux1_x86_64.whl 679M 606M 降低10.8%
paddlepaddle_gpu-2.0.2-cp38-cp38-manylinux1_x86_64.whl 679M 606M 降低10.8%

CI测试日志:PR-CI-CPU-Py2PR-CI-CoveragePR-CI-Py3

@Avin0323 Avin0323 changed the title [WIP]strip after compilation strip after compilation Apr 21, 2021
@luotao1 luotao1 merged commit e727820 into PaddlePaddle:develop Apr 22, 2021
@Avin0323 Avin0323 deleted the strip-after-compilation branch September 16, 2021 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants