add boost to inference lib#10660
Merged
jacquesqiao merged 4 commits intoPaddlePaddle:developfrom May 16, 2018
Merged
Conversation
luotao1
reviewed
May 15, 2018
| set(dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/install/boost") | ||
| copy(boost_lib | ||
| SRCS ${BOOST_INCLUDE_DIR} | ||
| DSTS ${dst_dir} |
Contributor
There was a problem hiding this comment.
这里需要调整下,目前打包:
boost/
└── boost_1_41_0
├── boost
├── boost-build.jam
├── boost.css
├── boost.png
├── bootstrap.bat
├── bootstrap.sh
├── CMakeLists.txt
├── doc
├── index.htm
├── index.html
├── INSTALL
├── Jamroot
├── libs
├── LICENSE_1_0.txt
├── more
├── people
├── README.txt
├── rst.css
├── status
├── tools
└── wiki
boost/boost_1_41_0/boost里面才是需要使用的头文件- boost头文件一共63M,但目前打包的内容有273M:原因是打包了doc/tools等其他目录。
[luotao02@yq01-idl-gpu-jpaas-let01: boost_1_41_0] -> $ du -sh *
63M boost
4.0K boost-build.jam
4.0K boost.css
8.0K boost.png
4.0K bootstrap.bat
12K bootstrap.sh
4.0K CMakeLists.txt
52M doc
4.0K index.htm
8.0K index.html
4.0K INSTALL
24K Jamroot
143M libs
4.0K LICENSE_1_0.txt
596K more
8.0K people
8.0K README.txt
4.0K rst.css
4.0M status
13M tools
8.0K wiki
- boost库不应该装在install目录下,应该和eigen的位置一样。因为paddle编译的时候也没有装在install目录下,所以要保持统一。
Contributor
|
这个问题很奇怪,确实多个业务方都反馈过需要boost库,但是我没能复现出来。 |
Member
Author
|
@Xreki 应该是因为你本地编译环境里面有线程的boost库。 |
Contributor
我应该是卸载了jumbo下面的,系统路径应该没有安装��。我再确认一下。 |
Member
Author
|
公司环境系统环境貌似是有一个默认的 |
… add-boost-to-inference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
tasks: #10574
Our executor depends on boost, if a C++ module use fluid executor but cannot find the boost, the build will fail.

After add boost to the include_directories, it can build success.