]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - dense-linear-algebra-libraries/linalg.git/blob - blis/config/piledriver/bli_kernel.h
TI Linear Algebra Library (LINALG) Rlease 1.0.0
[dense-linear-algebra-libraries/linalg.git] / blis / config / piledriver / bli_kernel.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 #ifndef BLIS_KERNEL_H
36 #define BLIS_KERNEL_H
39 // -- LEVEL-3 MICRO-KERNEL CONSTANTS -------------------------------------------
41 // -- Cache blocksizes --
43 //
44 // Constraints:
45 //
46 // (1) MC must be a multiple of:
47 //     (a) MR (for zero-padding purposes)
48 //     (b) NR (for zero-padding purposes when MR and NR are "swapped")
49 // (2) NC must be a multiple of
50 //     (a) NR (for zero-padding purposes)
51 //     (b) MR (for zero-padding purposes when MR and NR are "swapped")
52 // (3) KC must be a multiple of
53 //     (a) MR and
54 //     (b) NR (for triangular operations such as trmm and trsm).
55 //
57 #define BLIS_SGEMM_UKERNEL         bli_sgemm_new_16x3
58 #define BLIS_DEFAULT_MC_S              2016
59 #define BLIS_DEFAULT_KC_S              128
60 #define BLIS_DEFAULT_NC_S              8400
61 #define BLIS_DEFAULT_MR_S              16
62 #define BLIS_DEFAULT_NR_S              3
63 //#define BLIS_UPANEL_B_ALIGN_SIZE_S     4096
65 #define BLIS_DGEMM_UKERNEL         bli_dgemm_new_8x3
66 //#define BLIS_DEFAULT_MC_D              768
67 //#define BLIS_DEFAULT_KC_D              168
68 #define BLIS_DEFAULT_MC_D              1008
69 #define BLIS_DEFAULT_KC_D              128
70 #define BLIS_DEFAULT_NC_D              8400
71 #define BLIS_DEFAULT_MR_D              8
72 #define BLIS_DEFAULT_NR_D              3
73 //#define BLIS_UPANEL_B_ALIGN_SIZE_D     4096
75 #define BLIS_CGEMM_UKERNEL         bli_cgemm_new_4x2
76 #define BLIS_DEFAULT_MC_C              512
77 #define BLIS_DEFAULT_KC_C              256
78 #define BLIS_DEFAULT_NC_C              8400
79 #define BLIS_DEFAULT_MR_C              4
80 #define BLIS_DEFAULT_NR_C              2
82 #define BLIS_ZGEMM_UKERNEL         bli_zgemm_new_2x2
83 #define BLIS_DEFAULT_MC_Z              400
84 #define BLIS_DEFAULT_KC_Z              160
85 #define BLIS_DEFAULT_NC_Z              8400
86 #define BLIS_DEFAULT_MR_Z              2
87 #define BLIS_DEFAULT_NR_Z              2
91 // -- Register blocksizes --
95 // -- Micro-panel alignment --
101 // -- LEVEL-2 KERNEL CONSTANTS -------------------------------------------------
106 // -- LEVEL-1F KERNEL CONSTANTS ------------------------------------------------
111 // -- LEVEL-3 KERNEL DEFINITIONS -----------------------------------------------
113 // -- gemm --
116 // -- trsm-related --
121 // -- LEVEL-1M KERNEL DEFINITIONS ----------------------------------------------
123 // -- packm --
125 // -- unpackm --
130 // -- LEVEL-1F KERNEL DEFINITIONS ----------------------------------------------
132 // -- axpy2v --
134 // -- dotaxpyv --
136 // -- axpyf --
138 // -- dotxf --
140 // -- dotxaxpyf --
145 // -- LEVEL-1V KERNEL DEFINITIONS ----------------------------------------------
147 // -- addv --
149 // -- axpyv --
151 // -- copyv --
153 // -- dotv --
155 // -- dotxv --
157 // -- invertv --
159 // -- scal2v --
161 // -- scalv --
163 // -- setv --
165 // -- subv --
167 // -- swapv --
171 #endif