aboutsummaryrefslogtreecommitdiff
path: root/shim
diff options
context:
space:
mode:
Diffstat (limited to 'shim')
-rw-r--r--shim/sl/canonical/ArmnnDevice.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/shim/sl/canonical/ArmnnDevice.cpp b/shim/sl/canonical/ArmnnDevice.cpp
index 0017973b50..71135cb13e 100644
--- a/shim/sl/canonical/ArmnnDevice.cpp
+++ b/shim/sl/canonical/ArmnnDevice.cpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
+// Copyright © 2022-2023 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
@@ -124,7 +124,16 @@ ArmnnDevice::ArmnnDevice(DriverOptions options)
}
else
{
- backends.push_back(backend);
+ if (m_Options.isAsyncModelExecutionEnabled() &&
+ armnn::HasCapability(armnn::BackendOptions::BackendOption{"AsyncExecution", false}, backend))
+ {
+ VLOG(DRIVER) << "ArmnnDevice: ArmNN does not support AsyncExecution with the following backend: "
+ << backend.Get().c_str();
+ }
+ else
+ {
+ backends.push_back(backend);
+ }
}
}
}