-
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
add boost to inference lib #10660
add boost to inference lib #10660
Conversation
cmake/inference_lib.cmake
Outdated
set(dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/install/boost") | ||
copy(boost_lib | ||
SRCS ${BOOST_INCLUDE_DIR} | ||
DSTS ${dst_dir} |
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.
这里需要调整下,目前打包:
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目录下,所以要保持统一。
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.
done
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!
这个问题很奇怪,确实多个业务方都反馈过需要boost库,但是我没能复现出来。 |
@Xreki 应该是因为你本地编译环境里面有线程的boost库。 |
我应该是卸载了jumbo下面的,系统路径应该没有安装过。我再确认一下。 |
公司环境系统环境貌似是有一个默认的 |
… add-boost-to-inference
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.