Fix softmax SVE compiling failure without SVE2 support
authorSheri Zhang <sheri.zhang@arm.com>
Thu, 21 Jan 2021 09:35:17 +0000 (09:35 +0000)
committerGeorgios Pinitas <georgios.pinitas@arm.com>
Thu, 21 Jan 2021 10:45:07 +0000 (10:45 +0000)
Resolves partially: COMPMID-3891

Signed-off-by: Sheri Zhang <sheri.zhang@arm.com>
Change-Id: I1f08746c44146f4d6ad3e48bcc3d1d2470fd156e
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4893
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>

src/core/NEON/kernels/softmax/impl/SVE/list.h

index 4f3c07d2a20055a7e7fff4b8d515c5d546ac716e..0936bd5a56b1654ba35b2760401ce46ebb498477 100644 (file)
@@ -37,6 +37,7 @@ namespace cpu
 {
 namespace
 {
+#if defined(__ARM_FEATURE_SVE2)
 template <typename int_vec_type>
 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<svint8_t>(const svfloat32_t &in_0, const svfloat32
 
     return out;
 }
+#endif /* defined(__ARM_FEATURE_SVE2) */
 } // namespace
 
 template <typename ScalarType>