diff options
author | Nina Drozd <nina.drozd@arm.com> | 2018-09-21 18:42:09 +0100 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-10-10 16:16:57 +0100 |
commit | 69851b525b9040ee7bf4b796efe74d473bc4e321 (patch) | |
tree | 1a3b0ae764a6bc4c4249c69df198fef3bb92c833 /src/armnn/NeonInterceptorScheduler.cpp | |
parent | e448be3ac55897a3eabe85962891f8414f8e3cf9 (diff) | |
download | armnn-69851b525b9040ee7bf4b796efe74d473bc4e321.tar.gz |
IVGCVSW-1821 - update NEON workload utils to use timers in correct order, updated units used in NeonTimer
Change-Id: I593af42bd2930dd9d147354b706087e3ac260fe9
Diffstat (limited to 'src/armnn/NeonInterceptorScheduler.cpp')
-rw-r--r-- | src/armnn/NeonInterceptorScheduler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/armnn/NeonInterceptorScheduler.cpp b/src/armnn/NeonInterceptorScheduler.cpp index 8363def68e..7e2737e89e 100644 --- a/src/armnn/NeonInterceptorScheduler.cpp +++ b/src/armnn/NeonInterceptorScheduler.cpp @@ -31,6 +31,7 @@ void NeonInterceptorScheduler::schedule(arm_compute::ICPPKernel* kernel, const H m_RealScheduler.schedule(kernel, hints.split_dimension()); m_Timer.Stop(); + m_Timer.SetScaleFactor(Measurement::Unit::TIME_US); std::vector<Measurement> measurements = m_Timer.GetMeasurements(); BOOST_ASSERT(!measurements.empty()); @@ -46,6 +47,7 @@ void NeonInterceptorScheduler::run_workloads(std::vector <Workload>& workloads) m_RealScheduler.run_tagged_workloads(workloads, nullptr); m_Timer.Stop(); + m_Timer.SetScaleFactor(Measurement::Unit::TIME_US); std::vector<Measurement> measurements = m_Timer.GetMeasurements(); BOOST_ASSERT_MSG(measurements.size() == 3, "WallClockTimer does not have correct amount of measurements."); |