Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
- mkl_sparse_convert_csr and mkl_sparse_convert_bsr

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted

Meng__Xiangyi

Novice

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-02-2019
03:19 PM

65 Views

Hello,

I used to assemble a sparse matrix in COO format. When I use mkl_sparse_convert_csr/mkl_sparse_convert_bsr to convert to CSR/BSR format matrix, is the column index in increasing order per row automatically, which is required by PARDISO solver? I have tested a simple example, the answer is yes, but I don't know if it is always in increasing order. Anybody can help me? Thank you in advance.

Accepted Solutions

Highlighted
Thanks for your answer and extra advice! However, it seems that mkl_sparse_order only supports CSR format, hope it will also support BSR format I the new MKL version.

Meng__Xiangyi

Novice

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-02-2019
10:47 PM

65 Views

3 Replies

Highlighted

Kirill_V_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-02-2019
03:45 PM

65 Views

Hello!

Yes, the two converters always sort the column indices in increasing order.

As a side note, you can turn the matrix checker in PARDISO if you want to catch this in runtime (if matrix is not coming from the converter and you are not sure about whether it is sorted). Also, we have a separate routine mkl_sparse_order if you want to sort the indices (for example, if you get the matrix as a result of sparse matrix-matrix multiplication from old SpBLAS).

Hope this helps.

Best,

Kirill

Highlighted
Thanks for your answer and extra advice! However, it seems that mkl_sparse_order only supports CSR format, hope it will also support BSR format I the new MKL version.

Meng__Xiangyi

Novice

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-02-2019
10:47 PM

66 Views

Highlighted
in the case, if you are interesting to see BSR matrix format support, then you need to submit the Feature Request to the Intel Online Service Center

Gennady_F_Intel

Moderator

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-03-2019
01:20 AM

65 Views

For more complete information about compiler optimizations, see our Optimization Notice.