diff options
author | Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> | 2018-10-12 13:00:55 +0100 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-10-22 16:57:53 +0100 |
commit | 3b278e9261bd0de67c82f7d6c36731f118124f52 (patch) | |
tree | 3750ee01827809141752302e94d4d25a21f88492 /src/armnn/NeonInterceptorScheduler.cpp | |
parent | d3360cd490eafc76ceddb6760054bd80444179c1 (diff) | |
download | armnn-3b278e9261bd0de67c82f7d6c36731f118124f52.tar.gz |
IVGCVSW-1938: Move backend-specific source files to the corresponding backend
Change-Id: I558a9a007604afc55e536d877f8da7d0215cc9c3
Diffstat (limited to 'src/armnn/NeonInterceptorScheduler.cpp')
-rw-r--r-- | src/armnn/NeonInterceptorScheduler.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/armnn/NeonInterceptorScheduler.cpp b/src/armnn/NeonInterceptorScheduler.cpp deleted file mode 100644 index 03b4670296..0000000000 --- a/src/armnn/NeonInterceptorScheduler.cpp +++ /dev/null @@ -1,47 +0,0 @@ -// -// Copyright © 2017 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#include "NeonInterceptorScheduler.hpp" - -#include <boost/assert.hpp> - -namespace armnn{ - -NeonInterceptorScheduler::NeonInterceptorScheduler(arm_compute::IScheduler &realScheduler) - : m_Kernels(nullptr), m_RealScheduler(realScheduler) -{ -} - -void NeonInterceptorScheduler::set_num_threads(unsigned int numThreads) -{ - m_RealScheduler.set_num_threads(numThreads); -} - -unsigned int NeonInterceptorScheduler::num_threads() const -{ - return m_RealScheduler.num_threads(); -} - -void NeonInterceptorScheduler::schedule(arm_compute::ICPPKernel* kernel, const Hints& hints) -{ - WallClockTimer::clock::time_point startTime = WallClockTimer::clock::now(); - m_RealScheduler.schedule(kernel, hints.split_dimension()); - WallClockTimer::clock::time_point stopTime = WallClockTimer::clock::now(); - - const auto delta = std::chrono::duration<double, std::micro>(stopTime - startTime); - m_Kernels->emplace_back(kernel->name(), delta.count(), Measurement::Unit::TIME_US); -} - -void NeonInterceptorScheduler::run_workloads(std::vector <Workload>& workloads) -{ - WallClockTimer::clock::time_point startTime = WallClockTimer::clock::now(); - m_RealScheduler.run_tagged_workloads(workloads, nullptr); - WallClockTimer::clock::time_point stopTime = WallClockTimer::clock::now(); - - const auto delta = std::chrono::duration<double, std::micro>(stopTime - startTime); - m_Kernels->emplace_back(std::string("Workload"), delta.count(), Measurement::Unit::TIME_US); -} - -} // namespace armnn
\ No newline at end of file |