- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a strange problem with MKL 2025 Pardiso Solve.
I have simple code (attached) which is essentially loading a sparse matrix, running a two-step factorization and then running back substitution for an input vector. In short, the code looks like
A.load(File) // Square sparse matrix in Yale format
B = Simple vector internally crated // Size == A.rowSize()
X = 0 // Solution initialized to 0
// Phase 11
A.symbolic_factorization(....)
// Phase 22
A.numerical_factorization(....)
//Phase 33
A.BackSubstitute(B, X) // Expecting X to have the solution of AX = B
I am attaching the matrix ( named Good and Bad).
Using MKL 2021.3, for both Good and Bad matrix I am getting AX = B
However
Using MKL 2025.0 , I am getting the expected results for the Good case, but it is not working for the Bad case. In fact strangely, I am getting X ==0 after the backsubstibution call as if A is behaving like an identity matrix. I am not getting any errors in Phases 11, 22 or 33.
Clearly it is a case specific problem as the Good matrix is showing ok ( also we have tested this for many different matrices and everything works fine except this one case). Any help will be appreciated.
I have included the C++ file, along with the input matrices ( Yale*.txt) and the B's and X's for the good and bad cases.
Thanks
Swagato
PS: For some reason it is not attaching my C++ code even if I am calling it a text file. So pasting the code here ( apologies for the indentation getting messed up) :
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting in the forum. All-zero output for some matrices with iparm[7]=0 is a known issue for oneMKL 2025.0. It has been fixed and the fix will be included in the upcoming 2025.1 release.
I tried the Bad_matrix case with the fixed version and the results are expected.
Btw, starting from oneMKL 2025.0 iparm[7]=0 will turn off the iterative refinement completely, while in prior versions iparm[7]=0 performs 2 iterative refinement steps.
Thanks,
Fengrui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Fengrui : Thanks for the quick response. What is the ETA of 2025.1
To make the 2025.0 behave similar to previous versions, should we change iparm[7] = 2?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is planned for late March timeframe. I will update here when it is available.
Yes, setting iparm[7]=2 will bring the default behavior (2 iterative refinement steps) of previous versions back. Please give it a try. I just tried on my side, and the results seem to be expected (not trivial solutions).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Is there a list of other known issues with MKL 2025.0 Pardiso ?
I ran an experiment with iparm[7]=2 and in my isolated matrix solve environment, that is indeed producing similar ( not identical) results to what I get with 2021. However, when I am running our entire solution ( 3D EM Solver, with many sparse matrix operations) I am getting bad result with the 2025 version with ipard[7]=2 and that gets fixed with 2021 version.
Before we dive deeper to isolate what is going wrong at a single matrix operation level, wanted to check if there are other known issues that might be impacting us.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting the issue and testing iparm[7]=2 setting.
An associated problem might happen if iparm[20] is set to 2 or 3 for symmetric indefinite matrices (mtype=-2,-4 or 6). Do you set them?
We are not aware of any other new PARDISO issue in oneMKL 2025.0.
Could you maybe try to isolate the matrix and share it with us.
Thank you,
Chris

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