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

34 lines
930 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef GEMM_H
  2. #define GEMM_H
  3. void gemm_bin(int M, int N, int K, float ALPHA,
  4. char *A, int lda,
  5. float *B, int ldb,
  6. float *C, int ldc);
  7. void gemm(int TA, int TB, int M, int N, int K, float ALPHA,
  8. float *A, int lda,
  9. float *B, int ldb,
  10. float BETA,
  11. float *C, int ldc);
  12. void gemm_cpu(int TA, int TB, int M, int N, int K, float ALPHA,
  13. float *A, int lda,
  14. float *B, int ldb,
  15. float BETA,
  16. float *C, int ldc);
  17. #ifdef GPU
  18. void gemm_ongpu(int TA, int TB, int M, int N, int K, float ALPHA,
  19. float *A_gpu, int lda,
  20. float *B_gpu, int ldb,
  21. float BETA,
  22. float *C_gpu, int ldc);
  23. void gemm_gpu(int TA, int TB, int M, int N, int K, float ALPHA,
  24. float *A, int lda,
  25. float *B, int ldb,
  26. float BETA,
  27. float *C, int ldc);
  28. #endif
  29. #endif