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

Sparse blas matrix multiplication - speed vs memory

joao-araujo
Beginner
289 Views

I was doing some comparison tests and noticed that a general matrix multiplication function is faster than a sparse blas specific function (cblas_?gemm and mkl_sparse_?_mm). The objective of sparse blas' matrix multiplication functions, at least, is to be less expensive in terms of memory, but not necessarily in terms of execution time, am I right?

Labels (1)
0 Kudos
1 Reply
mecej4
Honored Contributor III
231 Views

As an extreme counterexample, consider the outer product of two n-vectors. You may use a general matrix multiply routine to perform this operation, although other routines may be better suited. The general matrix routine need not use more temporary storage than that needed for a single real/double.

0 Kudos
Reply