Welcome, Guest
Username: Password: Remember me

TOPIC: Compilation Problem with Metis Library

Compilation Problem with Metis Library 11 years 3 months ago #10031

  • qilong
  • qilong's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 340
  • Thank you received: 33
Hello,

I was excited to see the new release of Telemac v6p3 on the SVN site. Today I'm trying to update from v6p2 to v6p3. I have compiled the scalar version on on my windows PC. But I have a problem of compiling parallel version with the metis.lib. I've tried many different versions of metis.lib, the one I used in v6p2 and two other versions (metis 5.1.0) I compiled under windows and linux. None of them works properly. I always get the following error:
Compiling the program PARTEL_PRELIM and dependents
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      +> There is no need to compile any object
      +> There is no need to package any library
xilink: executing 'link'
partitioner.obj : error LNK2019: unresolved external symbol METIS_PARTMESHDUAL referenced in function PARTITIONER
D:\TelemacV6\Sources\builds\wintelmpi\bin\partel_prelim.exe : fatal error LNK1120: 1 unresolved externals
... The following command failed for the reason above
xilink.exe /nologo /subsystem:console /stack:536870912 /nodefaultlib:libc.lib /machine:X64 /out:D:\TelemacV6\Sources\builds\wintelmpi\bin\partel_prelim.exe partitioner.obj partel_prelim.obj  D:\TelemacV6\Sources\builds\wintelmpi\lib\utils\special\partel_prelim.lib C:\Intel\MPI\4.1.1.036\em64t\lib\fmpich2.lib

I have no idea about this. Attached is my configuration file and metis.lib I got. Has anyone compiled the parallel version successfully with metis.lib?

Thanks in advance!

Qilong
Attachments:
The administrator has disabled public write access.

Compilation Problem with Metis Library 11 years 3 months ago #10039

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

I have lloked at your config file -- with the new structure we have move PARTEL into its own subdirectory. PARTEL links with METIS for the domain decomposition.

So the solution, you need to replace libs_parallel : ...metis by libs_partel : ...metis

Do go back to the METIS library you had with v6p2, Unless your are comfortable with the METIS compilation on Windows (if so -- can you share with us the new version compile with Intel, 32b and 64bit ?).

The rest should remain unchanged. We will update the configuration on the SVN.

Hope this helps.
Sébastien.
The administrator has disabled public write access.

Compilation Problem with Metis Library 11 years 3 months ago #10048

  • qilong
  • qilong's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 340
  • Thank you received: 33
Thank you Sébastien!

You're right. It the keyword in the configuration file that caused the problem. Now it has been solved with your help.

I still use the metis library from v6p2 because other two versions I compiled didn't work during the compilationand clearly it's a difficult job to compile metis under windows OS. So I'm very glad that the previous one still works...

P.S. I have updated my profile.The website gets better and better now.

Nice weekend,
Qilong
The administrator has disabled public write access.

Compilation Problem with Metis Library 11 years 3 months ago #10040

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
PS: Please update your rofile under "COMMUNITY"
The administrator has disabled public write access.
Moderators: borisb

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