From dc18ceaa54957d5ac05292b363a5ac6fe479f409 Mon Sep 17 00:00:00 2001 From: Mikael Olsson Date: Fri, 16 Feb 2024 11:04:46 +0100 Subject: Add NPU device type to capabilities In preparation to support the Linux kernel driver directly managing the NPU without a subsystem. A NPU device type has been added to the capabilities to be able to specify what kind of NPU is used. Change-Id: I45345b7d75d234f821d70b858453d3af2a99194e Signed-off-by: Mikael Olsson --- tests/run_inference_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/run_inference_test.cpp b/tests/run_inference_test.cpp index 512a2a0..88fc691 100644 --- a/tests/run_inference_test.cpp +++ b/tests/run_inference_test.cpp @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: Copyright 2022-2023 Arm Limited and/or its affiliates + * SPDX-FileCopyrightText: Copyright 2022-2024 Arm Limited and/or its affiliates * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may @@ -68,6 +68,7 @@ void testCapabilties(const Device &device) { } catch (std::exception &e) { throw TestFailureException("Capabilities test: ", e.what()); } TEST_ASSERT(capabilities.hwId.architecture > SemanticVersion()); + TEST_ASSERT(capabilities.hwCfg.type == HardwareConfiguration::DeviceType::SUBSYSTEM); } void testBufferSeek(const Device &device) { -- cgit v1.2.1