Skip to content

Commit 86c65a5

Browse files
ajz34claudebigmodel88
committed
Fix CBLAS order handling in gemm_batch_strided for column-major layout
Co-authored-by: Claude Code <noreply@anthropic.com> Co-authored-by: glm-5.3 <service@zhipuai.cn>
1 parent 05518e0 commit 86c65a5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

interface/gemm_batch_strided.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,16 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_TRANSPOSE transa, enum CBLAS_TRANS
229229
group_transb = -1;
230230
info = 0;
231231

232-
#if defined(CBLAS)
232+
#if defined(CBLAS)
233233
if (order == CblasColMajor) {
234234
group_m = m;
235235
group_n = n;
236236
group_k = k;
237237

238-
238+
group_lda = lda;
239+
group_ldb = ldb;
240+
group_ldc = ldc;
241+
239242
if (transa == CblasNoTrans) group_transa = 0;
240243
if (transa == CblasTrans) group_transa = 1;
241244
#ifndef COMPLEX

0 commit comments

Comments
 (0)