Searched refs:profiler_inst (Results 1 – 5 of 5) sorted by relevance
79 auto profiler_inst = profiler::gpu::GPUProfiler::GetInstance(); in Init() local80 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()
258 const auto &profiler_inst = profiler::cpu::CPUProfiler::GetInstance(); in LaunchKernel() local259 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() local274 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()
404 const auto &profiler_inst = profiler::gpu::GPUProfiler::GetInstance(); in LaunchKernel() local405 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() local448 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()
458 auto profiler_inst = profiler::cpu::CPUProfiler::GetInstance(); in Run() local459 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()
835 auto profiler_inst = profiler::gpu::GPUProfiler::GetInstance(); in LaunchKernelWithoutMock() local836 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()