diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2020-12-07 20:39:51 +0000 |
---|---|---|
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | 2020-12-08 11:20:23 +0000 |
commit | deb5b778862b1cf856f21510ef062b2f1f28b172 (patch) | |
tree | a77d523175ef3cffdb829849981cc67818a6c814 | |
parent | 6bc4e9617f4c7679f612e967bceeb8177c3ffb68 (diff) | |
download | ComputeLibrary-deb5b778862b1cf856f21510ef062b2f1f28b172.tar.gz |
Enable FP16 support for armv8.6 on non-SVE builds
Fp16 arithmetic needs to be explicitly requested otherwise support
macros have undefined values.
Enables FP16 support when an v8 extension is requested, something that
didn't work for v8.6 non SVE builds as the +fp16 extensions wasn't part
of march.
Resolves: COMPMID-4046
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Change-Id: I9c6436218c0d6b8a8c2aebf07e053bc9c21e1637
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4665
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
-rw-r--r-- | SConstruct | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index e9ba496afb..c2e9a303f4 100644 --- a/SConstruct +++ b/SConstruct @@ -207,7 +207,7 @@ elif 'v8' in env['arch']: env.Append(CXXFLAGS = ['-march=armv8.2-a+sve2+fp16+dotprod']) elif 'sve' in env['arch']: env.Append(CXXFLAGS = ['-march=armv8.2-a+sve+fp16+dotprod']) - elif 'v8.2-a' in env['arch']: + elif 'v8.' in env['arch']: env.Append(CXXFLAGS = ['-march=armv8.2-a+fp16']) # explicitly enable fp16 extension otherwise __ARM_FEATURE_FP16_VECTOR_ARITHMETIC is undefined else: env.Append(CXXFLAGS = ['-march=armv8-a']) |