aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir <bogdad@gmail.com>2023-04-13 15:24:30 +0200
committerGitHub <noreply@github.com>2023-04-13 16:24:30 +0300
commit8c3ffc2f048a372639906fb30ec3c2070288d3be (patch)
tree5f1707ef08a830b0e7120242476038a701179bd1
parent107980d970808c2ccf9334ad033e2782a560b911 (diff)
ggml : update cblas_sgemm columns var to be more reasonable (#838)
-rw-r--r--ggml.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ggml.c b/ggml.c
index a26b485..546da30 100644
--- a/ggml.c
+++ b/ggml.c
@@ -6435,7 +6435,7 @@ static void ggml_compute_forward_mul_mat_f32(
cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
ne11, ne01, ne10,
1.0f, y, ne10,
- x, ne10,
+ x, ne00,
0.0f, d, ne01);
}
}
@@ -6607,7 +6607,7 @@ static void ggml_compute_forward_mul_mat_f16_f32(
cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
ne11, ne01, ne10,
1.0f, y, ne10,
- x, ne10,
+ x, ne00,
0.0f, d, ne01);
}
}
@@ -6820,7 +6820,7 @@ static void ggml_compute_forward_mul_mat_q_f32(
cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
ne11, ne01, ne10,
1.0f, y, ne10,
- x, ne10,
+ x, ne00,
0.0f, d, ne01);
}
}