提交 52dd8ff0 编写于 作者: Y Yu Yang

Force sync dev

上级 dfb86800
...@@ -199,7 +199,7 @@ void ThreadedSSAGraphExecutor::RunOp( ...@@ -199,7 +199,7 @@ void ThreadedSSAGraphExecutor::RunOp(
auto op_run = [ready_buffer, op, this] { auto op_run = [ready_buffer, op, this] {
try { try {
VLOG(10) << op->DebugString(); VLOG(10) << op->Name() << " : " << op->DebugString();
op->Run(use_event_); op->Run(use_event_);
for (auto *ready : *ready_buffer) { for (auto *ready : *ready_buffer) {
...@@ -211,6 +211,7 @@ void ThreadedSSAGraphExecutor::RunOp( ...@@ -211,6 +211,7 @@ void ThreadedSSAGraphExecutor::RunOp(
} catch (...) { } catch (...) {
LOG(FATAL) << "Unknown exception catched"; LOG(FATAL) << "Unknown exception catched";
} }
PADDLE_ENFORCE(cudaDeviceSynchronize());
}; };
if (pool_) { if (pool_) {
pool_->enqueue(op_run); pool_->enqueue(op_run);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册