提交 2b06b4b4 编写于 作者: T typhoonzero

updates follow up para exe

上级 8ee83725
...@@ -35,8 +35,9 @@ void SendOpHandle::RunImpl() { ...@@ -35,8 +35,9 @@ void SendOpHandle::RunImpl() {
in->generated_op_->Wait(dev_ctxes_[p]); in->generated_op_->Wait(dev_ctxes_[p]);
} }
auto &tmp_scope = local_scope_->FindVar(kLocalExecScopeName)->Get<Scope *>(); auto &tmp_scope = local_scope_->FindVar(kLocalExecScopeName)->Get<Scope *>();
// auto &lod_tensor = tmp_scope->FindVar(var_name)->Get<LoDTensor>(); // FIXME(wuyi): can not use RunAndRecordEvent here, for it will cause dead
this->RunAndRecordEvent([&] { op_->Run(*tmp_scope, place_); }); // lock.
op_->Run(*tmp_scope, place_);
} }
std::string SendOpHandle::Name() const { return "send"; } std::string SendOpHandle::Name() const { return "send"; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册