Merge branch 'develop'
[platform/upstream/openblas.git] / getarch_2nd.c
1 #include <stdio.h>
2 #ifndef BUILD_KERNEL
3 #include "config.h"
4 #else
5 #include "config_kernel.h"
6 #endif
7 #include "param.h"
8
9 int main(int argc, char **argv) {
10
11   if ((argc < 1) || (*argv[1] == '0')) {
12     printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
13     printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
14     printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
15     printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
16     printf("QGEMM_UNROLL_M=%d\n", QGEMM_DEFAULT_UNROLL_M);
17     printf("QGEMM_UNROLL_N=%d\n", QGEMM_DEFAULT_UNROLL_N);
18     
19     printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
20     printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
21     printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
22     printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
23     printf("XGEMM_UNROLL_M=%d\n", XGEMM_DEFAULT_UNROLL_M);
24     printf("XGEMM_UNROLL_N=%d\n", XGEMM_DEFAULT_UNROLL_N);
25   } 
26   
27
28   if ((argc >= 1) && (*argv[1] == '1')) {
29     printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 *  sizeof(float)));
30     printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 *  sizeof(double)));
31     printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 *  sizeof(float)));
32     printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 *  sizeof(double)));
33
34 #ifdef USE64BITINT
35         printf("#define USE64BITINT\n");
36 #endif
37         printf("#define GEMM_MULTITHREAD_THRESHOLD\t%ld\n", (long int)GEMM_MULTITHREAD_THRESHOLD);
38   }
39
40   return 0;
41 }