diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2020-02-05 17:48:59 +0000 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2020-02-07 09:28:35 +0000 |
commit | 1aff393b359b518925f66901439466f9bc14c49d (patch) | |
tree | 9d31aa1d3dabb4b637093f6fd1a9f1549621c653 /src/backends/cl | |
parent | 3446057492907d0c7695605a5b9a961a78158d7e (diff) | |
download | armnn-1aff393b359b518925f66901439466f9bc14c49d.tar.gz |
IVGCVSW-4317 Implement the Profiling Context Initialisation
* Call CreateBackendProfilingContext on each backend from Runtime passing
an instance of the BackendProfiling interface.
* Modify the signature of CreateBackendProfilingContext to remove const
and return a shared_ptr to BackendProfilingContext
* Add concrete BackendProfiling class.
* Store BackendProfilingContexts in Profiling service.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I975eaa2093ae91fa623835f65f9e5b25eb65117a
Diffstat (limited to 'src/backends/cl')
-rw-r--r-- | src/backends/cl/ClBackend.cpp | 3 | ||||
-rw-r--r-- | src/backends/cl/ClBackend.hpp | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/backends/cl/ClBackend.cpp b/src/backends/cl/ClBackend.cpp index 8e839aec85..f662754693 100644 --- a/src/backends/cl/ClBackend.cpp +++ b/src/backends/cl/ClBackend.cpp @@ -75,8 +75,7 @@ ClBackend::CreateBackendContext(const IRuntime::CreationOptions& options) const } IBackendInternal::IBackendProfilingContextPtr ClBackend::CreateBackendProfilingContext( - const IRuntime::CreationOptions&, - armnn::profiling::IBackendProfiling&) const + const IRuntime::CreationOptions&, IBackendProfilingPtr&) { return IBackendProfilingContextPtr{}; } diff --git a/src/backends/cl/ClBackend.hpp b/src/backends/cl/ClBackend.hpp index 703ae1723d..e85c616505 100644 --- a/src/backends/cl/ClBackend.hpp +++ b/src/backends/cl/ClBackend.hpp @@ -31,8 +31,8 @@ public: void RegisterTensorHandleFactories(TensorHandleFactoryRegistry& registry) override; IBackendInternal::IBackendContextPtr CreateBackendContext(const IRuntime::CreationOptions&) const override; - IBackendInternal::IBackendProfilingContextPtr CreateBackendProfilingContext(const IRuntime::CreationOptions&, - armnn::profiling::IBackendProfiling&) const override; + IBackendInternal::IBackendProfilingContextPtr CreateBackendProfilingContext( + const IRuntime::CreationOptions&, IBackendProfilingPtr& backendProfiling) override; IBackendInternal::Optimizations GetOptimizations() const override; IBackendInternal::ILayerSupportSharedPtr GetLayerSupport() const override; |