Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

PARDISO-CSR format

Reza2021
初学者
2,591 次查看

Hi Everyone,

I wanted to use the PARDISO solver for my finite element Fortran code. I found the sample code (pardiso_sym_f90) from MKL library examples, and I was able to run the sample code. However, I could not find the routine to convert my matrix (unsymmetric banded matrix) to CSR format to use in PARDISO. Would you please advise me about that? Thank you.  Reza

0 项奖励
1 解答
Kirill_V_Intel
2,570 次查看

Hello Reza!

To answer directly your question: AFAIK, we don't have such a routine in oneMKL (but one can write some relatively simple code to do that).

I'd like to ask a question though and I think you should have a good answer before proceeding with PARDISO:
If you already have your matrix in the banded format, why don't you use a linear solver which is specialized for banded matrices?
E.g. you can find one here in LAPACK:
https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/function-finding-advisor.html
if you choose general + band storage matrix type.

The power of PARDISO is that it is a direct sparse linear solver which works for sparse matrices with general sparsity patterns. While it can still perform quite well on matrices with simple regular patterns (like banded), there are specialized solvers for banded matrices which should work better (because they are specialized for this kind of matrices). 

Best,
Kirill

 

 

在原帖中查看解决方案

0 项奖励
4 回复数
Kirill_V_Intel
2,571 次查看

Hello Reza!

To answer directly your question: AFAIK, we don't have such a routine in oneMKL (but one can write some relatively simple code to do that).

I'd like to ask a question though and I think you should have a good answer before proceeding with PARDISO:
If you already have your matrix in the banded format, why don't you use a linear solver which is specialized for banded matrices?
E.g. you can find one here in LAPACK:
https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl/function-finding-advisor.html
if you choose general + band storage matrix type.

The power of PARDISO is that it is a direct sparse linear solver which works for sparse matrices with general sparsity patterns. While it can still perform quite well on matrices with simple regular patterns (like banded), there are specialized solvers for banded matrices which should work better (because they are specialized for this kind of matrices). 

Best,
Kirill

 

 

0 项奖励
Reza2021
初学者
2,564 次查看

Hi Kirill,

Thank you for getting back to me and for your advice. 

That’s right. I am using LAPACK for my code. I just wanted to try PARDISO if I can reduce the computational time on my program.

Best Regards,

Reza

0 项奖励
VidyalathaB_Intel
主持人
2,538 次查看

Hi Reza,

As your query has been answered.

If you don't have any other issues let us know if we can close the thread.

Regards,

Vidya


0 项奖励
VidyalathaB_Intel
主持人
2,517 次查看

Hi Reza,

Thanks for the confirmation!

As this issue has been resolved, we will no longer respond to this thread. 

If you require any additional assistance from Intel, please start a new thread. 

Any further interaction in this thread will be considered community only. 

Have a Good day.

Regards,

Vidya


0 项奖励
回复