Skip to content

Conversation

@reyoung
Copy link
Collaborator

@reyoung reyoung commented Jul 25, 2017

Currently, WITH_GOLANG is a compiling flag, and not all Paddle binary
enable WITH_GOLANG=ON. So we cannot ensure that every paddle has
master.so. Make load that C libary lazily could let the user run
Paddle without WITH_GOLANG=ON.

Fix #3052

Currently, WITH_GOLANG is a compiling flag, and not all Paddle binary enable `WITH_GOLANG=ON`. So we cannot ensure that every paddle has `master.so`. Make load that C libary lazily could let the user run Paddle without `WITH_GOLANG=ON`.
Copy link
Contributor

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

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

LGTM++


def get_c_lib():
if __lib__ is None:
global __lib__
Copy link
Contributor

Choose a reason for hiding this comment

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

Put global right under the function define.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

@gongweibao gongweibao left a comment

Choose a reason for hiding this comment

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

LGTM++

@reyoung reyoung merged commit 8273dd7 into PaddlePaddle:develop Jul 25, 2017
@reyoung reyoung deleted the feature/make_golang_client_lazy_load branch July 26, 2017 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants