Home
last modified time | relevance | path

Searched refs:cost_time (Results 1 – 23 of 23) sorted by relevance

/third_party/mindspore/tests/st/pynative/
Dtest_pynative_lenet.py161 cost_time = end_time - start_time
162 total_time = total_time + cost_time
164 print("======epoch: ", epoch, " loss: ", loss_output.asnumpy(), " cost time: ", cost_time)
198 cost_time = end_time - start_time
199 total_time = total_time + cost_time
201 print("======epoch: ", epoch, " loss: ", loss_output.asnumpy(), " cost time: ", cost_time)
Dtest_pynative_resnet50_gpu.py413 cost_time = end_time - start_time
414 print("======step: ", step, " loss: ", loss_output.asnumpy(), " cost time: ", cost_time)
415 if step > 1 and cost_time > 0.18:
/third_party/mindspore/mindspore/ccsrc/runtime/device/gpu/
Dgpu_event.cc50 void GpuEvent::ElapsedTime(float *cost_time, const DeviceEvent *other) { in ElapsedTime() argument
55 CHECK_CUDA_RET_WITH_EXCEPT_NOTRACE(cudaEventElapsedTime(cost_time, event_, gpu_event->event_), in ElapsedTime()
Dgpu_memory_copy_manager.cc51 bool profiling, float *cost_time) { in AddMemSwapInTask() argument
76 …CHECK_OP_RET_WITH_EXCEPT(CudaDriver::ElapsedTime(cost_time, start, end), "Failed to record elapsed… in AddMemSwapInTask()
Dgpu_event.h33 void ElapsedTime(float *cost_time, const DeviceEvent *other) override;
Dcuda_driver.cc223 bool CudaDriver::ElapsedTime(float *cost_time, const CudaDeviceEvent &start, const CudaDeviceEvent … in ElapsedTime() argument
224 auto ret = cudaEventElapsedTime(cost_time, (cudaEvent_t)start, (cudaEvent_t)end); in ElapsedTime()
Dgpu_memory_copy_manager.h44 float *cost_time) override;
Dcuda_driver.h63 …static bool ElapsedTime(float *cost_time, const CudaDeviceEvent &start, const CudaDeviceEvent &end…
Dgpu_kernel_runtime.cc915 float cost_time = 0; in LaunchKernelWithTimeProfiling() local
928 …CHECK_OP_RET_WITH_EXCEPT(CudaDriver::ElapsedTime(&cost_time, start, end), "Failed to record elapse… in LaunchKernelWithTimeProfiling()
930 mem_swap_manager_->AddKernelExecutionPerform(kernel, cost_time); in LaunchKernelWithTimeProfiling()
964 float cost_time = 0; in AddMemorySwapTask() local
966 &cost_time); in AddMemorySwapTask()
969 std::make_pair(0, cost_time)); in AddMemorySwapTask()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_event.cc79 void AscendEvent::ElapsedTime(float *cost_time, const DeviceEvent *other) { in ElapsedTime() argument
84 auto ret = rtEventElapsedTime(cost_time, event_, ascend_other->event_); in ElapsedTime()
Dascend_event.h33 void ElapsedTime(float *cost_time, const DeviceEvent *other) override;
/third_party/mindspore/tests/st/nontask_sink/
Dtest_lenet.py152 cost_time = end_time - start_time
153 total_time = total_time + cost_time
155 print("======epoch: ", epoch, " loss: ", loss_output.asnumpy(), " cost time: ", cost_time)
/third_party/mindspore/tests/st/pynative/ms_function/
Dtest_pynative_lenet_ms_function.py194 cost_time = end_time - start_time
195 total_time = total_time + cost_time
197 print("======epoch: ", epoch, " loss: ", loss_output.asnumpy(), " cost time: ", cost_time)
/third_party/mindspore/mindspore/core/ir/
Ddevice_event.h28 virtual void ElapsedTime(float *cost_time, const DeviceEvent *other) = 0;
/third_party/openh264/codec/encoder/core/inc/
Dstat.h62 int32_t cost_time; member
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dcpu_kernel.cc129 double cost_time = GetTime() - start_time; in ParallelForAutoSearch() local
130 parallel_search_info->tmp_sum_cost_time += cost_time; in ParallelForAutoSearch()
205 double cost_time = GetTime() - start_time; in ParallelLaunchAutoSearch() local
206 parallel_search_info->tmp_sum_cost_time += cost_time; in ParallelLaunchAutoSearch()
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/
Dpynative_profiling.h40 static void SetStageStatTime(const std::string &stage_name, double cost_time);
Dpynative_profiling.cc135 void PynativeProfiler::SetStageStatTime(const std::string &stage_name, double cost_time) { in SetStageStatTime() argument
139 stage_stat_time_vec_.emplace_back(stage_name, cost_time); in SetStageStatTime()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/mem_reuse/
Dmem_copy_manager.h109 float *cost_time) {} in AddMemSwapInTask() argument
Dmem_swap_manager.h53 bool mock, bool profiling = false, float *cost_time = nullptr) const;
Dmem_swap_manager.cc306 float *cost_time) const { in AddMemSwapTask()
311 mem_copy_manager_->AddMemSwapInTask(device_address, host_address, profiling, cost_time); in AddMemSwapTask()
/third_party/mindspore/mindspore/ccsrc/runtime/device/cpu/
Dcpu_kernel_runtime.cc491 double cost_time = GetTime() - start_time; in Run() local
492 …MS_LOG(INFO) << "cpu kernel: " << kernel->fullname_with_scope() << " costs " << cost_time * 1e6 <… in Run()
/third_party/mindspore/mindspore/ccsrc/runtime/device/
Dkernel_runtime.cc1251 float cost_time = 0; in LaunchKernelWithPynativeProfiling() local
1263 start->ElapsedTime(&cost_time, end.get()); in LaunchKernelWithPynativeProfiling()
1265 double launch_start_time = launch_end_time - cost_time / kBasicTimeTransferUnit; in LaunchKernelWithPynativeProfiling()
1268 …PynativeProfiler::SetDeviceOpNameAndLaunchCostTime(std::make_pair(op_name, cost_time / kBasicTimeT… in LaunchKernelWithPynativeProfiling()