Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
6590 Discussions

How to get sparse array in CSR format from a matrix handle?

dimdol10
New Contributor I
177 Views

Hello,

I'm using Sparse BLAS routines in MKL.

For matrix-matrix multiplications using the mkl_sparse_spmm routine, I created matrix handles, and then execute the routine.

But, how can I get the result in the original CSR format? I mean, the mkl_sparse_spmm gives the result in the form of matrix handle (pointer),

so I need a further step to get the final result in CSR format.

Thanks.

0 Kudos
1 Reply
MariaZh
Employee
177 Views

Hi,
To export the matrix in CSR format from a sparse handle you can use mkl_sparse_?_export_csr() routine (please, refer to https://software.intel.com/en-us/mkl-developer-reference-c-mkl-sparse-export-csr).

Best regards,
Maria

Reply