11 : m_Kernels(nullptr), m_RealScheduler(realScheduler)
17 m_RealScheduler.set_num_threads(numThreads);
22 return m_RealScheduler.num_threads();
27 WallClockTimer::clock::time_point startTime = WallClockTimer::clock::now();
28 m_RealScheduler.schedule(kernel, hints.split_dimension());
29 WallClockTimer::clock::time_point stopTime = WallClockTimer::clock::now();
31 const auto delta = std::chrono::duration<double, std::micro>(stopTime - startTime);
32 m_Kernels->emplace_back(kernel->name(), delta.count(), Measurement::Unit::TIME_US);
37 WallClockTimer::clock::time_point startTime = WallClockTimer::clock::now();
38 m_RealScheduler.run_tagged_workloads(workloads,
nullptr);
39 WallClockTimer::clock::time_point stopTime = WallClockTimer::clock::now();
41 const auto delta = std::chrono::duration<double, std::micro>(stopTime - startTime);
42 m_Kernels->emplace_back(std::string(
"Workload"), delta.count(), Measurement::Unit::TIME_US);
47 WallClockTimer::clock::time_point startTime = WallClockTimer::clock::now();
48 m_RealScheduler.run_tagged_workloads(workloads, tag);
49 WallClockTimer::clock::time_point stopTime = WallClockTimer::clock::now();
51 const auto delta = std::chrono::duration<double, std::micro>(stopTime - startTime);
52 m_Kernels->emplace_back(std::string(tag !=
nullptr ? tag :
"Unknown"), delta.count(), Measurement::Unit::TIME_US);
57 arm_compute::ITensorPack &tensors )
60 WallClockTimer::clock::time_point startTime = WallClockTimer::clock::now();
61 m_RealScheduler.schedule_op(kernel, hints, tensors);
62 WallClockTimer::clock::time_point stopTime = WallClockTimer::clock::now();
64 const auto delta = std::chrono::duration<double, std::micro>(stopTime - startTime);
65 m_Kernels->emplace_back(kernel->name(), delta.count(), Measurement::Unit::TIME_US);
Copyright (c) 2020 ARM Limited.
unsigned int num_threads() const override
void schedule(arm_compute::ICPPKernel *kernel, const Hints &hints) override
void run_tagged_workloads(std::vector< Workload > &workloads, const char *tag) override
NeonInterceptorScheduler(arm_compute::IScheduler &realScheduler)
void set_num_threads(unsigned int numThreads) override
void run_workloads(std::vector< Workload > &workloads) override
void schedule_op(arm_compute::ICPPKernel *kernel, const Hints &hints, arm_compute::ITensorPack &tensors) override