From fa7dc84396c7bf05257d82cd641a58c074136223 Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Thu, 25 Jan 2018 10:48:46 +0000 Subject: 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 Reviewed-by: Anthony Barbier Tested-by: Jenkins --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SConstruct') 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']) -- cgit v1.2.1