Skip to content

Commit 8c3ffc2

Browse files
authored
ggml : update cblas_sgemm columns var to be more reasonable (abetlen#838)
1 parent 107980d commit 8c3ffc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ggml.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6435,7 +6435,7 @@ static void ggml_compute_forward_mul_mat_f32(
64356435
cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
64366436
ne11, ne01, ne10,
64376437
1.0f, y, ne10,
6438-
x, ne10,
6438+
x, ne00,
64396439
0.0f, d, ne01);
64406440
}
64416441
}
@@ -6607,7 +6607,7 @@ static void ggml_compute_forward_mul_mat_f16_f32(
66076607
cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
66086608
ne11, ne01, ne10,
66096609
1.0f, y, ne10,
6610-
x, ne10,
6610+
x, ne00,
66116611
0.0f, d, ne01);
66126612
}
66136613
}
@@ -6820,7 +6820,7 @@ static void ggml_compute_forward_mul_mat_q_f32(
68206820
cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasTrans,
68216821
ne11, ne01, ne10,
68226822
1.0f, y, ne10,
6823-
x, ne10,
6823+
x, ne00,
68246824
0.0f, d, ne01);
68256825
}
68266826
}

0 commit comments

Comments
 (0)