From 0e2bab81442ee6cc2b94e4f7881ed0c5c6af65e7 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Thu, 19 Mar 2020 17:03:14 +0000 Subject: Creating gh-pages documentation for ArmNN Signed-off-by: Jim Flynn --- src/backends/cl/OpenClTimer.hpp | 59 ----------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 src/backends/cl/OpenClTimer.hpp (limited to 'src/backends/cl/OpenClTimer.hpp') diff --git a/src/backends/cl/OpenClTimer.hpp b/src/backends/cl/OpenClTimer.hpp deleted file mode 100644 index 5539e885d8..0000000000 --- a/src/backends/cl/OpenClTimer.hpp +++ /dev/null @@ -1,59 +0,0 @@ -// -// Copyright © 2017 Arm Ltd. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#pragma once - -#include - -#include -#include - -#include -#include - -namespace armnn -{ - -/// OpenClTimer instrument that times all OpenCl kernels executed between calls to Start() and Stop(). -class OpenClTimer : public Instrument -{ -public: - OpenClTimer(); - ~OpenClTimer() = default; - - /// Start the OpenCl timer - void Start() override; - - /// Stop the OpenCl timer - void Stop() override; - - /// Get the name of the timer - /// \return Name of the timer - const char* GetName() const override { return "OpenClKernelTimer"; } - - /// Get the recorded measurements. This will be a list of the execution durations for all the OpenCl kernels. - /// \return Recorded measurements - std::vector GetMeasurements() const override; - -private: - using CLScheduler = arm_compute::CLScheduler; - using CLSymbols = arm_compute::CLSymbols; - using ClEvent = cl::Event; - using ClEnqueueFunc = decltype(CLSymbols::clEnqueueNDRangeKernel_ptr); - - /// Stores info about the OpenCl kernel - struct KernelInfo - { - KernelInfo(const std::string& name, cl_event& event) : m_Name(name), m_Event(event) {} - - std::string m_Name; - ClEvent m_Event; - }; - - std::list m_Kernels; ///< List of all kernels executed - ClEnqueueFunc m_OriginalEnqueueFunction; ///< Keep track of original OpenCl function -}; - -} //namespace armnn \ No newline at end of file -- cgit v1.2.1