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

add boost to inference lib #10660

Merged
merged 4 commits into from
May 16, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmake/inference_lib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ copy(glog_lib
DSTS ${dst_dir} ${dst_dir}/lib
)

set(dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/install/boost")
copy(boost_lib
SRCS ${BOOST_INCLUDE_DIR}
DSTS ${dst_dir}
Copy link
Contributor

@luotao1 luotao1 May 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里需要调整下,目前打包:

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
  1. boost/boost_1_41_0/boost里面才是需要使用的头文件
  2. 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
  1. boost库不应该装在install目录下,应该和eigen的位置一样。因为paddle编译的时候也没有装在install目录下,所以要保持统一。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

)

if(NOT PROTOBUF_FOUND)
set(dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/install/protobuf")
copy(protobuf_lib
Expand Down