From f74a3106fce7c9c6c489d74d4356a1b1036c2228 Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Fri, 21 Feb 2020 09:49:34 +0000 Subject: IVGCVSW-4471 ValidationTestIntrospection.DeviceGetType fails in Q NN tests * Throw an exception if there is no known backend specified for the driver Signed-off-by: Sadik Armagan Change-Id: I8b0be33c0a8786b493ac1f8c17573853db8e8218 --- ArmnnDevice.cpp | 6 +++--- 1 file 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); -- cgit v1.2.1