From 1e75adac392dd979bd1a838583ed196e311bc77a Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Wed, 30 Sep 2020 17:35:05 +0100 Subject: COMPMID-3674: Update heuristic for Mali-G77 - Update the heuristic (m==1) for CLGEMMReshapedOnlyRHS Change-Id: I216c158f2802d3d331e23e0d9eb0127107ec8af0 Signed-off-by: Gian Marco Iodice Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4092 Reviewed-by: Giorgio Arena Comments-Addressed: Arm Jenkins Tested-by: Georgios Pinitas --- .../CLGEMMReshapedOnlyRHSKernelConfigurationValhall.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core/CL/gemm/reshaped_only_rhs/CLGEMMReshapedOnlyRHSKernelConfigurationValhall.cpp b/src/core/CL/gemm/reshaped_only_rhs/CLGEMMReshapedOnlyRHSKernelConfigurationValhall.cpp index 9f3461e912..23bf02c61a 100644 --- a/src/core/CL/gemm/reshaped_only_rhs/CLGEMMReshapedOnlyRHSKernelConfigurationValhall.cpp +++ b/src/core/CL/gemm/reshaped_only_rhs/CLGEMMReshapedOnlyRHSKernelConfigurationValhall.cpp @@ -148,15 +148,14 @@ std::pair CLGEMMReshapedOnlyRHSKernelConfi if(m == 1) { - if(n > 2048) + const unsigned int h0 = std::max(n / 2, 1U); + if(n <= 836.0) { - const unsigned int h0 = std::max(n / 4, 1U); - return configure_lhs_rhs_info(m, n, 1, 4, 4, 1, h0, false, true, false, true); + return configure_lhs_rhs_info(m, n, 1, 2, 16, 1, h0, false, true, false, true, false); } else { - const unsigned int h0 = std::max(n / 2, 1U); - return configure_lhs_rhs_info(m, n, 1, 2, 8, 1, h0, false, true, false, true); + return configure_lhs_rhs_info(m, n, 1, 2, 8, 1, h0, false, true, false, true, false); } } else if(m < 128) -- cgit v1.2.1