-
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
[cmake治理]删除paddle_test多余无用依赖 #60013
Comments
【报名】:1 |
【报名】:4、12、14 |
【报名】:10、11 |
【报名】:6、7 |
【报名】:2 |
【报名】:15 |
【报名】:3 |
【报名】:13 |
【报名】:5、8 |
【报名】:9、14 |
Task No. 1 Finished. Nothing needs to delete. The error log when delete the only DEPS, benchmark:
|
好的,那就不删除 |
Task NO.3 的common已经在 #60149 删除。 |
Task NO.8 的common已经在 #60149 删除。 |
[cmake治理]删除paddle_test多余无用依赖 已全部完成,感谢参与的小伙伴们!
欢迎继续参与快乐开源的其他任务! |
问题描述 Please describe your issue
一、需求背景
飞桨正在优化cmake代码,来减少编译时候的开发成本,目前paddle编译c++单测有多种方式,如cc_test_old(link静态库),cc_test(windows下link静态库,linux下link paddle.so),paddle_test(windows和linux下都link动态库paddle.so),现在推荐使用paddle_test,好处在于:
二、存在的问题
paddle仓库中大概有50个使用paddle_test的代码,有一部分后面加了额外不需要的依赖,需要删除,如test/cpp/pir/shape_dialect/CMakeLists.txt中shape_struct_test单测依赖了gtest,实际上是额外的依赖,应该删掉。
三、建议步骤
1 在linux下,将paddle_test DEPS依赖全部删掉编译,如果遇到找不到一些符号,再加上必要的依赖
2 linux下报错解决后,windows下可能也会遇到一些编译问题
四、任务划分
paddle/fluid/inference/utils/CMakeLists.txttest/cpp/eager/performance_tests/CMakeLists.txttest/cpp/fluid/framework/CMakeLists.txttest/cpp/fluid/framework/details/CMakeLists.txttest/cpp/fluid/lite/CMakeLists.txt@Liyulingyue #60154
@Liyulingyue #60517
@xiaoyewww #60087
@Liyulingyue #60149
认领方式
请大家以 comment 的形式认领任务,如:
多个任务之间需要使用中文顿号分隔,报名多个连续任务可用横线表示,如 2-5
PR 提交格式:在 PR 的标题中以 【CMake opt】 开头,注明任务编号
看板信息
统计信息
The text was updated successfully, but these errors were encountered: