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.

39 lines
777 B

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