aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/ProfilingEvent.hpp
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-01-10 17:34:20 +0000
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-01-11 12:20:47 +0000
commit992d6dc57d8463729910b688f0fb5825d0d3ccf2 (patch)
tree87b504d174848169550240f300f359dd57aaa1fd /src/armnn/ProfilingEvent.hpp
parent1f0ff35236c1dd05954735f7fed9c2807770479e (diff)
downloadarmnn-992d6dc57d8463729910b688f0fb5825d0d3ccf2.tar.gz
IVGCVSW-2454 Refactor ArmNN to support pluggable backends from a separate
code base * Made the virtual functions in ILayerSupport.hpp pure * Created a LayerSupportBase class with the default implementation of the interface * Made the backend layer support classes inherit from the base class, instead of directly from the interface * Refactored the profiler and the profiling event classes to use the BackendId instead of the Compute * Implemented a proper MemCopy support method * Changed Compute to BackendId in the profiling API and objects * Removed static references to pluggable backends !android-nn-driver:492 Change-Id: Id6332b5f48c980819e0a09adc818d1effd057296
Diffstat (limited to 'src/armnn/ProfilingEvent.hpp')
-rw-r--r--src/armnn/ProfilingEvent.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/armnn/ProfilingEvent.hpp b/src/armnn/ProfilingEvent.hpp
index 134735530f..9f57753585 100644
--- a/src/armnn/ProfilingEvent.hpp
+++ b/src/armnn/ProfilingEvent.hpp
@@ -27,10 +27,10 @@ public:
using Instruments = std::vector<InstrumentPtr>;
Event(const std::string& eventName,
- Profiler* profiler,
- Event* parent,
- const Compute computeDevice,
- std::vector<InstrumentPtr>&& instrument);
+ Profiler* profiler,
+ Event* parent,
+ const BackendId backendId,
+ std::vector<InstrumentPtr>&& instrument);
Event(const Event& other) = delete;
@@ -62,9 +62,9 @@ public:
/// \return Pointer of the parent event
const Event* GetParentEvent() const;
- /// Get the compute device of the event
- /// \return Compute device of the event
- Compute GetComputeDevice() const;
+ /// Get the backend id of the event
+ /// \return Backend id of the event
+ BackendId GetBackendId() const;
/// Assignment operator
Event& operator=(const Event& other) = delete;
@@ -82,8 +82,8 @@ private:
/// Stores optional parent event
Event* m_Parent;
- /// Compute device
- Compute m_ComputeDevice;
+ /// Backend id
+ BackendId m_BackendId;
/// Instruments to use
Instruments m_Instruments;