Created
September 30, 2015 15:19
-
-
Save saevarb/6f7229adad82a86187e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void reference_dgemm (int N, double ALPHA, double* A, double* B, double* C) | |
{ | |
int M = N; | |
int K = N; | |
double BETA = 1.; | |
int LDA = N; | |
int LDB = N; | |
int LDC = N; | |
#ifdef LOCAL | |
cblas_dgemm(CblasColMajor, CblasNoTrans, CblasNoTrans, M, N, K, ALPHA, A, LDA, B, LDB, BETA, C, LDC); | |
#else | |
DGEMM(&TRANSA, &TRANSB, &M, &N, &K, &ALPHA, A, &LDA, B, &LDB, &BETA, C, &LDC); | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment