Turn on suggestions

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

Showing results for

- Intel Community
- Software
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library
- MKL mkl_?csrcoo conversion problem

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

Ali_R_3

Beginner

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

10-21-2016
04:11 AM

71 Views

MKL mkl_?csrcoo conversion problem

I am using MKL c++ version to solve for pardiso. My input is a sparse matrix in the coordinate format and I am planning to convert it to CSR format to use the pardiso command with mkl_?csrcoo. The problem is that The conversion does not order the column indices, even though I specified job[0] = 2; . Also, I have some zero values and duplicate enrtires in the coordinate sparse matrix. So I do not know if that is why it is unable to do the conversion correctly or not. I tried duplicate values on the mkl example and it worked fine. Please advise as what should be done. Thank you and have a great one.

Link Copied

3 Replies

Shaojuan_Z_Intel

Employee

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

10-21-2016
11:20 AM

71 Views

Hi Ali,

Which version of MKL you are using? You tried "mkl example and it worked fine", but your routine using mkl_?csrcoo didn't work? If so, can you provide your code? Thanks!

mecej4

Black Belt

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

10-22-2016
08:44 AM

71 Views

As you can see at https://software.intel.com/en-us/node/599837, in the sparse BLAS coordinate storage format only non-zero elements are to be given explicitly. If your data does not conform to that requirement, the conversion routine mkl_?csrcoo may not work correctly.

There are some special cases where zero-valued diagonals are required to be stored explicitly (the DSS symmetric solvers, for example, with only the upper or lower triangle of the matrix stored). The conversion routine, however, has no provision for handling such special matrices.

Ali_R_3

Beginner

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

10-25-2016
09:52 AM

71 Views

Hi

I am getting an increasing order of column index per row, as it should , now. But I do have repeated values in the sparse coordinate format. As a result, the column index vector in the CSR format has repeated values. Does pardiso handle repeated values in the CSR format?

Topic Options

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

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