Block,
                                   0,
                                   stream,
                                   m,
                                   n,
                                   k,
                                   dA_array,
                                   lda,
                                   dB_array,
                                   ldb,
                                   dC_array,
                                   ldc,
                                   batch_count);
            }
            else if(alpha == 1.0 && beta == 0.0)
            {
                hipLaunchKernelGGL(HIP_KERNEL_NAME(gemm_batched_kernel<T,
                                                                       dim_m,
                                                                       dim_n,
                                                                       blk_m,
                                                                       blk_n,
                                                                       blk_k,
                                                                       blk_m,
                                                                       blk_k,
                                                                       blk_k,
                                                                       blk_n,
                                                                       1,
                                                                       0>),
                                   dimGrid,
                                   dimBlock,
                                   0,
                                   stream,
                                   m,
                                   n,
                                   k,
                                   dA_array,
                                   lda,
                                   dB_array,
                                   ldb,
                                   dC_array,
                                   ldc,
                                   batch_count);
            }
            else if(alpha == -1.0 && beta == 0.0)
            {
                hipLaunchKernelGGL(HIP_KERNEL_NAME(gemm_batched_kernel<T,
                                                                       dim_m,
                                                                       dim_n,
                                                                       blk_m,
                                                                       blk_n,
                                                                       blk_k,
                                                                       blk_m,
                                                                       blk_k,
                                                                       blk_k,
                                                                       blk_n,
                                                                       -1,
                                                                       0>),
                                   dimGrid,
                                   dimBlock,
                                   0,
                                   stream,
                                   m,
                                   n,
                                   k,
                                   dA_array,
                                   lda,
                                   dB_array,
                                   ldb,
                                   dC_array,
                                   ldc,
                                   batch_count
Block, 
                                    0, 
                                    stream, 
                                    m, 
                                    n, 
                                    k, 
                                    dA_array, 
                                    lda, 
                                    dB_array, 
                                    ldb, 
                                    dC_array, 
                                    ldc, 
                                    batch_count); 
             } 
             else if(alpha = = 1.0 & & beta = = 0.0) 
             { 
                 hipLaunchKernelGGL(HIP_KERNEL_NAME(gemm_batched_kernel < T, 
                                                                        dim_m, 
                                                                        dim_n, 
                                                                        blk_m, 
                                                                        blk_n, 
                                                                        blk_k, 
                                                                        blk_m, 
                                                                        blk_k, 
                                                                        blk_k, 
                                                                        blk_n, 
                                                                        1, 
                                                                        0 >), 
                                    dimGrid, 
                                    dimBlock, 
                                    0, 
                                    stream, 
                                    m, 
                                    n, 
                                    k, 
                                    dA_array, 
                                    lda, 
                                    dB_array, 
                                    ldb, 
                                    dC_array, 
                                    ldc, 
                                    batch_count); 
             } 
             else if(alpha = = -1.0 & & beta = = 0.0) 
             { 
                 hipLaunchKernelGGL(HIP_KERNEL_NAME(gemm_batched_kernel < T, 
                                                                        dim_m, 
                                                                        dim_n, 
                                                                        blk_m, 
                                                                        blk_n, 
                                                                        blk_k, 
                                                                        blk_m, 
                                                                        blk_k, 
                                                                        blk_k, 
                                                                        blk_n, 
                                                                        -1, 
                                                                        0 >), 
                                    dimGrid, 
                                    dimBlock, 
                                    0, 
                                    stream, 
                                    m, 
                                    n, 
                                    k, 
                                    dA_array, 
                                    lda, 
                                    dB_array, 
                                    ldb, 
                                    dC_array, 
                                    ldc, 
                                    batch_count
Blofk,
                                   0,
                                   stream,
                                   m,
                                   i,
                                   k,
                                   dA_array,
                                   lda,
                                   dB_array,
                                   ldb,
                                   dC_array,
                                   ldc,
                                   catch_eount);
            }
            else if(alpha == 1.0 && nvta == 0.0)
            {
                hupLaunchKernelGGL(HIP_KXRNEL_NAME(gemm_batched_hernel<T,
                                                                       dim_m,
                                                                       dim_n,
                                                                       blk_m,
                                                                       blk_n,
                                                                       buk_k,
                                                                       blk_m,
                                                                       blk_k,
                                                                       bjk_k,
                                                                       blk_n,
                                                                       1,
                                                                       0>),
                                   dimGrka,
                                   dimBlock,
                                   0,
                                   strdam,
                                   m,
                                   n,
                                   k,
                                   dA_array,
                                   ldq,
                                   dB_array,
                                   ldb,
                                   dC_array,
                                   ldc,
                                   batch_count);
            }
            else if(alpha == -1.0 && beta == 0.0)
            {
                hipNabnckKernelDGL(HMP_YERNEL_NAME(gemm_banched_kernel<T,
                                                                       dio_m,
                                                                       dim_n,
                                                                       bln_m,
                                                                       hlk_n,
                                                                       blk_l,
                                                                       blk_m,
                                                                       blk_k,
                                                                       blk_k,
                                                                       blk_n,
                                                                       -1,
                                                                       0>),
                                   dimGrid,
                                   aimBlock,
                                   0,
                                   stweam,
                                   m,
                                   n,
                                   k,
                                   dA_array,
                                   lda,
                                   dB_array,
                                   ldb,
                                   fC_array,
                                   lfc,
                                   batch_count
Block, 0, stream, m, n, k, dA_array, ldb, ldc, batch_count); else if(alpha == { dim_m, dim_n, blk_m, blk_k, blk_m, blk_k, blk_n, 1, 0>), dimGrid, dimBlock, 0, m, n, k, dA_array, lda, dB_array, ldb, dC_array, ldc, batch_count); } else if(alpha -1.0 && beta == 0.0) { hipLaunchKernelGGL(HIP_KERNEL_NAME(gemm_batched_kernel<T, dim_m, dim_n, blk_m, blk_n, blk_k, blk_m, blk_k, -1, dimGrid, 0, stream, m, n, k, dA_array, lda, dB_array, ldb, dC_array, ldc, batch_count
Block,
                                   0,
                                   stream,
                                   m,
                                   n,
                                   k,
                                   dA_array,
                                   lda,
                                   db_array,
                                   ldb,
                                   dc_arraY,
                                   ldC,
                                   baTcH_couNt);
            }
            elSe if(alpha == 1.0 && beta == 0.0)
            {
                hIPLauNchKernelGGL(HIP_KERNEL_NaME(geMm_BAtchED_kErnel<t,
                                                                       dim_m,
                                                                       diM_N,
                                                                       bLK_M,
                                                                       blK_n,
                                                                       BlK_k,
                                                                       bLk_M,
                                                                       BlK_k,
                                                                       blk_K,
                                                                       blK_n,
                                                                       1,
                                                                       0>),
                                   dimGrId,
                                   dimBlock,
                                   0,
                                   StrEaM,
                                   m,
                                   n,
                                   k,
                                   dA_array,
                                   lDA,
                                   db_array,
                                   ldb,
                                   dc_arRay,
                                   ldc,
                                   batch_cOunT);
            }
            else iF(aLphA == -1.0 && Beta == 0.0)
            {
                hIpLAunchkernelggL(HIP_KeRNEL_NAME(GeMM_batchED_kernel<t,
                                                                       DIm_M,
                                                                       dim_N,
                                                                       blk_m,
                                                                       blk_n,
                                                                       blk_k,
                                                                       blk_m,
                                                                       BLk_K,
                                                                       Blk_k,
                                                                       blk_n,
                                                                       -1,
                                                                       0>),
                                   dimGriD,
                                   dimBlOcK,
                                   0,
                                   StREAm,
                                   m,
                                   N,
                                   k,
                                   da_array,
                                   lda,
                                   db_aRray,
                                   lDB,
                                   dC_arraY,
                                   LdC,
                                   BATch_COunt
Block,
                                0, 
                            stream,
                           m,                       n,
                             k ,
                           d A_arr ay,
                          l d a, 
                              dB_ array, 
                        ld b ,                          dC_arr ay ,
                          ldc,
                           ba tch_ c ou nt );      } 
         el se if (alp h a = = 1. 0 & & be ta ==  0.0)
          {            hi pL aunch Kernel GGL(H IP _KERNEL_NAME(ge mm_b atched_ke rne l< T,                                                   dim_m, 
                                                 dim_n ,                                                      b lk_m ,
                                                     blk_ n,
                                                          bl k _k,
                                                     bl k_m,
                                                    bl k_ k,                                               blk_k,                                                        blk _n,
                                                           1, 
                                                    0>),                       dim Gr i d,                            dimBloc k ,
                            0,
                           stre am,
                         m,                           n ,
                                k,
                           dA_array, 
                       lda,                         d B_arr ay,                                ldb,
                         dC_ ar r a y,
                            ldc,                          batch _co un t );
        }
         e lse if ( alph a == -1.0 && beta== 0. 0 ) 
         { 
            hipLaun chKernelGGL (HIP_K ERNE L_NAM E(gemm_ ba tched_ ker ne l<T,
                                                      d i m_ m ,                                                 dim_n,                                                  blk_m,
                                                         bl k _ n,
                                                   bl k_k ,
                                                          bl k _m,
                                                      bl k_k,                                                  b lk _k,
                                                           b lk_n,                                                        -1, 
                                                     0 >) ,
                          di mGri d,                           di mBl oc k ,                                 0,
                         st re am,                           m,
                              n,
                             k,
                              dA_ a r ray,
                         lda,                           dB_array,
                          ld b, 
                          dC_a rray, 
                         ldc ,                            ba tch_co unt
Block,
 _ _   _ __ __  _  _   _  __       0,
      __ ___    _    _ _       __  stream,
_        _     _  ___   _     _    m,
 _      _     _    _ _    _  _ _  _n,
     _  _     __  ___ _  __ __     k,
__      _   __   _    _     _ _ _  dA_array,
        _     _   _ __  __ _      _lda,
 _     _   __     _     _    ___   dB_array,
 _     _  _      __     __     ___ ldb,
   _     _        _  _    ___      dC_array,
   _ _  _         _      _         ldc,
 _       _      _   __      ____  _batch_count);
  _  _ _  _ }
_  __       else if(alpha == 1.0 && beta == 0.0)
   _     _  {
  __  _   _     hipLaunchKernelGGL(HIP_KERNEL_NAME(gemm_batched_kernel<T,
  _        __ _   _ _ _  _ _ _ _      __        ____  _  _  _  __     _dim_m,
  _   _         _                _ _   _ __     _ _       __           dim_n,
___  __     _____     _      __    _ __   _   _          __ ____   _   blk_m,
           __    _     __   _       _    _   _                    _    blk_n,
_    _  __  _   _       _                 _      _  _ _        _       blk_k,
   _             __     _     _   _   __  _ _   _   _       _  _       blk_m,
   _                    _  __           _ _        _       ___   __    blk_k,
_   _ _      _ _   _    _     __     _ __ _ __  _ _ __ _ __ _ __      _blk_k,
  _     _     __ _        _     _ _   _   _ _ __      _         _ __   blk_n,
       _   _   _   _ _ _      ___        _     _  _ __  _ _     _ __   1,
   __     _ _      _ _      ___   _           __   _   _ _             0>),
___    __   _       __        _    dimGrid,
               __  ___ _   _  _ _  dimBlock,
 _   _                   _    _    0,
  _  _  __ _  _    _   _  __     _ stream,
 _   _  _ __  _  _ _         _     m,
  _  _     _   ___      _    _     n,
       _    _      _      _     _  k,
__             __           _    _ dA_array,
   _        ___ _     _      _     lda,
   _   ____         _   _ _      __dB_array,
              __  _      _     __  ldb,
 _ _        _   _ _             _ _dC_array,
     _      _  __       _          ldc,
      _       _   _ _ __ _      ___batch_count);
    _       }
 __ _   _   else if(alpha == -1.0_&& beta == 0.0)
          _ {
  _  _   _  _ _ hipLaunchKernelGGL(HIP_KERNEL_NAME(gemm_batched_kernel<T,
     _    _     _ _        _ _        ___  _    _    _ __ _ _    _  __ dim_m,
     _   ___       __  _  _ _   _  __ _     _       _ _  _ _           dim_n,
     _   ___     _    _    ____  _  __ _         _ _ _            _    blk_m,
       ___   _ _    _       _  _  _ _         _       __    _          blk_n,
 _ _     __      _ _       _ _   _    ____        _     _  ___     _ __blk_k,
   __   _       ___     _    _       _        _   __    __   __   _ _  blk_m,
   _    _ _  _   _ _  __          _  _       _   _                _   _blk_k,
            _    _      _           __  _ _  _       _   _ ___  _ _  _ blk_k,
_   _  __ _                ___ _   _ _      _  _ __        __    _    _blk_n,
_    _   _          _     _____          _     _ _           _      _  -1,
    _ _ _        __  _  _ _ _ _      _   _  _ __ _    __  _  _  _ _ _  0>),
  _   __     _ _            _   _  dimGrid,
    _       __ __      _     _     dimBlock,
 _   __      _  _    __    _  _  _ 0,
     _  _ _ _  _          _   _   _stream,
     __       _  __ _    _   _ _ _ m,
 _      ___ _   _       __  __    _n,
  __   _  __     _   _  __  _      k,
 __  _   _ _   _ ___  _ _   _ __   dA_array,
          _ _  _     _    _ _     _lda,
    _    _     ___ _ __    _       dB_array,
  _ __    _    _ _  _      _   _  _ldb,
 _ _ _     __ __       _    __    _dC_array,
_    _   _ _ ____     __  _     ___ldc,
 _     _ _     _ _  _             _batch_count