From 2b06b4b4e998040e5047bde53216033f173b46a3 Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Mon, 23 Apr 2018 11:57:54 +0800 Subject: [PATCH] updates follow up para exe --- paddle/fluid/framework/details/send_op_handle.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/framework/details/send_op_handle.cc b/paddle/fluid/framework/details/send_op_handle.cc index 84e1f28b6..0763f9217 100644 --- a/paddle/fluid/framework/details/send_op_handle.cc +++ b/paddle/fluid/framework/details/send_op_handle.cc @@ -35,8 +35,9 @@ void SendOpHandle::RunImpl() { in->generated_op_->Wait(dev_ctxes_[p]); } auto &tmp_scope = local_scope_->FindVar(kLocalExecScopeName)->Get(); - // auto &lod_tensor = tmp_scope->FindVar(var_name)->Get(); - this->RunAndRecordEvent([&] { op_->Run(*tmp_scope, place_); }); + // FIXME(wuyi): can not use RunAndRecordEvent here, for it will cause dead + // lock. + op_->Run(*tmp_scope, place_); } std::string SendOpHandle::Name() const { return "send"; } -- GitLab