From: Gian Marco Iodice Date: Wed, 6 May 2020 10:27:08 +0000 (+0100) Subject: COMPMID-3459: Update the heuristic for GEMV for F16 on Mali-G77 X-Git-Tag: submit/tizen/20200730.023729~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cfd3f754ec707c25f129c0026686035a0dcfc54;p=platform%2Fupstream%2Farmcl.git COMPMID-3459: Update the heuristic for GEMV for F16 on Mali-G77 Change-Id: I10020cd5c88ec1926087531c4c4ce0a1cfaf43c9 Signed-off-by: Gian Marco Iodice Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3151 Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- diff --git a/src/core/CL/gemm/reshaped_only_rhs/CLGEMMReshapedOnlyRHSKernelConfigurationValhall.cpp b/src/core/CL/gemm/reshaped_only_rhs/CLGEMMReshapedOnlyRHSKernelConfigurationValhall.cpp index 552661600..d93a912c0 100644 --- a/src/core/CL/gemm/reshaped_only_rhs/CLGEMMReshapedOnlyRHSKernelConfigurationValhall.cpp +++ b/src/core/CL/gemm/reshaped_only_rhs/CLGEMMReshapedOnlyRHSKernelConfigurationValhall.cpp @@ -109,13 +109,21 @@ std::pair CLGEMMReshapedOnlyRHSKernelConfi if(m == 1) { - const int h0 = std::max(std::min(static_cast(n / 4), static_cast(256)), static_cast(1)); - return configure_lhs_rhs_info(m, n, 1, 4, 4, 1, h0, false, true, false, true); + if(n > 2048) + { + 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); + } + 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); + } } else if (m < 128) { const int h0 = std::max(std::min(static_cast(n / 4), static_cast(256)), static_cast(1)); - if(k > 512) + if(k >= 512) { return configure_lhs_rhs_info(m, n, 2, 4, 16, 1, h0, false, true, false, false); }