Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

CBLAS matrix order and overhead?

Michael_Stauffer
Beginner
382 Views
Hi,

Do the CBLAS matrix routines reorder the matrix array(s) from row-major to column-major in order to use the underlying Fortran BLAS implementation? Or should I pass column-ordered matricies when calling with CBLAS? If the former, there must be some overhead involved in the conversion. Thanks.

BTW, I haven't found a way to search a particular forum. The search box on the side of the forum page let's me choose to search forums, but not a particular one, and seems the same for Advanced Search. Am I missing something?

Cheers,
Michael
0 Kudos
4 Replies
Andrey_Bespalov
New Contributor I
382 Views

CBLAS doesn't reoder the matrix arrays.
0 Kudos
Michael_Stauffer
Beginner
382 Views

CBLAS doesn't reoder the matrix arrays.

Thanks, very good to know. I should have experimented more first. Since the interface requries passing the order of the array, it suggests it doesn't reorder. But still, good to know from the source.

So, the only performance penalty is negligible, the cost of the C wrapper to the Fortan lib?

Cheers
0 Kudos
Andrey_Bespalov
New Contributor I
382 Views

Yes, exactly.
0 Kudos
mgstauffer
Beginner
382 Views

Yes, exactly.

Great, thanks.
0 Kudos
Reply