Skip to content

Commit 3863c6a

Browse files
authored
Merge pull request #10126 from typhoonzero/fix_para_exe_dist_train
Fix para exe dist train
2 parents 6c0356e + 2b06b4b commit 3863c6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

paddle/fluid/framework/details/send_op_handle.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ void SendOpHandle::RunImpl() {
3434
}
3535
in->generated_op_->Wait(dev_ctxes_[p]);
3636
}
37-
this->RunAndRecordEvent([&] { op_->Run(*local_scope_, place_); });
37+
auto &tmp_scope = local_scope_->FindVar(kLocalExecScopeName)->Get<Scope *>();
38+
// FIXME(wuyi): can not use RunAndRecordEvent here, for it will cause dead
39+
// lock.
40+
op_->Run(*tmp_scope, place_);
3841
}
3942

4043
std::string SendOpHandle::Name() const { return "send"; }

0 commit comments

Comments
 (0)