diff options
author | David Beck <david.beck@arm.com> | 2018-10-23 16:09:36 +0100 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-10-25 09:49:58 +0100 |
commit | 79141b9662547eeefb3ad533637223de40726e12 (patch) | |
tree | 9869465c1769fb1f6e2bf86306fbac3bc1b6add4 /src/backends/cl/ClWorkloadFactory.cpp | |
parent | 29c75de868ac3a86a70b25f8da0d0c7e47d40803 (diff) | |
download | armnn-79141b9662547eeefb3ad533637223de40726e12.tar.gz |
IVGCVSW-2071 : remove GetCompute() from the WorkloadFactory interface
Change-Id: I44a9d26d1a5d876d381aee4c6450af62811d0dbb
Diffstat (limited to 'src/backends/cl/ClWorkloadFactory.cpp')
-rw-r--r-- | src/backends/cl/ClWorkloadFactory.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/backends/cl/ClWorkloadFactory.cpp b/src/backends/cl/ClWorkloadFactory.cpp index c697d90950..fd92db34d5 100644 --- a/src/backends/cl/ClWorkloadFactory.cpp +++ b/src/backends/cl/ClWorkloadFactory.cpp @@ -3,6 +3,7 @@ // SPDX-License-Identifier: MIT // #include "ClWorkloadFactory.hpp" +#include "ClBackendId.hpp" #include <armnn/Exceptions.hpp> #include <armnn/Utils.hpp> @@ -34,11 +35,21 @@ namespace armnn { +namespace +{ +static const BackendId s_Id{ClBackendId()}; +} + bool ClWorkloadFactory::IsLayerSupported(const Layer& layer, Optional<DataType> dataType, std::string& outReasonIfUnsupported) { - return IWorkloadFactory::IsLayerSupported(Compute::GpuAcc, layer, dataType, outReasonIfUnsupported); + return IWorkloadFactory::IsLayerSupported(s_Id, layer, dataType, outReasonIfUnsupported); +} + +const BackendId& ClWorkloadFactory::GetBackendId() const +{ + return s_Id; } #ifdef ARMCOMPUTECL_ENABLED |