diff options
author | Pablo Tello <pablo.tello@arm.com> | 2018-01-25 10:48:46 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:43:42 +0000 |
commit | fa7dc84396c7bf05257d82cd641a58c074136223 (patch) | |
tree | 030c75405066d16ac3e8f88a2183456058d4938e | |
parent | 7b4d547800d3ea49e7e6d9f497ec2766411cb948 (diff) | |
download | ComputeLibrary-fa7dc84396c7bf05257d82cd641a58c074136223.tar.gz |
COMPMID-765: Enable fp16 extension for arm64-v8.2-a
Explicitly add -march=armv8.2-a+fp16 for target arm64-v8.2-a, otherwise __ARM_FEATURE_FP16_VECTOR_ARITHMETIC is undefined
and all the FP16 neon code is not compiled.
Change-Id: I698819d842de996c1b4c88ebd0cf8664c5f70d58
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/117601
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
-rw-r--r-- | SConstruct | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 76a5bd00b1..7f06a37dbf 100644 --- a/SConstruct +++ b/SConstruct @@ -136,8 +136,8 @@ elif env['arch'] == 'arm64-v8a': elif env['os'] == 'android': prefix = "aarch64-linux-android-" elif env['arch'] == 'arm64-v8.2-a': + env.Append(CXXFLAGS = ['-march=armv8.2-a+fp16']) # explicitly enable fp16 extension otherwise __ARM_FEATURE_FP16_VECTOR_ARITHMETIC is undefined env.Append(CPPDEFINES = ['ARM_COMPUTE_AARCH64_V8_2']) - if cpp_compiler == 'clang++': env.Append(CXXFLAGS = ['-fno-integrated-as']) |