Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Eugene_S_1
Beginner
36 Views

sparse_matrix_checker error value constants

The MKL manual lists the following constants for the error value returned by the sparse_matrix_checker subroutine: MKL_SPARSE_CHECKER_SUCCESS, MKL_SPARSE_CHECKER_NON_MONOTONIC, MKL_SPARSE_CHECKER_OUT_OF_RANGE, MKL_SPARSE_CHECKER_NONTRIANGULAR and MKL_SPARSE_CHECKER_NONORDERED.

Where are they defined?

 

Thank you.

0 Kudos
4 Replies
Ying_H_Intel
Employee
36 Views

Hi Eugene

Thanks you for asking. It seem we really miss these definitions.  I will check the latest version and update you if any news. 

Thanks

Ying H.

Intel MKL Support 

Gennady_F_Intel
Moderator
36 Views

Eugene, thanks for the issue. We missed to add this info into header files. We will add this info later into one of the updates.

here is info which we missed to add. 

MKL_SPARSE_CHECKER_SUCCESS,  = 0

MKL_SPARSE_CHECKER_NON_MONOTONIC = 21,

MKL_SPARSE_CHECKER_OUT_OF_RANGE,  = 22

MKL_SPARSE_CHECKER_NONTRIANGULAR = 23

MKL_SPARSE_CHECKER_NONORDERED = 24

 

hope that helps.

--Gennady

Eugene_S_1
Beginner
36 Views

Thank you very much. Now it's clear where the magic number 23 in matrix_check.f90 comes from.

Gennady_F_Intel
Moderator
36 Views

here is the original ja array 

JA = (/ 1,    3,       6, 7,
     .             2, 3,    5,
     .                3,             8,
     .                   3,       7,
     .                      5, 6, 7,
     .                         6,    8,
     .                            7,
     .                               8 /)

*** Input check: i=4, j=ia(i)=10, ja(j)=3 are incompatible
Matrix check result code: 23
Matrix check details: (4, 10, 3)
 

but here how it could be

JA = (/ 1,    3,       6, 7,
     .             2, 3,    5,
     .                3,             8,
     .                   4,       7,
     .                      5, 6, 7,
     .                         6,    8,
     .                            7,
     .                               8 /)

Matrix check result code: 0
Matrix check details: (0, 0, 0)
 

I hope that helps

 

Reply