From 318c9f40770b2d1c06f8c0fe3f7929812503733e Mon Sep 17 00:00:00 2001 From: David Mansell Date: Wed, 8 Jul 2020 13:28:45 +0100 Subject: COMPMID-3578: Update FP32/int8 kernel selection. Upgrade the current 'is_preferred()' mechanism with a new framework, where kernels instead provide an estimated cycle count figure. Compatibility with old mechanism is achieved via a wrapper which replaces a "true" result with an estimate of 0, and a "false" result with UINT64_MAX. This mechanism is then used to select between 'interleaved' and 'hybrid' FP32 NEON kernels. This uses a simple system based on counting MACs performed and bytes of data transferred (for rearrange/merge operations) and dividing by fixed performance figures, which are provided for A53, A55, A73 and 'default' figures (based on A76). Separately, a new route for performing int8 GEMMs by using the int16 kernel is provided. This performs significantly (for uint8) or slightly (for int8) better on A53 than the existing int8 route. Optimized 8-to-16 bit transforms are also included. Change-Id: I53b2e59eb9368793c78c2081e17d2445361bcc47 Signed-off-by: David Mansell Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/250120 Tested-by: bsgcomp Reviewed-by: Gian Marco Iodice Comments-Addressed: bsgcomp Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3609 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas --- arm_compute/core/CPP/CPPTypes.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'arm_compute') diff --git a/arm_compute/core/CPP/CPPTypes.h b/arm_compute/core/CPP/CPPTypes.h index be6dfacb38..fd6bfc3907 100644 --- a/arm_compute/core/CPP/CPPTypes.h +++ b/arm_compute/core/CPP/CPPTypes.h @@ -45,7 +45,8 @@ enum class CPUModel A53, A55r0, A55r1, - X1 + X1, + A73 }; /** Global memory policy. @@ -99,6 +100,10 @@ inline std::string cpu_model_to_string(CPUModel val) { return std::string("X1"); } + case CPUModel::A73: + { + return std::string("A73"); + } default: { ARM_COMPUTE_ERROR("Invalid CPUModel."); -- cgit v1.2.1