From d9820d8df26c7d58f215d9c0f624441bf17fcdcb Mon Sep 17 00:00:00 2001 From: gukecai Date: Tue, 8 Dec 2020 15:06:22 +0800 Subject: [PATCH] fix hcom parallel bug --- mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc b/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc index 3b278c2d31..28bf6f3e2c 100644 --- a/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc +++ b/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc @@ -827,6 +827,7 @@ void AscendStreamAssign::InsertEventHcomDependCommonBak(const NotNull inputs_cnode = GetLastInputCnode(graph_ptr, cur_cnode_ptr); if (inputs_cnode.empty()) { + cnodes.emplace_back(cur_cnode_ptr); MS_LOG(WARNING) << "Hcom op:" << AnfAlgo::GetCNodeName(cur_cnode_ptr) << " can't find inputs nodes"; continue; }