diff --git a/paddle/fluid/framework/details/send_op_handle.cc b/paddle/fluid/framework/details/send_op_handle.cc index 84e1f28b61c9450fcbb6510afcd039647cffc54e..0763f92171e7813ec0ee8ca4f3aa42b76205130a 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"; }