From 970a655ee46c60b9e4101c5bea9c2fa1d39eae20 Mon Sep 17 00:00:00 2001 From: Arnav Sharma Date: Thu, 22 Feb 2024 16:26:10 +0530 Subject: [PATCH] Fix for build issue when Mixed Datatypes are disabled - Warning is raised for the implicit declaration of bli_gemm_md_is_ccr() when BLIS is configured with --disable-mixed-dt flag. - Encapsulated the usage of bli_gemm_md_is_ccr( ... ) inside the BLIS_ENABLE_GEMM_MD macro. AMD-Internal: [CPUPL-4630] Change-Id: Icc59b1bcd3a21492daaaf6bcec80a5bf67012ace --- frame/3/gemm/bli_gemm_front_amd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frame/3/gemm/bli_gemm_front_amd.c b/frame/3/gemm/bli_gemm_front_amd.c index b64baf000..edfe62411 100644 --- a/frame/3/gemm/bli_gemm_front_amd.c +++ b/frame/3/gemm/bli_gemm_front_amd.c @@ -5,7 +5,7 @@ libraries. Copyright (C) 2014, The University of Texas at Austin - Copyright (C) 2018 - 2023, Advanced Micro Devices, Inc. All rights reserved. + Copyright (C) 2018 - 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 @@ -136,9 +136,11 @@ void bli_gemm_front // In case of dzgemm, if the microkernel prefers column output, // we will induce a transposition and perform C+= A*B // where A( formerly B) is complex. Hence attach alpha to A. +#ifdef BLIS_ENABLE_GEMM_MD if ( bli_gemm_md_is_ccr( &a_local, &b_local, &c_local )) bli_obj_scalar_attach( BLIS_NO_CONJUGATE, alpha, &a_local ); else +#endif bli_obj_scalar_attach( BLIS_NO_CONJUGATE, alpha, &b_local ); // Attach beta to C, and in the process typecast beta to the target