Debian Codegraph @

config/zen2/bli_family_zen2.h

raw symbols SCIP
1 /*
2
3 BLIS
4 An object-based framework for developing high-performance BLAS-like
5 libraries.
6
7 Copyright (C) 2014, The University of Texas at Austin
8 Copyright (C) 2019, Advanced Micro Devices, Inc
9
10 Redistribution and use in source and binary forms, with or without
11 modification, are permitted provided that the following conditions are
12 met:
13 - Redistributions of source code must retain the above copyright
14 notice, this list of conditions and the following disclaimer.
15 - Redistributions in binary form must reproduce the above copyright
16 notice, this list of conditions and the following disclaimer in the
17 documentation and/or other materials provided with the distribution.
18 - Neither the name(s) of the copyright holder(s) nor the names of its
19 contributors may be used to endorse or promote products derived
20 from this software without specific prior written permission.
21
22 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
34 */
35
36 // By default, it is effective to parallelize the outer loops.
37 // Setting these macros to 1 will force JR and IR inner loops
38 // to be not paralleized.
39 #define BLIS_THREAD_MAX_IR 1
40 #define BLIS_THREAD_MAX_JR 1
41
42 // Vanilla BLIS disables AMD's small matrix handling by default.
43 #if 0
44 #define BLIS_ENABLE_SMALL_MATRIX
45 #define BLIS_ENABLE_SMALL_MATRIX_TRSM
46
47 // This will select the threshold below which small matrix code will be called.
48 #define BLIS_SMALL_MATRIX_THRES 700
49 #define BLIS_SMALL_M_RECT_MATRIX_THRES 160
50 #define BLIS_SMALL_K_RECT_MATRIX_THRES 128
51
52 #define BLIS_SMALL_MATRIX_THRES_TRSM 32768 //128(128+128) => m*(m+n)
53 #define BLIS_SMALL_MATRIX_A_THRES_TRSM 128
54 #define BLIS_SMALL_MATRIX_A_THRES_M_GEMMT 96
55 #define BLIS_SMALL_MATRIX_A_THRES_N_GEMMT 128
56
57 #define BLIS_ENABLE_SMALL_MATRIX_ROME
58 #define BLIS_SMALL_MATRIX_THRES_ROME 400
59
60 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_ALXB_ROME 80
61 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_ALXB_ROME_ROW_PANEL_M 40
62 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_ALXB_ROME_COLUMN_PANEL_M 1000
63 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_ALXB_ROME_COLUMN_PANEL_N 10
64
65 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XAUB_ROME 150
66 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XAUB_ROME_ROW_PANEL_M 5
67 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XAUB_ROME_COLUMN_PANEL_N 130
68
69 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XALTB_ROME 120
70 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XALTB_ROME_ROW_PANEL_M 10
71 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XALTB_ROME_ROW_PANEL_N 1200
72 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XALTB_ROME_SQUARE_M 30
73 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XALTB_ROME_SQUARE_N 280
74 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XALTB_ROME_COLUMN_PANEL_N 100
75
76 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XALB_ROME 110
77 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XALB_ROME_COL_PANEL_N 30
78
79 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XAUTB_ROME 120
80 #define D_BLIS_SMALL_MATRIX_THRES_TRSM_XAUTB_ROME_COL_PANEL_N 50
81
82 // When running HPL with pure MPI without DGEMM threading (Single-threaded
83 // BLIS), defining this macro as 1 yields better performance.
84 #define AOCL_BLIS_MULTIINSTANCE 0
85 #endif
86