From 8d5337ef18901f1b54d0c062ae7486bc5a4c6610 Mon Sep 17 00:00:00 2001 From: Sang-Hoon Park Date: Fri, 15 Jan 2021 14:36:25 +0000 Subject: Add explicit cast to fix gcc10 build error With v8.6 arch flags, gcc10 fails to build due to type of the argument doesn't match to its template argument. This is fixed by adding explicit casting. Resolves: COMPMID-4096 Change-Id: Ifc86c4b9afeb43594ea3b758de417dbdc1394880 Signed-off-by: Sang-Hoon Park Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4872 Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp b/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp index 1c86393406..0fd21edee1 100644 --- a/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp +++ b/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020 Arm Limited. + * Copyright (c) 2018-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -444,7 +444,7 @@ void Fallback::configure_indirect(const ITen _indirect_buf = std::unique_ptr(reinterpret_cast(malloc(multi_size * multis))); _indirect_arg = std::unique_ptr(reinterpret_cast(malloc(sizeof(TypeInput **) * kernel_hw * multis * batches))); - _indirect_pad = std::vector(_cp.input_channels, zeropad); + _indirect_pad = std::vector(_cp.input_channels, TypeInput(zeropad)); // Set indirect argument int64_t pos = 0; -- cgit v1.2.1