Welcome, Guest
Username: Password: Remember me

TOPIC: Metis 5.0.1 is no more compatible with partel

Metis 5.0.1 is no more compatible with partel 13 years 1 month ago #2641

  • jaj
  • jaj's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Thank you received: 7
Dear all,

I have just discovered at the Metis (where this site points to) web site that the old version of Metis, which was compatible with the mesh partitioning program partel (so far, as I remember, it was version 3.x.x or 4.0), is no more available for download. The new version of the routine METIS_PartMeshDual allows weighting the partition sizes according to some criteria.

Calls in partel are:

CALL METIS_PARTMESHDUAL
& (NELEM2, NPOIN2, IKLES, ETYPE, NUMFLAG,
& NPARTS, EDGECUT, EPART, NPART)

CALL METIS_PARTMESHDUAL(NBTET,NPOINT,IKLESTET,2,1,NPARTS,EDGECUT,
& EPART,NPART)

Old Metis version (I suppose 4.0), in meshpart.c:

void METIS_PartMeshDual(int *ne, int *nn, idxtype *elmnts,
int *etype, int *numflag,
int *nparts, int *edgecut, idxtype *epart,
idxtype *npart)

New Metis version (5.0.1):

int METIS_PartMeshDual(idx_t *ne, idx_t *nn, idx_t *eptr, idx_t *eind,
idx_t *vwgt, idx_t *vsize, idx_t *ncommon, idx_t *nparts,
real_t *tpwgts, idx_t *options, idx_t *objval, idx_t *epart,
idx_t *npart)


The nasty conclusion is that one has to either:

(1) Deliver the old version of Metis (4.0) together with Telemac asking George Karypis for consent (or pointing where old versions are still available?)

or

(2) Modify Partel for Metis 5.0.1.

Best regards,
jaj

PS. I just wonder if there are any new users using the v6p1 parallel version... I suppose no-one... How could they manage? jaj
The administrator has disabled public write access.

Re: Metis 5.0.1 is no more compatible with partel 13 years 1 month ago #2645

  • jaj
  • jaj's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Thank you received: 7
Dear all,

the problem is even more complex. The newest gcc 4.4.4 and icc 12.1
yield errors by compilation of the older Metis versions (here 4.0) due
to presence of log2 definition in the sources, which is incompatible
with C99 Standard.

jaj@w2pc067:~/metis_prob > gcc -v
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.4
--enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/
--with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap
--with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --program-suffix=-4.4
--enable-linux-futex --without-system-libunwind --with-arch-32=i586
--with-tune=generic --build=i586-suse-linux
Thread model: posix
gcc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux)

...and really we have:

jaj@w2pc067:~/metis_prob > make
gcc -O2 -I. -c coarsen.c
In file included from ./metis.h:36,
from coarsen.c:13:
./proto.h:462: error: conflicting types for ‘__log2’
/usr/include/bits/mathcalls.h:145: note: previous declaration of
‘__log2’ was here
make: *** [coarsen.o] Fehler 1

The older Metis versions can be compiled without problems if you degrade
to older compiler versions, like gcc 4.3.2 or icc 11.x.

Best regards,
jaj
The administrator has disabled public write access.

Re: Metis 5.0.1 is no more compatible with partel 13 years 1 month ago #2647

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi Jacek

I just found the log2 problem on windows where i'm trying to compile metis4.0 to generate a 64bits library (I use PelleC for Windows)

The log2 problem could be easily bypassed with a small change in proto.h, rename.h and util.c. You just have to change log2 intoo log2m and it works

Hope this helps
Christophe
The administrator has disabled public write access.

Re: Metis 5.0.1 is no more compatible with partel 13 years 1 month ago #2648

  • jaj
  • jaj's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Thank you received: 7
Hello,

thank you for your message, yes, this simple modification in the old Metis library allows using a compiler strictly following the C99 standards.

However, the problem remains: How can a completely NEW user of the parallel Telemac get the old Metis library when it is no more available from the Metis site? Shouldn't it be now distributed with Telemac?

Of course the best solution is to adapt Partel as the Metis library changes.

Best regards,
Jacek
The administrator has disabled public write access.
The following user(s) said Thank You: avni

Re: Metis 5.0.1 is no more compatible with partel 13 years 1 month ago #2654

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
Hi,

I also mention that a Linux patch is available here : www.math-linux.com/IMG/patch/metis-4.0.patch
It can be applied with > patch -p1 < metis-4.0.patch (in the metis source directory)

Older versions of METIS can be found here : glaros.dtc.umn.edu/gkhome/fsroot/sw/metis/OLD

And indeed, we must adapt partel to the new one. V6P2?

Regards,

Fabien Decung
The administrator has disabled public write access.
The following user(s) said Thank You: cyamin

Re: Metis 5.0.1 is no more compatible with partel 7 years 9 months ago #25166

  • acsantosr
  • acsantosr's Avatar
I am installing OpenTelemac o Linux, but I have a problem when I try to download METIS (glaros.dtc.umn.edu) the website can't be reached. Somebody have the metis-5.1.0.tar.gz
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.