I would like to know why the cublasSgemm return wrong result.

I would like to multiply a matrix A of size (2,2)

and an over matrix B of size (2,6) initialized like this

A

0.375 0

0 0.625

B

0.0968 0.1613 0.1935 0.0968 0.3226 0.129

0.0625 0.1875 0.1875 0.2083 0.2083 0.1458

The result C is

0.0363 0.1008 0.0726 0.0605 0.121 0.0806

0.0234 0.1172 0.0703 0.1302 0.0781 0.0911

But I know the result should be

0.0363 0.0605 0.0726 0.0363 0.1210 0.0484

0.0391 0.1172 0.1172 0.1302 0.1302 0.0911

the code is like this:

cublasSgemm(‘n’,‘n’,2, 6, 2,1.0f,A,2,B,2,0.0f,C,2);

I would appreciate any help.

Thank you