]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - dense-linear-algebra-libraries/linalg.git/blob - blis/frame/3/gemm/bli_gemm.h
TI Linear Algebra Library (LINALG) Rlease 1.0.0
[dense-linear-algebra-libraries/linalg.git] / blis / frame / 3 / gemm / bli_gemm.h
1 /*
3    BLIS    
4    An object-based framework for developing high-performance BLAS-like
5    libraries.
7    Copyright (C) 2014, The University of Texas at Austin
9    Redistribution and use in source and binary forms, with or without
10    modification, are permitted provided that the following conditions are
11    met:
12     - Redistributions of source code must retain the above copyright
13       notice, this list of conditions and the following disclaimer.
14     - Redistributions in binary form must reproduce the above copyright
15       notice, this list of conditions and the following disclaimer in the
16       documentation and/or other materials provided with the distribution.
17     - Neither the name of The University of Texas at Austin nor the names
18       of its contributors may be used to endorse or promote products
19       derived from this software without specific prior written permission.
21    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24    A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25    HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
35 #include "bli_gemm_cntl.h"
36 #include "bli_gemm_blocksize.h"
37 #include "bli_gemm_query.h"
38 #include "bli_gemm_check.h"
39 #include "bli_gemm_entry.h"
40 #include "bli_gemm_front.h"
41 #include "bli_gemm_int.h"
43 #include "bli_gemm_ukernel.h"
45 #include "bli_gemm_blk_var1f.h"
46 #include "bli_gemm_blk_var2f.h"
47 #include "bli_gemm_blk_var3f.h"
49 #include "bli_gemm_ker_var2.h"
51 #include "bli_gemm_ukr_ref.h"
53 #include "bli_gemm4m.h"
54 #include "bli_gemm3m.h"
55 #include "bli_gemm4mh.h"
56 #include "bli_gemm3mh.h"
58 //
59 // Prototype object-based interface.
60 //
61 void bli_gemm( obj_t*  alpha,
62                obj_t*  a,
63                obj_t*  b,
64                obj_t*  beta,
65                obj_t*  c );
68 //
69 // Prototype BLAS-like interfaces with homogeneous-typed operands.
70 //
71 #undef  GENTPROT
72 #define GENTPROT( ctype, ch, opname ) \
73 \
74 void PASTEMAC(ch,opname)( \
75                           trans_t transa, \
76                           trans_t transb, \
77                           dim_t   m, \
78                           dim_t   n, \
79                           dim_t   k, \
80                           ctype*  alpha, \
81                           ctype*  a, inc_t rs_a, inc_t cs_a, \
82                           ctype*  b, inc_t rs_b, inc_t cs_b, \
83                           ctype*  beta, \
84                           ctype*  c, inc_t rs_c, inc_t cs_c  \
85                         );
87 INSERT_GENTPROT_BASIC( gemm )
90 //
91 // Prototype BLAS-like interfaces with heterogeneous-typed operands.
92 //
93 #undef  GENTPROT3U12
94 #define GENTPROT3U12( ctype_a, ctype_b, ctype_c, ctype_ab, cha, chb, chc, chab, opname ) \
95 \
96 void PASTEMAC3(cha,chb,chc,opname)( \
97                                     trans_t   transa, \
98                                     trans_t   transb, \
99                                     dim_t     m, \
100                                     dim_t     n, \
101                                     dim_t     k, \
102                                     ctype_ab* alpha, \
103                                     ctype_a*  a, inc_t rs_a, inc_t cs_a, \
104                                     ctype_b*  b, inc_t rs_b, inc_t cs_b, \
105                                     ctype_c*  beta, \
106                                     ctype_c*  c, inc_t rs_c, inc_t cs_c  \
107                                   );
109 INSERT_GENTPROT3U12_BASIC( gemm )
111 #ifdef BLIS_ENABLE_MIXED_DOMAIN_SUPPORT
112 INSERT_GENTPROT3U12_MIX_D( gemm )
113 #endif
115 #ifdef BLIS_ENABLE_MIXED_PRECISION_SUPPORT
116 INSERT_GENTPROT3U12_MIX_P( gemm )
117 #endif