Skip to content

Instantly share code, notes, and snippets.

@saevarb
Created September 30, 2015 15:19
Show Gist options
  • Save saevarb/6f7229adad82a86187e5 to your computer and use it in GitHub Desktop.
Save saevarb/6f7229adad82a86187e5 to your computer and use it in GitHub Desktop.
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