From 52dd8ff09a73b37c6b1275a672b8dc8269530e8d Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Tue, 27 Mar 2018 14:50:05 +0800 Subject: [PATCH] Force sync dev --- paddle/fluid/framework/details/threaded_ssa_graph_executor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc b/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc index 13789667b82..50c24d3afa8 100644 --- a/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc +++ b/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc @@ -199,7 +199,7 @@ void ThreadedSSAGraphExecutor::RunOp( auto op_run = [ready_buffer, op, this] { try { - VLOG(10) << op->DebugString(); + VLOG(10) << op->Name() << " : " << op->DebugString(); op->Run(use_event_); for (auto *ready : *ready_buffer) { @@ -211,6 +211,7 @@ void ThreadedSSAGraphExecutor::RunOp( } catch (...) { LOG(FATAL) << "Unknown exception catched"; } + PADDLE_ENFORCE(cudaDeviceSynchronize()); }; if (pool_) { pool_->enqueue(op_run); -- GitLab