aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ArmnnDevice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ArmnnDevice.cpp b/ArmnnDevice.cpp
index 34019c32..ffb07c8d 100644
--- a/ArmnnDevice.cpp
+++ b/ArmnnDevice.cpp
@@ -94,7 +94,7 @@ ArmnnDevice::ArmnnDevice(DriverOptions options)
{
if (std::find(supportedDevices.cbegin(), supportedDevices.cend(), backend) == supportedDevices.cend())
{
- ALOGW("Requested unknown backend %s", backend.Get().c_str());
+ ALOGW("ArmnnDevice: Requested unknown backend %s", backend.Get().c_str());
}
else
{
@@ -105,8 +105,8 @@ ArmnnDevice::ArmnnDevice(DriverOptions options)
if (backends.empty())
{
- backends.emplace_back("GpuAcc");
- ALOGW("No known backend specified. Defaulting to: GpuAcc");
+ // No known backend specified
+ throw armnn::InvalidArgumentException("ArmnnDevice: No known backend specified.");
}
m_Options.SetBackends(backends);