From b4c493430567bff25e61e9df0dbab554c29f635d Mon Sep 17 00:00:00 2001 From: Ryan OShea Date: Tue, 25 Jul 2023 14:28:27 +0100 Subject: IVGCVSW-7880 Add check for FP16 backend support * Check if preferred backends have FP16 support before enable fp16-turbo-mode * Unit tests * Replaced global gpuAccCapabilities with getter method construction * Replaced deprecated function call in SL shim Signed-off-by: Narumol Prangnawarat Signed-off-by: Ryan OShea Change-Id: If29b62b330ca8987de8acf6408db11daf25ca0b5 --- src/backends/reference/RefBackend.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/backends/reference') diff --git a/src/backends/reference/RefBackend.hpp b/src/backends/reference/RefBackend.hpp index ecbe4d5ba9..7d355ea9ca 100644 --- a/src/backends/reference/RefBackend.hpp +++ b/src/backends/reference/RefBackend.hpp @@ -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 // #pragma once @@ -18,7 +18,8 @@ const BackendCapabilities cpuRefCapabilities("CpuRef", {"PreImportIOTensors", true}, {"ExternallyManagedMemory", true}, {"MultiAxisPacking", false}, - {"SingleAxisPacking", true} + {"SingleAxisPacking", true}, + {"HasFp16", true} }); const std::set oldCpuRefCapabilities { -- cgit v1.2.1