From b1496e6a1074c90fba64633ec92fa202f5f7d1d8 Mon Sep 17 00:00:00 2001 From: Pablo Marquez Tello Date: Fri, 25 Jun 2021 14:49:37 +0100 Subject: Add code to detect Mali(TM) G31 * Fixed a problem which made the library choose the Valhall path instead of Bifrost * Set block sizes to 4 for u8 on G31 * Resolves MLCE-463 Change-Id: I577f57ec96f740db15d6640e34172318a82c5778 Signed-off-by: Pablo Marquez Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5858 Reviewed-by: Georgios Pinitas Reviewed-by: Gian Marco Iodice Tested-by: Arm Jenkins Comments-Addressed: Georgios Pinitas --- src/core/GPUTarget.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/GPUTarget.cpp') diff --git a/src/core/GPUTarget.cpp b/src/core/GPUTarget.cpp index 14264cb883..b4bd2ddf40 100644 --- a/src/core/GPUTarget.cpp +++ b/src/core/GPUTarget.cpp @@ -83,6 +83,10 @@ arm_compute::GPUTarget get_bifrost_target(const std::string &version) { return arm_compute::GPUTarget::G76; } + else if(version.find("G31") != std::string::npos) + { + return arm_compute::GPUTarget::G31; + } else { return arm_compute::GPUTarget::UNKNOWN; -- cgit v1.2.1