Community
cancel
Showing results for 
Search instead for 
Did you mean: 
baki
Beginner
112 Views

MKL_SPARSE_?_QR invalid input error (Fortran)

Jump to solution

Hello,

I am experimenting the Sparse QR library to solve a linear system of equations. When I run the attached file, I get the following output:

0

0

0

3

The last output "3" indicates "SPARSE_STATUS_INVALID_VALUE The input parameters contain an invalid value." 

Can anyone help?

0 Kudos
1 Solution
Gennady_F_Intel
Moderator
112 Views

you put the input parameters into wriong order, fixing that, you will see the correct answer:

!stat = MKL_SPARSE_S_QR (SPARSE_OPERATION_NON_TRANSPOSE, csrA, descrA, SPARSE_LAYOUT_ROW_MAJOR, x, cols, ldx, b, ldb)
stat = MKL_SPARSE_S_QR (SPARSE_OPERATION_NON_TRANSPOSE, csrA, descrA, SPARSE_LAYOUT_ROW_MAJOR, cols, x,  ldx, b, ldb)
_mkl_forum\u815245>test.exe
           0
           0
           0
           0

 
           

View solution in original post

4 Replies
Gennady_F_Intel
Moderator
113 Views

you put the input parameters into wriong order, fixing that, you will see the correct answer:

!stat = MKL_SPARSE_S_QR (SPARSE_OPERATION_NON_TRANSPOSE, csrA, descrA, SPARSE_LAYOUT_ROW_MAJOR, x, cols, ldx, b, ldb)
stat = MKL_SPARSE_S_QR (SPARSE_OPERATION_NON_TRANSPOSE, csrA, descrA, SPARSE_LAYOUT_ROW_MAJOR, cols, x,  ldx, b, ldb)
_mkl_forum\u815245>test.exe
           0
           0
           0
           0

 
           

View solution in original post

baki
Beginner
112 Views

Thank you so much for the prompt reply. It solved the problem.

Here is a feedback: the page 324 of the documentation "Intel Math Kernel Library Developer Reference" is incorrect:

Capture.PNG

Gennady_F_Intel
Moderator
112 Views

The problem has been fixed in MKL version 2019 update 5. Please let us know if the problem still exists on your side. 

Gennady_F_Intel
Moderator
112 Views

MKL v.2020 has been released and contains the fix of this problem either.

Reply