From 1bd9f0c85604af9d7445f261e8aca2402a087367 Mon Sep 17 00:00:00 2001 From: Edward Smyth Date: Fri, 9 Feb 2024 11:04:15 -0500 Subject: [PATCH] Define symbol dzgemm_blis_impl for non-zen configurations Non-zen configurations will use frame/compat/bla_gemm.c rather than frame/compat/bla_gemm_amd.c. In the former, change dzgemm definition to have dzgemm_blis_impl and optional dzgemm_ wrapper, as in the AMD version. AMD-Internal: [CPUPL-4082] Change-Id: I66caff56e033bda8bb4ff2d60a16f7e52af122ea --- frame/compat/bla_gemm.c | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/frame/compat/bla_gemm.c b/frame/compat/bla_gemm.c index 5bdbc392c..9601c9abd 100644 --- a/frame/compat/bla_gemm.c +++ b/frame/compat/bla_gemm.c @@ -5,7 +5,7 @@ libraries. Copyright (C) 2014, The University of Texas at Austin - Copyright (C) 2019 - 2023, Advanced Micro Devices, Inc. All rights reserved. + Copyright (C) 2019 - 2024, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are @@ -415,10 +415,9 @@ void PASTEF77(ch,blasname) \ ) #endif -#ifdef BLIS_ENABLE_BLAS INSERT_GENTFUNC_BLAS( gemm,gemm ) -void dzgemm_ +void dzgemm_blis_impl ( const f77_char* transa, const f77_char* transb, @@ -547,5 +546,21 @@ void dzgemm_ /* Finalize BLIS. */ bli_finalize_auto(); }// end of dzgemm_ - +#ifdef BLIS_ENABLE_BLAS +void dzgemm_ + ( + const f77_char* transa, + const f77_char* transb, + const f77_int* m, + const f77_int* n, + const f77_int* k, + const dcomplex* alpha, + const double* a, const f77_int* lda, + const dcomplex* b, const f77_int* ldb, + const dcomplex* beta, + dcomplex* c, const f77_int* ldc + ) +{ + dzgemm_blis_impl( transa, transb, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc ); +} #endif