/third_party/mindspore/tests/ut/cpp/session/ |
D | kernel_graph_test.cc | 175 auto execution_order = kernel_graph->execution_order(); in TEST_F() local 176 EXPECT_EQ(execution_order.size(), 2); in TEST_F() 177 EXPECT_EQ(AnfAlgo::GetCNodeName(execution_order[0]), prim::kPrimAdd->name()); in TEST_F() 178 EXPECT_EQ(AnfAlgo::GetCNodeName(execution_order[1]), prim::kPrimMul->name()); in TEST_F() 181 execution_order = kernel_graph->execution_order(); in TEST_F() 182 EXPECT_EQ(execution_order.size(), 1); in TEST_F() 183 EXPECT_EQ(AnfAlgo::GetCNodeName(execution_order[0]), prim::kPrimAdd->name()); in TEST_F()
|
D | session_basic_test.cc | 88 auto execution_order = kernel_graph->execution_order(); in TEST_F() local 89 EXPECT_EQ(execution_order.size(), 2); in TEST_F() 90 EXPECT_EQ(AnfAlgo::GetCNodeName(execution_order[0]), prim::kPrimAdd->name()); in TEST_F() 91 EXPECT_EQ(AnfAlgo::GetCNodeName(execution_order[1]), prim::kPrimMul->name()); in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/backend/session/ |
D | cpu_session.cc | 129 auto execution_order = graph->execution_order(); in CompileGraphImpl() local 130 Reorder(&execution_order); in CompileGraphImpl() 131 graph->set_execution_order(execution_order); in CompileGraphImpl() 138 const std::vector<CNodePtr> &exec_order = graph->execution_order(); in CompileGraphImpl() 287 auto execution_order = kernel_graph->execution_order(); in RunOpImpl() local 288 Reorder(&execution_order); in RunOpImpl() 289 kernel_graph->set_execution_order(execution_order); in RunOpImpl() 315 auto &kernel_nodes = kernel_graph->execution_order(); in SetKernelInfo() 366 auto &kernel_nodes = kernel_graph->execution_order(); in BuildKernel()
|
D | ascend_session.cc | 106 void DumpGraphExeOrder(const std::vector<CNodePtr> &execution_order, const std::string &tag = "") { in DumpGraphExeOrder() argument 107 MS_LOG(INFO) << "Dump execution_order size " << execution_order.size(); in DumpGraphExeOrder() 110 for (auto &cnode : execution_order) { in DumpGraphExeOrder() 124 buf << "execution_order size: " << execution_order.size() << "\n"; in DumpGraphExeOrder() 126 for (auto &cnode : execution_order) { in DumpGraphExeOrder() 548 if (root_graph->execution_order().empty()) { in CompileGraphImpl() 874 const auto &nodes = graph->execution_order(); in BatchBuildKernel() 885 const auto &nodes = graph->execution_order(); in BatchBuildKernel() 905 const auto &nodes = graph->execution_order(); in StoreCNodePrimitive() 1037 auto &nodes = graph.execution_order(); in CacheCNodeOutputInfo() [all …]
|
D | ascend_auto_monad.cc | 121 for (auto &cnode : kg->execution_order()) { in DumpExecuteOrder() 733 const auto &nodes = kernel_graph_->execution_order(); in Run() 749 auto &nodes = kg->execution_order(); in SetIterEndAttrForTopGraph() 785 auto &nodes = kg->execution_order(); in SetIterEndAttr() 842 auto exec_order = top_graph->execution_order(); in InitStack() 856 auto exec_order = kernel_graph_->execution_order(); in InsertStackOps() 940 auto nodes = kg->execution_order(); in InsertStackPush() 950 auto nodes = kg->execution_order(); in KeepOrderForStackPop() 1521 auto nodes = graph_->execution_order(); in UnfoldRepeatedLabels() 1566 void AppendGraphOrder(std::vector<CNodePtr> *execution_order, const KernelGraphPtr &graph) { in AppendGraphOrder() argument [all …]
|
/third_party/mindspore/mindspore/ccsrc/debug/rdr/ |
D | graph_exec_order_recorder.cc | 26 bool DumpGraphExeOrder(const std::string &filename, const std::vector<CNodePtr> &execution_order) { in DumpGraphExeOrder() argument 34 fout << "execution_order size: " << execution_order.size() << "\n"; in DumpGraphExeOrder() 36 for (auto &cnode : execution_order) { in DumpGraphExeOrder()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/ |
D | ascend_launch_atomic_clean.cc | 48 if (atomic_clean_graph_->execution_order().size() != 1) { in LaunchOpKernel() 51 kernel_mod_ = AnfAlgo::GetKernelMod(atomic_clean_graph_->execution_order()[0]); in LaunchOpKernel() 99 if (!atomic_clean_graph_->execution_order().empty()) { in ConstructKernelGraphAndSetAttr() 100 auto clean_node = atomic_clean_graph_->execution_order()[0]; in ConstructKernelGraphAndSetAttr()
|
D | ascend_launch_transdata.cc | 49 if (transdata_graph_->execution_order().size() != 1) { in LaunchOpKernel() 53 kernel_mod_ = AnfAlgo::GetKernelMod(transdata_graph_->execution_order()[0]); in LaunchOpKernel() 98 if (!transdata_graph_->execution_order().empty()) { in ConstructKernelGraphAndSetAttr() 99 auto transdata_node = transdata_graph_->execution_order()[0]; in ConstructKernelGraphAndSetAttr()
|
D | ascend_stream_assign.cc | 156 auto cnode_ptr_list = graph_ptr->execution_order(); in GetHcomAndOverflowMarker() 208 auto exec_orders = graph_ptr->execution_order(); in SetNodeStreamIDAttr() 244 const std::vector<CNodePtr> &exec_order = graph_ptr->execution_order(); in AssignStream() 271 auto cnode_ptr_list = graph_ptr->execution_order(); in ReorderIndependentOrders() 327 auto cnode_ptr_list = graph_ptr->execution_order(); in CheckScenario() 383 auto cnode_ptr_list = graph_ptr->execution_order(); in GetCNodesNeededMoved() 436 auto cnode_ptr_list = graph_ptr->execution_order(); in GetTargetOutputNode() 535 auto cnode_ptr_list = graph_ptr->execution_order(); in TrailingTimeOptimizationByReorder() 589 auto cnode_ptr_list = graph_ptr->execution_order(); in AssignAllNodesStream() 667 auto cnode_ptr_list = graph_ptr->execution_order(); in AssignHcom() [all …]
|
D | ascend_launch_kernel.cc | 36 auto node_list = kernel_graph->execution_order(); in KernelSelect() 47 auto ret = device::ascend::KernelBuild(kernel_graph->execution_order()); in KernelBuild()
|
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/cpu/ |
D | cpu_device_context.cc | 111 SetOperatorInfo(graph->execution_order()); in OptimizeGraph() 120 SetOperatorInfo(graph->execution_order()); in OptimizeSingleOpGraph() 135 for (const auto &cnode : graph->execution_order()) { in UpdateGraphDynamicShapeAttr() 227 auto execution_order = graph->execution_order(); in PreprocessBeforeRunGraph() local 228 AnfAlgo::ReorderPosteriorExecList(NOT_NULL(&execution_order)); in PreprocessBeforeRunGraph() 229 graph->set_execution_order(execution_order); in PreprocessBeforeRunGraph()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/profiling/ |
D | profiling_utils.cc | 58 auto &cnode_exec_order = kernel_graph.execution_order(); in GenerateProfilingTrace() 86 for (const auto &node : kernel_graph.execution_order()) { in GetTraceHccl() 98 auto &execution_orders = kernel_graph.execution_order(); in GetTraceBegin() 131 for (const auto &cnode : kernel_graph.execution_order()) { in GetCNodeOutputRealNode() 167 auto &execution_orders = kernel_graph.execution_order(); in GetTraceBpEnd() 205 auto &execution_order = kernel_graph.execution_order(); in GetGraphLastKernelName() local 207 for (auto iter = execution_order.rbegin(); iter != execution_order.rend(); ++iter) { in GetGraphLastKernelName() 224 auto &execution_orders = kernel_graph.execution_order(); in GetTraceIterEnd() 385 for (const auto &node : kernel_graph.execution_order()) { in ValidComputeGraph()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ |
D | launch_mul.cc | 51 if (mul_graph_->execution_order().size() != 1) { in ObtainLaunchMulKernelMod() 53 << mul_graph_->execution_order().size() << " nodes."; in ObtainLaunchMulKernelMod() 55 return AnfAlgo::GetKernelMod(mul_graph_->execution_order()[0]); in ObtainLaunchMulKernelMod()
|
D | kernel_adjust.cc | 50 const std::vector<CNodePtr> &origin_cnode_list = kernel_graph_ptr->execution_order(); in ReorderGetNext() 115 const std::vector<CNodePtr> &cnode_list = kernel_graph_ptr->execution_order(); in ExistGetNext() 126 const auto &exe_orders = kernel_graph_ptr->execution_order(); in ExistIndependent() 438 const std::vector<CNodePtr> &orders = kernel_graph_ptr->execution_order(); in InsertSwitchLoop() 872 std::vector<CNodePtr> cnode_ptr_list = kernel_graph_ptr->execution_order(); in InsertProfilingKernel() 1065 auto execution_order = kernel_graph_ptr->execution_order(); in InsertOverflowCheckOperations() local 1066 for (size_t i = 0; i < execution_order.size() - 1; i++) { in InsertOverflowCheckOperations() 1067 new_execution_order.push_back(execution_order[i]); in InsertOverflowCheckOperations() 1068 auto cur_full_name = execution_order[i]->fullname_with_scope(); in InsertOverflowCheckOperations() 1069 auto next_full_name = execution_order[i + 1]->fullname_with_scope(); in InsertOverflowCheckOperations() [all …]
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/ |
D | gpu_launch_kernel.cc | 49 auto node_list = kernel_graph->execution_order(); in KernelSelect() 56 auto kernels = kernel_graph->execution_order(); in KernelBuild()
|
D | gpu_device_address.cc | 131 bool GPUDeviceAddress::LoadMemToHost(const std::string &tensor_name, int execution_order, const std… in LoadMemToHost() argument 155 tensor_data->SetExecutionOrder(execution_order); in LoadMemToHost()
|
D | gpu_kernel_runtime.cc | 311 auto kernel_cnodes = graph->execution_order(); in AllocInplaceNodeMemory() 360 const auto &kernels = graph->execution_order(); in IsDistributedTraining() 371 auto &kernels = graph->execution_order(); in FetchMemUnitSize() 562 auto &kernels = graph->execution_order(); in RefineMemSwapScheme() 617 auto &kernels = graph->execution_order(); in InitKernelOutputAddress() 636 auto &kernels = graph->execution_order(); in InitKernelWorkspaceAddress() 676 auto &kernels = graph->execution_order(); in ClearKernelOutputAddress() 701 auto &kernels = graph->execution_order(); in ClearKernelWorkspaceAddress() 718 const auto &kernels = graph->execution_order(); in GetLastKernel() 745 auto &kernels = graph->execution_order(); in LaunchKernelDynamic() [all …]
|
D | gpu_stream_assign.cc | 33 auto execution_kernels = kernel_graph->execution_order(); in AssignGpuStream() 66 auto execution_kernels = kernel_graph->execution_order(); in FindAllReduceStreamSwitchPos() 171 auto execution_kernels = kernel_graph->execution_order(); in InsertStreamSwitchNode()
|
/third_party/mindspore/tests/ut/cpp/pre_activate/mem_reuse/ |
D | mem_reuse_test.cc | 198 auto execution_order = kernel_graph->execution_order(); in CreateGraphWithExecOrder() local 199 EXPECT_EQ(execution_order.size(), 2); in CreateGraphWithExecOrder() 200 EXPECT_EQ(AnfAlgo::GetCNodeName(execution_order[0]), prim::kPrimAdd->name()); in CreateGraphWithExecOrder() 201 EXPECT_EQ(AnfAlgo::GetCNodeName(execution_order[1]), prim::kPrimMul->name()); in CreateGraphWithExecOrder()
|
/third_party/mindspore/tests/ut/cpp/pre_activate/ascend/ir_fusion/ |
D | mul_add_fusion_test.cc | 41 for (auto nd : fg->execution_order()) { in TEST_F() 65 for (auto nd : fg->execution_order()) { in TEST_F()
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/mem_reuse/ |
D | mem_reuse.cc | 29 auto kernel_cnodes = graph_->execution_order(); in InitDynamicOutputKernelRef() 98 auto kernel_cnodes = graph_->execution_order(); in InitDynamicWorkspaceKernelRef() 150 auto kernel_cnodes = graph_->execution_order(); in SetWorkSpaceList() 287 auto kernel_cnodes = graph_->execution_order(); in SetKernelDefMap() 311 for (const auto &kernel : graph_->execution_order()) { in SetKernelDefInputs() 350 auto kernels = graph_->execution_order(); in SetReuseRefCount()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/ |
D | cpu_simple_mem_plan.cc | 25 auto kernels = graph->execution_order(); in MemPlan() 69 auto kernels = graph->execution_order(); in MemAssign()
|
/third_party/mindspore/mindspore/ccsrc/runtime/framework/ |
D | graph_compiler.cc | 173 const std::vector<CNodePtr> &kernels = graph->execution_order(); in CreateKernelOutputDeviceAddress() 198 const std::vector<CNodePtr> &kernels = graph->execution_order(); in CreateKernelWorkspaceDeviceAddress() 218 const std::vector<CNodePtr> &kernels = graph->execution_order(); in UpdateDeviceAddressForInplaceNode() 333 device_context->CreateKernel(graph->execution_order()); in CompileGraphImpl() 375 auto &kernels = graph->execution_order(); in CompileGraphImpl() 406 device_context->CreateKernel(graph->execution_order()); in CompileGraph()
|
D | graph_scheduler.cc | 138 for (const auto &cnode : graph->execution_order()) { in ClearNodeInfo() 443 auto execution_order = graph->execution_order(); in Link() local 444 for (auto &kernel : execution_order) { in Link() 531 const auto &execution_order = graph->execution_order(); in BuildDataSourceActor() local 533 …std::find_if(execution_order.begin(), execution_order.end(), [&graph_compiler_info](const CNodePtr… in BuildDataSourceActor() 536 if (iter != execution_order.end()) { in BuildDataSourceActor() 595 auto execution_order = graph->execution_order(); in BuildKernelActor() local 598 bool is_single_op_graph = execution_order.size() == 1; in BuildKernelActor() 604 for (auto &kernel : execution_order) { in BuildKernelActor() 677 auto &execution_order = graph->execution_order(); in BuildDataPrepareActor() local [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/ |
D | helper.cc | 295 auto execution_order = graph->execution_order(); in IsAllNopNode() local 296 for (auto &cnode : execution_order) { in IsAllNopNode() 326 auto execution_order = graph->execution_order(); in HideNopNode() local 329 MS_LOG(INFO) << "nop node info (Before Remove) size: " << execution_order.size(); in HideNopNode() 331 for (auto &cnode : execution_order) { in HideNopNode() 338 MS_LOG(INFO) << "nop node info (After Remove) size: " << graph->execution_order().size(); in HideNopNode() 352 for (auto &cnode : graph->execution_order()) { in RemoveNopNode()
|