From b3bf8d6a13585ff248c079402654647d298de60b Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 28 Sep 2022 02:37:18 +0000 Subject: [PATCH] Try to reduce size of GEBP kernel for non-ARM targets. --- .../Core/products/GeneralBlockPanelKernel.h | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/Eigen/src/Core/products/GeneralBlockPanelKernel.h b/Eigen/src/Core/products/GeneralBlockPanelKernel.h index 565e97d40..179d41c03 100644 --- a/Eigen/src/Core/products/GeneralBlockPanelKernel.h +++ b/Eigen/src/Core/products/GeneralBlockPanelKernel.h @@ -1221,6 +1221,7 @@ struct lhs_process_one_packet // (LhsProgress x depth) for(Index i=peelStart; i=8) { for(Index j2=0; j2=8) { for(Index j2=0; j2=8) { for(Index j2=0; j2=8) { // loop on each panel of the rhs for(Index j2=0; j2=8) { for(Index j2=0; j2=4) { @@ -3149,6 +3157,8 @@ struct gemm_pack_rhs=8 ? (cols/8) * 8 : 0; Index packet_cols4 = nr>=4 ? (cols/4) * 4 : 0; Index count = 0; + +#if EIGEN_ARCH_ARM64 EIGEN_IF_CONSTEXPR(nr>=8) { for(Index j2=0; j2=4) { for(Index j2=packet_cols8; j2