From 9e27065c2bd6aec2af93026881d1cd0954bb544f Mon Sep 17 00:00:00 2001 From: Dipal M Zambare Date: Wed, 12 May 2021 13:47:55 +0530 Subject: [PATCH] Fixed blastest failure for amd64 configuration - When building for amd64 configuration, small matrix support for dgemm is not enabled (yet). Functions supporting small matrix implementation are called even when small matrix support is disabled. Update code to prevent this. AMD-Internal: [CPUPL-1575] Change-Id: I3a1692e965679cfde44938b1d26951145c790aa0 --- frame/compat/bla_gemm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frame/compat/bla_gemm.c b/frame/compat/bla_gemm.c index 9ce2a11d6..d81bf2898 100644 --- a/frame/compat/bla_gemm.c +++ b/frame/compat/bla_gemm.c @@ -478,6 +478,7 @@ void dgemm_ // The code below will be called when number of threads = 1. +#ifdef BLIS_ENABLE_SMALL_MATRIX if( ((m0 + n0 -k0) < 2000) && ((m0 + k0-n0) < 2000) && ((n0 + k0-m0) < 2000) && (n0 > 2)) { err_t status; @@ -514,12 +515,14 @@ void dgemm_ } } +#endif //#ifdef BLIS_ENABLE_SMALL_MATRIX err_t status = bli_gemmsup(&alphao, &ao, &bo, &betao, &co, NULL, NULL); if (status == BLIS_SUCCESS) { return; } + // fall back on native path when dgemm is not handled in sup path. bli_gemmnat(&alphao, &ao, &bo, &betao, &co, NULL, NULL);