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

Compiling fluid inference library #7231

Closed
luotao1 opened this issue Jan 5, 2018 · 3 comments
Closed

Compiling fluid inference library #7231

luotao1 opened this issue Jan 5, 2018 · 3 comments
Labels
预测 原名Inference,包含Capi预测问题等

Comments

@luotao1
Copy link
Contributor

luotao1 commented Jan 5, 2018

For compiling fluid inference static and shared library, there are two questions:

  1. Do we need an option like WITH_C_API?
  2. Can we build a single static and shared library at first, and then spill them?
@luotao1 luotao1 added the 预测 原名Inference,包含Capi预测问题等 label Jan 5, 2018
@Xreki
Copy link
Contributor

Xreki commented Jan 5, 2018

Do we need an option like WITH_C_API?

I think we don't need. It should be always built.

Can we build a single static and shared library at first, and then spill them?

It's OK. Please note that the static library should not contain any binary code of third-party libraries.

@luotao1
Copy link
Contributor Author

luotao1 commented Jan 9, 2018

TODO List

  • Create an independent project, like capi dense example to verify the link to libpaddle_fluid.a or libpaddle_fluid.so
  • Compile one static library, which should not contain any binary code of third-party libraries.
  • Compile one shared library.
  • Dismantle one library into several.
  • Make Install.

@wangkuiyi
Copy link
Collaborator

I have a question: do we have to install header files and libraries into a special directory structure? What would be the problem for our users to include/link to them if we leave them where they were (in the source directory and the build directory)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
预测 原名Inference,包含Capi预测问题等
Projects
None yet
Development

No branches or pull requests

3 participants