3 | | #ifdef PPCG4 |
4 | | #define GEMM_DEFAULT_OFFSET_A 0 |
5 | | #define GEMM_DEFAULT_OFFSET_B 1024 |
6 | | #define GEMM_DEFAULT_ALIGN 0x0ffffUL |
7 | | |
8 | | #define SGEMM_DEFAULT_UNROLL_M 16 |
9 | | #define SGEMM_DEFAULT_UNROLL_N 4 |
10 | | #define DGEMM_DEFAULT_UNROLL_M 4 |
11 | | #define DGEMM_DEFAULT_UNROLL_N 4 |
12 | | #define CGEMM_DEFAULT_UNROLL_M 8 |
13 | | #define CGEMM_DEFAULT_UNROLL_N 2 |
14 | | #define ZGEMM_DEFAULT_UNROLL_M 2 |
15 | | #define ZGEMM_DEFAULT_UNROLL_N 2 |
16 | | |
17 | | #define SGEMM_DEFAULT_P 256 |
18 | | #define DGEMM_DEFAULT_P 128 |
19 | | #define CGEMM_DEFAULT_P 128 |
20 | | #define ZGEMM_DEFAULT_P 64 |
21 | | |
22 | | #define SGEMM_DEFAULT_Q 256 |
23 | | #define DGEMM_DEFAULT_Q 256 |
24 | | #define CGEMM_DEFAULT_Q 256 |
25 | | #define ZGEMM_DEFAULT_Q 256 |
26 | | |
27 | | #define SYMV_P 4 |
28 | | #endif |
29 | | |
| 20 | |
| 21 | #ifdef OS_LINUX |
| 22 | #if L2_SIZE == 1024976 |
| 23 | #define SGEMM_DEFAULT_P 320 |
| 24 | #define DGEMM_DEFAULT_P 256 |
| 25 | #define CGEMM_DEFAULT_P 256 |
| 26 | #define ZGEMM_DEFAULT_P 256 |
| 27 | #else |
| 28 | #define SGEMM_DEFAULT_P 176 |
| 29 | #define DGEMM_DEFAULT_P 176 |
| 30 | #define CGEMM_DEFAULT_P 176 |
| 31 | #define ZGEMM_DEFAULT_P 176 |
| 32 | #endif |
| 33 | #endif |
| 34 | |
| 35 | #define SGEMM_DEFAULT_Q 512 |
| 36 | #define DGEMM_DEFAULT_Q 256 |
| 37 | #define CGEMM_DEFAULT_Q 256 |
| 38 | #define ZGEMM_DEFAULT_Q 128 |
| 39 | |
| 40 | #define SYMV_P 4 |
| 41 | |
| 42 | #endif |