aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPablo Marquez Tello <pablo.tello@arm.com>2021-07-13 11:09:47 +0100
committerNikhil Raj Arm <nikhil.raj@arm.com>2021-07-13 14:14:42 +0000
commit6fc7d528382716de9e417c9dcf0fddf109446e9f (patch)
tree644d9c297f048eb59bbe0d032be2297d4796c2fb /scripts
parent96f977e43f452a75f2658b820791cb3d3da9c0a3 (diff)
downloadComputeLibrary-6fc7d528382716de9e417c9dcf0fddf109446e9f.tar.gz
Override arch option to alow building for armv8-2a
* This will override the values in the Android.bp file and allow building for armv8-2a for Android Q and R. * Resolved COMPMID-4645 Change-Id: I1e1c2a5ae7ee7399a63fffe9eb3009da3bfe0d93 Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5937 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Nikhil Raj Arm <nikhil.raj@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/arm_compute_library_nn_driver.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/arm_compute_library_nn_driver.go b/scripts/arm_compute_library_nn_driver.go
index 8b1b80a7a7..e17b15a7cd 100644
--- a/scripts/arm_compute_library_nn_driver.go
+++ b/scripts/arm_compute_library_nn_driver.go
@@ -14,12 +14,17 @@ import (
func globalFlags(ctx android.BaseContext) []string {
var cppflags []string
- if ctx.AConfig().PlatformVersionName() == "Q" || ctx.AConfig().PlatformVersionName() == "10" ||
+ if ctx.AConfig().PlatformVersionName() == "Q" || ctx.AConfig().PlatformVersionName() == "10" ||
ctx.AConfig().PlatformVersionName() == "R" || ctx.AConfig().PlatformVersionName() == "11" ||
ctx.AConfig().PlatformVersionName() == "S" || ctx.AConfig().PlatformVersionName() == "12" {
cppflags = append(cppflags, "-fno-addrsig")
}
+ if (ctx.AConfig().PlatformVersionName() == "R" || ctx.AConfig().PlatformVersionName() == "11") &&
+ (ctx.AConfig().DevicePrimaryArchType().String() == "armv8-2a") {
+ cppflags = append(cppflags, "-march=armv8.2-a+fp16")
+ }
+
data_types := strings.Split(ctx.AConfig().GetenvWithDefault("COMPUTE_LIB_DATA_TYPE", "ALL"), ",")
for _, x := range data_types {