Skip to content

Conversation

@reyoung
Copy link
Collaborator

@reyoung reyoung commented Sep 22, 2017

Fix #4339

@reyoung reyoung requested review from JiayiFeng and QiJune September 22, 2017 18:49
@reyoung reyoung force-pushed the feature/add_wait_to_device_ctx branch from ae95f2d to ba1f5b5 Compare September 22, 2017 18:51
public:
CPUDeviceContext();
explicit CPUDeviceContext(CPUPlace place);
virtual ~CPUDeviceContext() {}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That line is useless.

* Since GPU is an async device by default. We should sync computation
  when Python invoke `run`. So Python can get the correct computation
  result
Copy link
Member

@QiJune QiJune 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 499b3c7 into PaddlePaddle:develop Sep 25, 2017
@reyoung reyoung deleted the feature/add_wait_to_device_ctx branch October 2, 2017 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants