Github #273 Handle failure to initialise BackendContext in Runtime
authorMatthew Bentham <Matthew.Bentham@arm.com>
Tue, 4 Feb 2020 10:03:55 +0000 (10:03 +0000)
committerDerek Lamberti <derek.lamberti@arm.com>
Tue, 4 Feb 2020 13:13:46 +0000 (13:13 +0000)
commit9a61fa6bdc8724cc66eba532360e0e48b6b1a60e
tree547a2e5db5af7517171a84c9395ac9c42151e6db
parent3d8bc97ff2250b230b105b3df34d1ef3efd82d2c
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
include/armnn/Exceptions.hpp
include/armnn/backends/IBackendInternal.hpp
src/armnn/DeviceSpec.hpp
src/armnn/Runtime.cpp
src/armnn/Runtime.hpp