diff options
author | Sheri Zhang <sheri.zhang@arm.com> | 2021-01-21 09:35:17 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2021-01-21 10:45:07 +0000 |
commit | 098e94eb3ec3040001131cd56ac8fd2c7bed4828 (patch) | |
tree | a0852b1b4eebfd6d846d9493e693ba05ad9abc49 | |
parent | fc6744a8b18e70c84d5f98d013809b9796d48b38 (diff) | |
download | ComputeLibrary-098e94eb3ec3040001131cd56ac8fd2c7bed4828.tar.gz |
Fix softmax SVE compiling failure without SVE2 support
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>
-rw-r--r-- | src/core/NEON/kernels/softmax/impl/SVE/list.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <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> |