34 BackendRegistry::BackendRegistry()
35 : _registered_backends()
48 return _registered_backends[target].get();
59 bool BackendRegistry::contains(
Target target)
const 61 auto it = _registered_backends.find(target);
62 return (it != _registered_backends.end());
65 const std::map<Target, std::unique_ptr<IDeviceBackend>> &BackendRegistry::backends()
const 67 return _registered_backends;
virtual bool is_backend_supported()=0
Checks if an instantiated backend is actually supported.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Copyright (c) 2017-2021 Arm Limited.
#define ARM_COMPUTE_ERROR_ON_MSG(cond, msg)
Device backend interface.
Registry holding all the supported backends.