kusano 2b45e8
#include <stdio.h></stdio.h>
kusano 2b45e8
#ifndef BUILD_KERNEL
kusano 2b45e8
#include "config.h"
kusano 2b45e8
#else
kusano 2b45e8
#include "config_kernel.h"
kusano 2b45e8
#endif
kusano 2b45e8
#include "param.h"
kusano 2b45e8
kusano 2b45e8
int main(int argc, char **argv) {
kusano 2b45e8
kusano 2b45e8
  if ((argc < 1) || (*argv[1] == '0')) {
kusano 2b45e8
    printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
kusano 2b45e8
    printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
kusano 2b45e8
    printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
kusano 2b45e8
    printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
kusano 2b45e8
    printf("QGEMM_UNROLL_M=%d\n", QGEMM_DEFAULT_UNROLL_M);
kusano 2b45e8
    printf("QGEMM_UNROLL_N=%d\n", QGEMM_DEFAULT_UNROLL_N);
kusano 2b45e8
    
kusano 2b45e8
    printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
kusano 2b45e8
    printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
kusano 2b45e8
    printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
kusano 2b45e8
    printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
kusano 2b45e8
    printf("XGEMM_UNROLL_M=%d\n", XGEMM_DEFAULT_UNROLL_M);
kusano 2b45e8
    printf("XGEMM_UNROLL_N=%d\n", XGEMM_DEFAULT_UNROLL_N);
kusano 2b45e8
  } 
kusano 2b45e8
  
kusano 2b45e8
kusano 2b45e8
  if ((argc >= 1) && (*argv[1] == '1')) {
kusano 2b45e8
    printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 *  sizeof(float)));
kusano 2b45e8
    printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 *  sizeof(double)));
kusano 2b45e8
    printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 *  sizeof(float)));
kusano 2b45e8
    printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 *  sizeof(double)));
kusano 2b45e8
kusano 2b45e8
#ifdef USE64BITINT
kusano 2b45e8
	printf("#define USE64BITINT\n");
kusano 2b45e8
#endif
kusano 2b45e8
	printf("#define GEMM_MULTITHREAD_THRESHOLD\t%ld\n", GEMM_MULTITHREAD_THRESHOLD);
kusano 2b45e8
  }
kusano 2b45e8
kusano 2b45e8
  return 0;
kusano 2b45e8
}