diff options
author | Matthew Bentham <Matthew.Bentham@arm.com> | 2020-02-04 10:03:55 +0000 |
---|---|---|
committer | Derek Lamberti <derek.lamberti@arm.com> | 2020-02-04 13:13:46 +0000 |
commit | 9a61fa6bdc8724cc66eba532360e0e48b6b1a60e (patch) | |
tree | 547a2e5db5af7517171a84c9395ac9c42151e6db /src/armnn/DeviceSpec.hpp | |
parent | 3d8bc97ff2250b230b105b3df34d1ef3efd82d2c (diff) | |
download | armnn-9a61fa6bdc8724cc66eba532360e0e48b6b1a60e.tar.gz |
Github #273 Handle failure to initialise BackendContext in Runtime
Define CreateBackendContext to throw BackendUnavailableException
if necessary runtime components are missing.
Handle this in the constructor of Runtime by not adding those
backends to the internal DeviceSpec owned by the Runtime.
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
Change-Id: Iadffb5240e32e1f105683c4d361276b92d1e720c
Diffstat (limited to 'src/armnn/DeviceSpec.hpp')
-rw-r--r-- | src/armnn/DeviceSpec.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/armnn/DeviceSpec.hpp b/src/armnn/DeviceSpec.hpp index 703a4b123f..a1457cf80e 100644 --- a/src/armnn/DeviceSpec.hpp +++ b/src/armnn/DeviceSpec.hpp @@ -14,6 +14,9 @@ namespace armnn class DeviceSpec : public IDeviceSpec { public: + DeviceSpec() + {} + DeviceSpec(const BackendIdSet& supportedBackends) : m_SupportedBackends{supportedBackends} {} @@ -48,7 +51,6 @@ public: } private: - DeviceSpec() = delete; BackendIdSet m_SupportedBackends; BackendIdSet m_DynamicBackends; }; |