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_hemm_check.h"
36 #include "bli_hemm_entry.h"
37 #include "bli_hemm_front.h"
39 #include "bli_hemm4m.h"
40 #include "bli_hemm3m.h"
41 #include "bli_hemm4mh.h"
42 #include "bli_hemm3mh.h"
45 //
46 // Prototype object-based interface.
47 //
48 void bli_hemm( side_t side,
49 obj_t* alpha,
50 obj_t* a,
51 obj_t* b,
52 obj_t* beta,
53 obj_t* c );
56 //
57 // Prototype BLAS-like interfaces with homogeneous-typed operands.
58 //
59 #undef GENTPROT
60 #define GENTPROT( ctype, ch, opname ) \
61 \
62 void PASTEMAC(ch,opname)( \
63 side_t side, \
64 uplo_t uploa, \
65 conj_t conja, \
66 trans_t transb, \
67 dim_t m, \
68 dim_t n, \
69 ctype* alpha, \
70 ctype* a, inc_t rs_a, inc_t cs_a, \
71 ctype* b, inc_t rs_b, inc_t cs_b, \
72 ctype* beta, \
73 ctype* c, inc_t rs_c, inc_t cs_c \
74 );
76 INSERT_GENTPROT_BASIC( hemm )
79 //
80 // Prototype BLAS-like interfaces with heterogeneous-typed operands.
81 //
82 #undef GENTPROT3U12
83 #define GENTPROT3U12( ctype_a, ctype_b, ctype_c, ctype_ab, cha, chb, chc, chab, opname ) \
84 \
85 void PASTEMAC3(cha,chb,chc,opname)( \
86 side_t side, \
87 uplo_t uploa, \
88 conj_t conja, \
89 trans_t transb, \
90 dim_t m, \
91 dim_t n, \
92 ctype_ab* alpha, \
93 ctype_a* a, inc_t rs_a, inc_t cs_a, \
94 ctype_b* b, inc_t rs_b, inc_t cs_b, \
95 ctype_c* beta, \
96 ctype_c* c, inc_t rs_c, inc_t cs_c \
97 );
99 INSERT_GENTPROT3U12_BASIC( hemm )
101 #ifdef BLIS_ENABLE_MIXED_DOMAIN_SUPPORT
102 INSERT_GENTPROT3U12_MIX_D( hemm )
103 #endif
105 #ifdef BLIS_ENABLE_MIXED_PRECISION_SUPPORT
106 INSERT_GENTPROT3U12_MIX_P( hemm )
107 #endif