Skip to content

Commit

Permalink
cblas_sgemv - fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
trholding committed Jul 31, 2023
1 parent 36413d9 commit 57fca7d
Show file tree
Hide file tree
Showing 2 changed files with 675 additions and 1 deletion.
2 changes: 1 addition & 1 deletion run.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ void matmul(float* xout, float* x, float* w, int n, int d) {
// W (d,n) @ x (n,) -> xout (d,)
// by far the most amount of time is spent inside this little function
#ifdef BLAS
cblas_sgemv(CblasRowMajor, CblasNoTrans, d, n, 1, w, n, x, 1, 0, xout, 1);
cblas_sgemv(CblasRowMajor, CblasNoTrans, d, n, 1.0f, w, n, x, 1, 0.0f, xout, 1);
#else
int i;
#pragma omp parallel for private(i)
Expand Down
Loading

0 comments on commit 57fca7d

Please sign in to comment.