You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

getarch_2nd.c 1.5 kB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. int main(int argc, char **argv) {
  9. if ((argc < 1) || (*argv[1] == '0')) {
  10. printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
  11. printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
  12. printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
  13. printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
  14. printf("QGEMM_UNROLL_M=%d\n", QGEMM_DEFAULT_UNROLL_M);
  15. printf("QGEMM_UNROLL_N=%d\n", QGEMM_DEFAULT_UNROLL_N);
  16. printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
  17. printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
  18. printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
  19. printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
  20. printf("XGEMM_UNROLL_M=%d\n", XGEMM_DEFAULT_UNROLL_M);
  21. printf("XGEMM_UNROLL_N=%d\n", XGEMM_DEFAULT_UNROLL_N);
  22. }
  23. if ((argc >= 1) && (*argv[1] == '1')) {
  24. printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 * sizeof(float)));
  25. printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 * sizeof(double)));
  26. printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float)));
  27. printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 * sizeof(double)));
  28. #ifdef USE64BITINT
  29. printf("#define USE64BITINT\n");
  30. #endif
  31. }
  32. return 0;
  33. }

OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.