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

Access to Metis

h88433
Beginner
1,154 Views
Hello, I see that the sparse solver Pardiso makes use of the Metis reordering library. I assume both sequential and parallel ?I have not seen that an interface exists within Intel MKL however to access the Metis libraries. Additionally, I have a number of libraries that I would like to replace with MKL if its possible (less overhead), then Metis coud be one of these. On my 64 bit platform however, my default integer is 64 bits, and thus the call to Metis would require a 64 bit integer interface as well. If I compile my application using MKL with (ILP64), are the integer sizes used in Metis also 64 bit ?
Thanks, john M.
0 Kudos
9 Replies
Gennady_F_Intel
Moderator
1,154 Views
Hello John,
1)Yes, Pardiso use Metis internally insequential and parallel modes ( see iparm(2)==2 and 3correspondingly).
2) in the case if you will compile your application with ILP64 mode, nevertheless,Metis will supports only 32-bits integers.
We have not encountered such problems that would require such large input dimensions.
Are you working with such tasks?
Please remember the current version of Pardiso cannot solves the matrices which sizes don't fit with the RAM of the System.
--Gennady
0 Kudos
h88433
Beginner
1,154 Views
Hi Gennady, Thanks for your reply. The reason I use the 64 bit integers is simply to be consistent with my libraries built on Linux and Windows. The default integer on 64 bit Linux is 64 bits., the default integer on Windows 64 bit platform is 32 bits. My rule is that on 32 platforms, the default integer is LONG = 32 bits, on 64 bit platforms it is LONG = 64 bits. If a solver library cant be used because of this rule, I dont use it, or I find a work around, like wrapper functions so long as performance is not seriously affected.
PS:I have built metis sequential and parallel libraries with little effort to use the 64 bit integer by defining,
typedef LONG idxtype; in metis.h (sequential version only), and parmetis.h (parallel + sequential version), where LONGis defined as a 32 or 64 bit integer
thanks, john
0 Kudos
Gennady_F_Intel
Moderator
1,154 Views
John,
In case of ILP64 mode, internally, we are doing conversion from 64 to 32 bit integer and it hidden for the external user.As an additionally we know nothing about some problems (runtime and/or performance) caused by this conversion we are using.
--Gennady
0 Kudos
jaewonj
Novice
1,154 Views
Gennady,

This is a bit surprising. How about minimum degree? It supports 64-bit integer, right?

Also, do you have any plan to modify METIS 4.0 source to support 64-bit integer? Or any plan to use METIS 5.0 alpha release?

Jaewon
0 Kudos
Konstantin_A_Intel
1,154 Views
MMD (minimum degree) already supports 64-bit integer, and we're definitely going tomake it avaiable for METIS as well.In practice, we didn't faced matrices which initially required more than 32-bit integers for their representation, but, of course, they exist and we willfix this case for METIS.

Konstantin
0 Kudos
Konstantin_A_Intel
1,154 Views
Hello John,

I would clarify that you may simply use ILP64 MKLfor your purposes. This internal conversion 64->32->64 will not affect your programs anyhow.

The only restriction you will have with METIS (even w/ ILP64 interface) is when your matrix dimension is more than about 500.000.000 - it's a huge size. To enable solvingsuch matrices we will make METIS 64-bit in the future, of course.

Regards,
Konstantin
0 Kudos
Gennady_F_Intel
Moderator
1,154 Views

Hello Everybody,

The problem you reported has been fixed into the latest MKL 10.2 Update 6 version released yesteday.

You can Download this version from Intel Registration Center: https://registrationcenter.intel.com/regcenter/register.aspx

See announcement about thathere.

--Gennady

0 Kudos
DOS_SANTOS__LUIZ_RAF
1,154 Views

Hellow Konstantin,
I wish I could use METIS from Intel Compiler. I'm compiling some application that makes use of METIS, but unfortunalty I could not find the way to proprely link METIS with this applications. Witch is the library to proper link METIS?
I'm using Intel Composer XE with the last update in Linux.
Best Regards
Rafael
0 Kudos
Konstantin_A_Intel
1,154 Views
Hi Rafael,

Whetheryou want to use METIS from MKL PARDISO or original METISpackage?

Youmay need to know that MKL doesn't provide full METIS functionality and this package is only used inside MKL PARDISO to reorder the initial matrix.

If you would like to use original METIS implementation, youcould download open source METIS package from their official site. There're instructions about how to use it:

http://glaros.dtc.umn.edu/gkhome/metis/metis/overview

Regards,
Konstantin



0 Kudos
Reply