From 098e94eb3ec3040001131cd56ac8fd2c7bed4828 Mon Sep 17 00:00:00 2001 From: Sheri Zhang Date: Thu, 21 Jan 2021 09:35:17 +0000 Subject: Fix softmax SVE compiling failure without SVE2 support Resolves partially: COMPMID-3891 Signed-off-by: Sheri Zhang Change-Id: I1f08746c44146f4d6ad3e48bcc3d1d2470fd156e Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4893 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- src/core/NEON/kernels/softmax/impl/SVE/list.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/NEON/kernels/softmax/impl/SVE/list.h b/src/core/NEON/kernels/softmax/impl/SVE/list.h index 4f3c07d2a2..0936bd5a56 100644 --- a/src/core/NEON/kernels/softmax/impl/SVE/list.h +++ b/src/core/NEON/kernels/softmax/impl/SVE/list.h @@ -37,6 +37,7 @@ namespace cpu { namespace { +#if defined(__ARM_FEATURE_SVE2) template int_vec_type convert_float_to_int(const svfloat32_t &in_0, const svfloat32_t &in_1, const svfloat32_t &in_2, const svfloat32_t &in_3); @@ -107,6 +108,7 @@ svint8_t convert_float_to_int(const svfloat32_t &in_0, const svfloat32 return out; } +#endif /* defined(__ARM_FEATURE_SVE2) */ } // namespace template -- cgit v1.2.1