Home
last modified time | relevance | path

Searched refs:graph_id (Results 1 – 25 of 93) sorted by relevance

1234

/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/profiling/
Dprofiling_utils.cc56 MS_LOG(INFO) << "Profiling graph:" << kernel_graph.graph_id() << " Start to get trace"; in GenerateProfilingTrace()
78 …MS_LOG(INFO) << "Profiling graph:" << kernel_graph.graph_id() << " trace_begin:" << profiling_trac… in GenerateProfilingTrace()
90 …MS_LOG(INFO) << "Profiling graph:" << kernel_graph.graph_id() << " Get hccl node:" << node->fullna… in GetTraceHccl()
103 MS_LOG(INFO) << "Profiling graph:" << kernel_graph.graph_id() in GetTraceBegin()
141 MS_LOG(INFO) << "Profiling graph:" << kernel_graph.graph_id() in GetCNodeOutputRealNode()
147 MS_LOG(INFO) << "Profiling graph:" << kernel_graph.graph_id() << " GetNext not found"; in GetCNodeOutputRealNode()
158 MS_LOG(INFO) << "Profiling graph:" << kernel_graph.graph_id() in GetTraceBpEnd()
216 …MS_LOG(WARNING) << "Profiling graph:" << kernel_graph.graph_id() << " No TBE or AKG or HCCL node f… in GetGraphLastKernelName()
227 MS_LOG(INFO) << "Profiling graph:" << kernel_graph.graph_id() in GetTraceIterEnd()
237 MS_LOG(WARNING) << "Profiling graph:" << kernel_graph.graph_id() in GetTraceIterEnd()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/trt_pass/
Dgraph_partitioner.cc143 if (node_info_[input_node].graph_id() == target_graph_id) { in ExistCycleAfterMerge()
147 if (dependency_.ExistDependency(node_info_[input_node].graph_id(), target_graph_id)) { in ExistCycleAfterMerge()
167 if (node_info_[input_node].graph_id() == old_graph_id) { in MergeParentBranchRecursively()
203 current_node_info.graph_id().at(0) != parent_node_info.graph_id().at(0))) { in NodeGrouping()
204 dependency_.AddDependency(current_node_info.graph_id(), parent_node_info.graph_id()); in NodeGrouping()
205 dependency_.InheritDependency(current_node_info.graph_id(), parent_node_info.graph_id()); in NodeGrouping()
212 if (ExistCycleAfterMerge(node, parent_node_info.graph_id())) { in NodeGrouping()
213 dependency_.InheritDependency(current_node_info.graph_id(), parent_node_info.graph_id()); in NodeGrouping()
225 const string old_graph_id = parent_node_info.graph_id(); in NodeGrouping()
226 const string new_graph_id = current_node_info.graph_id(); in NodeGrouping()
[all …]
/third_party/mindspore/mindspore/ccsrc/cxx_api/model/acl/acl_vm/
Dacl_multi_graph_session.cc75 graphs_[kernel_graph->graph_id()] = graph_cell; in CompileGraphImpl()
76 kernel_graphs_[kernel_graph->graph_id()] = kernel_graph; in CompileGraphImpl()
77 MS_LOG(INFO) << "Multi graph compile success, graph id " << kernel_graph->graph_id(); in CompileGraphImpl()
78 return kernel_graph->graph_id(); in CompileGraphImpl()
81 void MultiGraphAclSession::RunGraph(GraphId graph_id, const std::vector<MSTensor> &inputs, VectorRe… in RunGraph() argument
83 MS_LOG(INFO) << "Start run graph " << graph_id; in RunGraph()
84 auto iter = graphs_.find(graph_id); in RunGraph()
86 MS_LOG(EXCEPTION) << "Graph id " << graph_id << " not found."; in RunGraph()
91 MS_LOG(EXCEPTION) << "Graph id " << graph_id << " run failed."; in RunGraph()
95 (*outputs) = ConstructOutputRef(graph_id, &out_tensors_deque); in RunGraph()
[all …]
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_kernel_runtime.cc172 void AscendKernelRuntime::ClearGraphRuntimeResource(uint32_t graph_id) { in ClearGraphRuntimeResource() argument
174 auto mem_scheduler = mem_scheduler_manager_.GetMemScheduler(graph_id); in ClearGraphRuntimeResource()
178 MS_LOG(DEBUG) << "Clear graph:" << graph_id << " data dumper"; in ClearGraphRuntimeResource()
180 …if (auto dumper_iter = graph_data_dumper_.find(graph_id); dumper_iter != graph_data_dumper_.end())… in ClearGraphRuntimeResource()
181 MS_LOG(DEBUG) << "Unload dump info " << graph_id; in ClearGraphRuntimeResource()
188 MS_LOG(DEBUG) << "GraphId:" << graph_id << " not found"; in ClearGraphRuntimeResource()
192 MS_LOG(DEBUG) << "Clear graph:" << graph_id << " dynamic kernels"; in ClearGraphRuntimeResource()
193 if (auto dynamic_kernel_iter = graph_dynamic_kernel_map_.find(graph_id); in ClearGraphRuntimeResource()
195 MS_LOG(DEBUG) << "Start Clear graph:" << graph_id << " dynamic kernel"; in ClearGraphRuntimeResource()
198 auto events_iter = graph_kernel_events_map_.find(graph_id); in ClearGraphRuntimeResource()
[all …]
Dascend_memory_manager.cc135 …8_t *AscendMemoryManager::MallocStaticMem(size_t size, bool communication_mem, uint32_t graph_id) { in MallocStaticMem() argument
149 if (MemoryProfiling::GetInstance().IsMemoryProfilingEnable() && graph_id != kInvalidGraphId) { in MallocStaticMem()
150 auto node = MemoryProfiling::GetInstance().GetGraphMemoryNode(graph_id); in MallocStaticMem()
152 node = MemoryProfiling::GetInstance().AddGraphMemoryNode(graph_id); in MallocStaticMem()
153 MS_LOG(INFO) << "Add graph memory node for static memory profiling, graph id is " << graph_id; in MallocStaticMem()
205 somas_reuse_util_ptr_->ConvertToProfilingNode(graph.graph_id()); in MallocSomasDynamicMem()
Dascend_kernel_runtime.h57 void ClearGraphRuntimeResource(uint32_t graph_id) override;
73 void *GetModelStream(uint32_t graph_id) const override;
95 bool CheckGraphIdValid(GraphId graph_id) const;
98 void LaunchDataDump(GraphId graph_id);
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/common/
Dcommon_backend_optimization.cc37 MS_LOG(INFO) << "start common opt graph:" << kernel_graph->graph_id(); in BackendCommonOptimization()
43 …std::string file_name = "hwopt_common_before_graph_" + std::to_string(kernel_graph->graph_id()) + … in BackendCommonOptimization()
62 …std::string file_name = "hwopt_common_after_graph_" + std::to_string(kernel_graph->graph_id()) + "… in BackendCommonOptimization()
83 …std::string filename = "hwopt_common_final_graph_" + std::to_string(kernel_graph->graph_id()) + ".… in CommonFinalOptimization()
91 MS_LOG(INFO) << "start common unify mindir opt graph:" << kernel_graph->graph_id(); in CommonUnifyMindIROptimization()
98 "hwopt_common_unify_mindir_before_graph_" + std::to_string(kernel_graph->graph_id()) + ".ir"; in CommonUnifyMindIROptimization()
110 …name = "hwopt_common_unify_mindir_after_graph_" + std::to_string(kernel_graph->graph_id()) + ".ir"; in CommonUnifyMindIROptimization()
/third_party/mindspore/mindspore/ccsrc/runtime/framework/
Dgraph_compiler.cc321 DumpIRProto(graph, "before_opt_" + std::to_string(graph->graph_id())); in CompileGraphImpl()
325 MS_LOG(INFO) << "Get graph outputs before optimizer, graph id: " << graph->graph_id(); in CompileGraphImpl()
338 MS_LOG(INFO) << "Get graph outputs after optimizer, graph id: " << graph->graph_id(); in CompileGraphImpl()
359 DumpIRProto(graph, "after_opt_" + std::to_string(graph->graph_id())); in CompileGraphImpl()
376 std::string exec_order_name = "graph_exec_order." + std::to_string(graph->graph_id()); in CompileGraphImpl()
381 return graph->graph_id(); in CompileGraphImpl()
394 return graph->graph_id(); in CompileGraph()
417 auto &outputs_with_index = run_op_graph_output_nodes_[graph->graph_id()]; in CompileGraph()
425 return graph->graph_id(); in CompileGraph()
428 KernelGraphPtr GraphCompiler::Fetch(GraphId graph_id) const { in Fetch()
[all …]
Dgraph_compiler.h108 KernelGraphPtr Fetch(GraphId graph_id) const;
153 …void AddGradAddrToBucket(const GraphId &graph_id, const std::vector<tensor::TensorPtr> &grad_tenso…
158 void ClearAllBucket(const GraphId &graph_id);
160 const std::vector<KernelWithIndex> &GetGraphOutputNodes(GraphId graph_id) const;
168 void EraseSingleOpCache(const GraphInfo &graph_info, const GraphId &graph_id);
/third_party/mindspore/mindspore/ccsrc/debug/data_dump/
De2e_dump.cc276 uint32_t graph_id = graph->graph_id(); in UpdateIterDumpSetup() local
280 starting_graph_id = graph_id; in UpdateIterDumpSetup()
281 …} else if (starting_graph_id == graph_id && !MsContext::GetInstance()->get_param<bool>(MS_CTX_ENAB… in UpdateIterDumpSetup()
295 starting_graph_id = graph_id; in UpdateIterDumpSetup()
321 uint32_t graph_id = graph->graph_id(); in DumpData() local
325 MS_LOG(INFO) << "Current graph id is " << graph_id; in DumpData()
326 std::string dump_path = GenerateDumpPath(graph_id, rank_id); in DumpData()
341 bool E2eDump::DumpSingleNodeData(const CNodePtr &node, uint32_t graph_id, uint32_t rank_id, const D… in DumpSingleNodeData() argument
345 std::string dump_path = GenerateDumpPath(graph_id, rank_id); in DumpSingleNodeData()
356 uint32_t graph_id = graph->graph_id(); in DumpParametersAndConstData() local
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/session/
Dsession_basic.h54 using CallBackFunc = uint32_t (*)(uint32_t graph_id,
109 …void RunGraph(const GraphId &graph_id, const std::vector<tensor::TensorPtr> &inputs, VectorRef *ou…
110 …void RunGraphAsync(const GraphId &graph_id, const std::vector<tensor::TensorPtr> &inputs, VectorRe…
113 …void RunOpsInGraph(const GraphId &graph_id, const std::vector<tensor::TensorPtr> &inputs, VectorRe…
136 virtual bool CheckModelInputs(uint32_t graph_id, const std::vector<tensor::TensorPtr> &inputs, in CheckModelInputs() argument
140 void GetModelInputsInfo(uint32_t graph_id, std::vector<tensor::TensorPtr> *inputs,
142 void GetModelOutputsInfo(uint32_t graph_id, std::vector<tensor::TensorPtr> *outputs,
144 std::vector<tensor::TensorPtr> GetInputNeedLockTensors(const GraphId &graph_id,
147 KernelGraphPtr GetGraph(GraphId graph_id) const;
210 …virtual void CreateOutputTensors(const GraphId &graph_id, const std::vector<tensor::TensorPtr> &in…
[all …]
Dascend_session.cc388 …std::string file_name = "hwopt_d_before_unify_mindir_graph_" + std::to_string(graph->graph_id()) +… in UnifyMindIR()
390 DumpIRProto(graph, "before_unify_mindir_hwopt_" + std::to_string(graph->graph_id())); in UnifyMindIR()
436 …std::string file_name = "hwopt_d_after_unify_mindir_graph_" + std::to_string(graph->graph_id()) + … in UnifyMindIR()
477 if (!input_param->IsUsedByRealKernelInGraph(kernel_graph->graph_id())) { in LoadInputData()
517 auto model_stream = runtime_instance->GetModelStream(kernel_graph->graph_id()); in LoadInputData()
530 auto graph_id = graph->graph_id(); in CompileGraphImpl() local
532 MS_LOG(INFO) << "Compile graph " << graph_id << " success"; in CompileGraphImpl()
533 return graph_id; in CompileGraphImpl()
541 graph->set_root_graph_id(root_graph->graph_id()); in CompileGraphImpl()
553 return root_graph->graph_id(); in CompileGraphImpl()
[all …]
Dsession_basic.cc94 …ByRealKernel(const FuncGraphManagerPtr &manager, const AnfNodePtr &node, const uint32_t graph_id) { in IsUsedByRealKernel() argument
105 if (kernel_graph->graph_id() != graph_id) { in IsUsedByRealKernel()
129 if (!IsUsedByRealKernel(manager, input_node, graph->graph_id())) { in SetInputNodeUsage()
130 node_ptr->SetNotUsedByRealKernelInGraph(graph->graph_id()); in SetInputNodeUsage()
178 if (param_node != nullptr && param_node->IsUsedByRealKernelInGraph(graph->graph_id())) { in GetNodeOutputTensorFromInputs()
460 MS_LOG(INFO) << "The Graph require GIL. Graph id: " << root_graph->graph_id(); in UpdateGraphAquireGilAttr()
523 KernelGraphPtr SessionBasic::GetGraph(mindspore::GraphId graph_id) const { in GetGraph()
524 auto it = graphs_.find(graph_id); in GetGraph()
526 MS_LOG(INFO) << "Can't find graph " << graph_id; in GetGraph()
542 auto graph_id = GetGraphIdByNode(out_node); in InitInternalOutputParameter() local
[all …]
Dascend_inference_session.cc58 auto graph_id = AscendSession::CompileGraphImpl(func_graph); in CompileGraphImpl() local
59 auto kernel_graph = GetGraph(graph_id); in CompileGraphImpl()
84 return graph_id; in CompileGraphImpl()
87 bool AscendInferenceSession::CheckModelInputs(uint32_t graph_id, const std::vector<tensor::TensorPt… in CheckModelInputs() argument
89 MS_LOG(INFO) << "Start check client inputs, graph id : " << graph_id; in CheckModelInputs()
90 auto kernel_graph = GetGraph(graph_id); in CheckModelInputs()
Dgpu_inference_session.cc58 auto graph_id = GPUSession::CompileGraphImpl(func_graph); in CompileGraphImpl() local
59 auto kernel_graph = GetGraph(graph_id); in CompileGraphImpl()
84 return graph_id; in CompileGraphImpl()
87 bool GpuInferenceSession::CheckModelInputs(uint32_t graph_id, const std::vector<tensor::TensorPtr> … in CheckModelInputs() argument
89 MS_LOG(INFO) << "Start check client inputs, graph id : " << graph_id; in CheckModelInputs()
90 auto kernel_graph = GetGraph(graph_id); in CheckModelInputs()
/third_party/mindspore/mindspore/ccsrc/utils/
Dcallbacks_ge.cc70 static TensorPtr GetMeTensorTransformed(uint32_t graph_id, const std::string &parameter_name, in GetMeTensorTransformed() argument
72 FuncGraphPtr anf_graph = transform::DfGraphManager::GetInstance().GetAnfGraph(graph_id); in GetMeTensorTransformed()
87 uint32_t CheckpointSaveCallback(uint32_t graph_id, const std::map<std::string, ge::Tensor> &params_… in CheckpointSaveCallback() argument
99 TensorPtr tensor_ptr = GetMeTensorTransformed(graph_id, name, ge_tensor_ptr); in CheckpointSaveCallback()
158 uint32_t MS_EXPORT SummarySaveCallback(uint32_t graph_id, const std::map<std::string, ge::Tensor> &… in SummarySaveCallback() argument
162 MS_LOG(DEBUG) << "Start the summary save callback function for graph " << graph_id << "."; in SummarySaveCallback()
/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dmemory_manager.cc48 …MS_LOG(INFO) << "Graph " << graph.graph_id() << ": TotalSomasReuseDynamicSize [" << total_allocate… in MallocSomasDynamicMem()
61 std::string name = "somas_allocate_info." + std::to_string(graph.graph_id()); in MallocSomasDynamicMem()
64 name = "somas_mem_info." + std::to_string(graph.graph_id()); in MallocSomasDynamicMem()
69 …le_path = GetSaveGraphsPathName("somas_allocate_info_" + std::to_string(graph.graph_id()) + ".ir"); in MallocSomasDynamicMem()
72 …em_file_path = GetSaveGraphsPathName("somas_mem_info_" + std::to_string(graph.graph_id()) + ".ir"); in MallocSomasDynamicMem()
126 …Manager::MallocMem(MemType type, size_t size, const DeviceAddressPtr &address, uint32_t graph_id) { in MallocMem() argument
130 ptr = MallocStaticMem(size, false, graph_id); in MallocMem()
Dkernel_info.h69 void set_graph_id(uint32_t graph_id) { graph_id_ = graph_id; } in set_graph_id() argument
70 uint32_t graph_id() const { return graph_id_; } in graph_id() function
/third_party/mindspore/mindspore/ccsrc/profiler/device/ascend/
Dmemory_profiling.cc54 std::shared_ptr<GraphMemory> MemoryProfiling::AddGraphMemoryNode(uint32_t graph_id) { in AddGraphMemoryNode() argument
55 std::shared_ptr<GraphMemory> node = std::make_shared<GraphMemory>(graph_id); in AddGraphMemoryNode()
57 graph_memory_[graph_id] = node; in AddGraphMemoryNode()
61 std::shared_ptr<GraphMemory> MemoryProfiling::GetGraphMemoryNode(uint32_t graph_id) const { in GetGraphMemoryNode()
62 auto node = graph_memory_.find(graph_id); in GetGraphMemoryNode()
Dmemory_profiling.h83 explicit GraphMemory(uint32_t graph_id) : graph_id_(graph_id), static_mem_size_(0) {} in GraphMemory() argument
111 std::shared_ptr<GraphMemory> AddGraphMemoryNode(uint32_t graph_id);
112 std::shared_ptr<GraphMemory> GetGraphMemoryNode(uint32_t graph_id) const;
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dgpu_kernel_runtime.cc298 void GPUKernelRuntime::ClearGraphRuntimeResource(uint32_t graph_id) { in ClearGraphRuntimeResource() argument
299 MS_LOG(INFO) << "Clear graph:" << graph_id << " GPU runtime resource"; in ClearGraphRuntimeResource()
300 graph_output_map_.erase(graph_id); in ClearGraphRuntimeResource()
305 if (is_alloc_inplace_res_[graph->graph_id()]) { in AllocInplaceNodeMemory()
308 is_alloc_inplace_res_[graph->graph_id()] = true; in AllocInplaceNodeMemory()
466 auto graph_id = graph.graph_id(); in Run() local
467 auto iter = mem_swap_map_.find(graph_id); in Run()
473 auto mem_reuse_iter = mem_reuse_util_map_.find(graph_id); in Run()
505 auto graph_id = graph->graph_id(); in RunOneStep() local
506 if (!is_first_step_map_[graph_id] || graph->is_dynamic_shape()) { in RunOneStep()
[all …]
/third_party/mindspore/mindspore/ccsrc/vm/
Dbackend.cc74 result.graph_id = kInvalidGraphId; in MsConvert()
81 GraphId graph_id = current_session->CompileGraph(segment, outputs); in MsConvert() local
82 segment->graph_id_ = graph_id; in MsConvert()
83 auto graph = current_session->GetGraph(graph_id); in MsConvert()
96 MS_LOG(INFO) << "Link graph " << pre_segment->graph_id_ << " to " << graph_id; in MsConvert()
108 other_sess_->BuildGraph(graph_id); in MsConvert()
111 target_sess_->BuildGraph(graph_id); in MsConvert()
115 …[graph_id, target, this](const VectorRef &args) -> VectorRef { return MsRunGraph(graph_id, args, t… in MsConvert()
119 [graph_id, this](const VectorRef &args) -> VectorRef { return MsSimuRunGraph(graph_id); }); in MsConvert()
121 result.graph_id = graph_id; in MsConvert()
[all …]
/third_party/mindspore/mindspore/ccsrc/profiler/device/gpu/
Dgpu_profiling_utils.cc52 is_first_step_map_[graph_ptr->graph_id()] = false; in GetProfilingTraceFromEnv()
182 bool ProfilingUtils::IsFirstStep(const uint32_t graph_id) { in IsFirstStep() argument
183 auto iter = is_first_step_map_.find(graph_id); in IsFirstStep()
185 is_first_step_map_[graph_id] = false; in IsFirstStep()
188 return is_first_step_map_[graph_id]; in IsFirstStep()
/third_party/mindspore/mindspore/_extends/parallel_compile/tbe_compiler/
Dtuner.py316 graph_id = 0
319 … ret = dispatch_single_tune_task(graph_id, task_id, l1size, base_kernel, kernel_name, full_name,
356 graph_id = 0
358 … ret = dispatch_fusion_tune_task(graph_id, task_id, l1size, base_kernel, kernel_name, full_name,
372 graph_id = 0
374 dispatch_autotune_task(graph_id, task_id, l1size, converted_json, [], kernel_name)
383 graph_id = 0
386 dispatch_autotune_task(graph_id, task_id, l1size, converted_json, [], kernel_name)
/third_party/mindspore/mindspore/ccsrc/debug/debugger/
Ddebugger.cc302 auto graph_id = graph_ptr->graph_id(); in PreExecute() local
305 rungraph_id_list_.push_back(graph_id); in PreExecute()
308 …if (std::find(rungraph_id_list_.begin(), rungraph_id_list_.end(), graph_id) == rungraph_id_list_.e… in PreExecute()
309 rungraph_id_list_.push_back(graph_id); in PreExecute()
331 …} else if (debugger_enabled_ && graph_id == rungraph_id_list_.front() && device_target_ == kGPUDev… in PreExecute()
401 void Debugger::DumpSingleNode(const CNodePtr &node, uint32_t graph_id) { in DumpSingleNode() argument
404 (void)E2eDump::DumpSingleNodeData(node, graph_id, rank_id, debugger_.get()); in DumpSingleNode()
420 kernel_graph->set_root_graph_id(kernel_graph->graph_id()); in DumpInGraphCompiler()
421 std::string final_graph = "trace_code_graph_" + std::to_string(kernel_graph->graph_id()); in DumpInGraphCompiler()
427 …DumpGraphExeOrder("ms_execution_order_graph_" + std::to_string(kernel_graph->graph_id()) + ".csv",… in DumpInGraphCompiler()
[all …]

1234