Home
last modified time | relevance | path

Searched refs:profiler_inst (Results 1 – 5 of 5) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/data/
Ddataset_iterator_kernel.cc79 auto profiler_inst = profiler::gpu::GPUProfiler::GetInstance(); in Init() local
80 MS_EXCEPTION_IF_NULL(profiler_inst); in Init()
81 profiling_enable_ = profiler_inst->GetEnableFlag(); in Init()
83 std::string path = profiler_inst->ProfileDataPath(); in Init()
86 profiler_inst->RegisterProfilingOp(profiling_op_); in Init()
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/cpu/
Dcpu_device_context.cc258 const auto &profiler_inst = profiler::cpu::CPUProfiler::GetInstance(); in LaunchKernel() local
259 MS_EXCEPTION_IF_NULL(profiler_inst); in LaunchKernel()
260 if (profiler_inst->GetEnableFlag()) { in LaunchKernel()
273 auto profiler_inst = profiler::cpu::CPUProfiler::GetInstance(); in LaunchKernelWithProfiling() local
274 MS_EXCEPTION_IF_NULL(profiler_inst); in LaunchKernelWithProfiling()
280 profiler_inst->OpDataProducerBegin(kernel->fullname_with_scope(), pid); in LaunchKernelWithProfiling()
282 profiler_inst->OpDataProducerEnd(); in LaunchKernelWithProfiling()
/third_party/mindspore/mindspore/ccsrc/runtime/hardware/gpu/
Dgpu_device_context.cc404 const auto &profiler_inst = profiler::gpu::GPUProfiler::GetInstance(); in LaunchKernel() local
405 MS_EXCEPTION_IF_NULL(profiler_inst); in LaunchKernel()
407 if (!profiler_inst->GetEnableFlag()) { in LaunchKernel()
447 auto profiler_inst = profiler::gpu::GPUProfiler::GetInstance(); in LaunchKernelWithProfiling() local
448 MS_EXCEPTION_IF_NULL(profiler_inst); in LaunchKernelWithProfiling()
453 profiler_inst->SetStepTraceOpName(profiling_trace); in LaunchKernelWithProfiling()
459 profiler_inst->OpDataProducerBegin(kernel->fullname_with_scope(), streams_.front()); in LaunchKernelWithProfiling()
461 profiler_inst->OpDataProducerEnd(); in LaunchKernelWithProfiling()
463 auto op_launch_start_end_time = profiler_inst->GetSingleOpLaunchTime(); in LaunchKernelWithProfiling()
469 if (profiler_inst->GetSyncEnableFlag()) { in LaunchKernelWithProfiling()
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/
Dcpu_kernel_runtime.cc458 auto profiler_inst = profiler::cpu::CPUProfiler::GetInstance(); in Run() local
459 MS_EXCEPTION_IF_NULL(profiler_inst); in Run()
460 if (profiler_inst->GetEnableFlag()) { in Run()
462 profiler_inst->OpDataProducerBegin(kernel->fullname_with_scope(), pid); in Run()
479 if (profiler_inst->GetEnableFlag()) { in Run()
480 profiler_inst->OpDataProducerEnd(); in Run()
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dgpu_kernel_runtime.cc835 auto profiler_inst = profiler::gpu::GPUProfiler::GetInstance(); in LaunchKernelWithoutMock() local
836 MS_EXCEPTION_IF_NULL(profiler_inst); in LaunchKernelWithoutMock()
838 …if (profiler_inst->GetEnableFlag() && profiler::gpu::ProfilingUtils::IsFirstStep(graph->graph_id()… in LaunchKernelWithoutMock()
841 profiler_inst->SetStepTraceOpName(profiling_trace); in LaunchKernelWithoutMock()
846 if (profiler_inst->GetEnableFlag()) { in LaunchKernelWithoutMock()
847 profiler_inst->OpDataProducerBegin(kernel->fullname_with_scope(), stream_); in LaunchKernelWithoutMock()
860 if (profiler_inst->GetEnableFlag()) { in LaunchKernelWithoutMock()
861 profiler_inst->OpDataProducerEnd(); in LaunchKernelWithoutMock()
862 if (profiler_inst->GetSyncEnableFlag()) { in LaunchKernelWithoutMock()