From: Sheri Zhang Date: Thu, 21 Jan 2021 09:35:17 +0000 (+0000) Subject: Fix softmax SVE compiling failure without SVE2 support X-Git-Tag: submit/tizen/20210421.062230~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=098e94eb3ec3040001131cd56ac8fd2c7bed4828;p=platform%2Fupstream%2Farmcl.git 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 --- diff --git a/src/core/NEON/kernels/softmax/impl/SVE/list.h b/src/core/NEON/kernels/softmax/impl/SVE/list.h index 4f3c07d2a..0936bd5a5 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