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
This commit is contained in:
Arnav Sharma
2024-02-22 16:26:10 +05:30
committed by Arnav Sharma
parent d00e84ced3
commit 970a655ee4

View File

@@ -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