aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/ProfilingEvent.cpp
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.cpp
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.cpp')
-rw-r--r--src/armnn/ProfilingEvent.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/armnn/ProfilingEvent.cpp b/src/armnn/ProfilingEvent.cpp
index 55e931a163..60fb2f79c6 100644
--- a/src/armnn/ProfilingEvent.cpp
+++ b/src/armnn/ProfilingEvent.cpp
@@ -11,12 +11,12 @@ namespace armnn
Event::Event(const std::string& eventName,
Profiler* profiler,
Event* parent,
- const Compute computeDevice,
+ const BackendId backendId,
std::vector<InstrumentPtr>&& instruments)
: m_EventName(eventName)
, m_Profiler(profiler)
, m_Parent(parent)
- , m_ComputeDevice(computeDevice)
+ , m_BackendId(backendId)
, m_Instruments(std::move(instruments))
{
}
@@ -25,7 +25,7 @@ Event::Event(Event&& other) noexcept
: m_EventName(std::move(other.m_EventName))
, m_Profiler(other.m_Profiler)
, m_Parent(other.m_Parent)
- , m_ComputeDevice(other.m_ComputeDevice)
+ , m_BackendId(other.m_BackendId)
, m_Instruments(std::move(other.m_Instruments))
{
@@ -79,9 +79,9 @@ const Event* Event::GetParentEvent() const
return m_Parent;
}
-Compute Event::GetComputeDevice() const
+BackendId Event::GetBackendId() const
{
- return m_ComputeDevice;
+ return m_BackendId;
}
Event& Event::operator=(Event&& other) noexcept
@@ -94,7 +94,7 @@ Event& Event::operator=(Event&& other) noexcept
m_EventName = other.m_EventName;
m_Profiler = other.m_Profiler;
m_Parent = other.m_Parent;
- m_ComputeDevice = other.m_ComputeDevice;
+ m_BackendId = other.m_BackendId;
other.m_Profiler = nullptr;
other.m_Parent = nullptr;
return *this;