aboutsummaryrefslogtreecommitdiff
path: root/1.3/ArmnnDriver.hpp
diff options
context:
space:
mode:
Diffstat (limited to '1.3/ArmnnDriver.hpp')
-rw-r--r--1.3/ArmnnDriver.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/1.3/ArmnnDriver.hpp b/1.3/ArmnnDriver.hpp
index 451b5ab5..fd4aa74c 100644
--- a/1.3/ArmnnDriver.hpp
+++ b/1.3/ArmnnDriver.hpp
@@ -244,8 +244,8 @@ public:
Return<void> getType(getType_cb cb)
{
ALOGV("hal_1_3::ArmnnDriver::getType()");
-
- cb(V1_0::ErrorStatus::NONE, V1_2::DeviceType::CPU);
+ const auto device_type = hal_1_2::HalPolicy::GetDeviceTypeFromOptions(this->m_Options);
+ cb(V1_0::ErrorStatus::NONE, device_type);
return Void();
}