Welcome, Guest
Username: Password: Remember me

TOPIC: [MPI][Ifort]Linkage problems in Perl scripts V6P1.

[MPI][Ifort]Linkage problems in Perl scripts V6P1. 13 years 3 months ago #2116

  • H.Sirozu
  • H.Sirozu's Avatar
Hi all

I'm using new version of TELEMAC2d Win32 Perl scripts.
I just could run out a test case with FORTRAN file(cavity) in single process version "wintels".
But now, In case using "wintelmpi", the linker attempts to link libc.lib and other static libraries...and telemac2d stops.
This linkage problems didn't occur in Previous version of telemac with mpi.(running the same case, of course.)

Would you kindly tell me the way to solve this problem?

regards,
SHIROZU

p.s.
Log is below.
I attached systel.ini and cas file .

=========================================================
Telemac System 5.6 to 6.1 - Perl scripts version 6.1
=========================================================
starting...

HOSTTYPE : wintelmpi
PROJECT : C:\wintelmpi
BASE DIRECTORY : C:\TELEMAC\cavity_para
LAUNCH DIRECTORY : C:\TELEMAC\cavity_para
WORK DIRECTORY : C:\TELEMAC\cavity_para\cas.txt3932_tmp
PARAMETER FILE : cas.txt


*** Using default configuration file :
C:\wintelmpi\config\systel.ini ***



*** Using CUSTOM MPI configuration file :
C:\TELEMAC\cavity_para\mpi_telemac.conf ***


*** TELEMAC2D ON STATION ***


*** Interactive mode ***


*** RELEASE v6p1 ***

________________________________________________________
Steering file : cas.txt
________________________________________________________

________________________________________________________
Starting execution: telemac2d.bat
________________________________________________________
- FORTRAN FILE : princi.f
______________________________________________________________________________
*** COMPILATION ***

ifort.exe /c /O2 /iface:cref /iface:nomixed_str_len_arg /nologo /names:upperc
ase /convert:big_endian /extend_source:132 /include:C:\wintelmpi\telemac2d\tel
2d_v6p1\wintelmpi /include:C:\wintelmpi\sisyphe\sisyphe_v6p1\wintelmpi /include:
C:\wintelmpi\tomawac\toma_v6p1\wintelmpi /include:C:\wintelmpi\bief\bief_v6p1\wi
ntelmpi /include:C:\wintelmpi\special\special_v6p1\wintelmpi /include:C:\wintelm
pi\damocles\damo_v6p1\wintelmpi /include:C:\wintelmpi\paravoid\paravoid_v6p1\win
telmpi /include:C:\wintelmpi\mpi\wintelmpi\include t2dfort.f
______________________________________________________________________________
*** LIBRARIES ***

- C:\wintelmpi\telemac2d\tel2d_v6p1\wintelmpi\telemac2dv6p1.lib
- C:\wintelmpi\sisyphe\sisyphe_v6p1\wintelmpi\sisyphev6p1.lib
- C:\wintelmpi\tomawac\toma_v6p1\wintelmpi\tomawacv6p1.lib
- C:\wintelmpi\bief\bief_v6p1\wintelmpi\biefv6p1.lib
- C:\wintelmpi\special\special_v6p1\wintelmpi\specialv6p1.lib
- C:\wintelmpi\damocles\damo_v6p1\wintelmpi\damov6p1.lib
- C:\wintelmpi\parallel\parallel_v6p1\wintelmpi\parallelv6p1.lib
- wsock32.lib
- kernel32.lib
- libc.lib
- gdi32.lib
- winspool.lib
- comdlg32.lib
- advapi32.lib
- shell32.lib
- ole32.lib
- oleaut32.lib
- netapi32.lib
- uuid.lib
- oldnames.lib
- dfconsol.lib
- C:\Program
- Files\MPICH2\lib\fmpich2.lib
- C:\wintelmpi\mumpsvoid\mumpsvoid_v6p1\wintelmpi\mumpsvoidv6p1.lib

*** LINKING ***

Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

LINK : fatal error LNK1181: 入力ファイル 'libc.lib' を開けません。
ERROR : DURING LINKING

________________________________________________________
Execution finished: telemac2d.bat
________________________________________________________
Compilation/linking/file errors detected.
Please see messages in: stdout above, stderr,
and/or file C:\TELEMAC\cavity_para\cas.txt3932_error.log
No execution errors detected.

Working directory: C:\TELEMAC\cavity_para\cas.txt3932_tmp
can be manually deleted with: C:\TELEMAC\cavity_para\delete_cas.txt3932.bat

Returning exit status 1

=========================================================
Telemac System 5.6 to 6.1 - Perl scripts version 6.1
=========================================================
...stopping.
Attachments:
The administrator has disabled public write access.

Re: [MPI][Ifort]Linkage problems in Perl scripts V6P1. 13 years 3 months ago #2117

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

you should have a problem with runcode.pl (probably an old version of this file) because all le libraries between wsock32.lib and dfconsol.lib are no more used (commented since v5.9). You could modify runcode.pl to change this error

Moreover, you should have a problem with the mpi lib (the space was considerated as a separator. For this particular point take care to have 3" instead only " at the beginning of MPILIB in your systel.ini file

hope this helps
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: H.Sirozu

Re: [MPI][Ifort]Linkage problems in Perl scripts V6P1. 13 years 2 months ago #2255

  • gaventang
  • gaventang's Avatar
Hello, I am new to telemac and am having the same problem as Sirozu.

Should I be deleting reference to wsock32.lib and dfconsol.lib in runcode.pl? Also, I am a lost by what you said about the MPI LIB; could you elaborate a bit more on what steps I need to follow to fix the issue?

Regards,
Gaven
The administrator has disabled public write access.

Re: [MPI][Ifort]Linkage problems in Perl scripts V6P1. 13 years 2 months ago #2280

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
In runcode.pl you could comment the line which define the libraries (wsocks32.lid ...).

In the systel.ini file you had a line which define the value of MPILIB. Depending on the location of this library, if there is a space in the path name, you should add some " at the beginning and at the end and moreover you should also add 2 " at the beginning. In fact you should have something like:
MPILIB = """C:\Program Files\MPICH2\..."

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

Re: [MPI][Ifort]Linkage problems in Perl scripts V6P1. 13 years 2 months ago #2284

  • gaventang
  • gaventang's Avatar
Hello,

I have made the suggested changes to runcode.pl and systel.ini. I have a new set of linking errors now (see attachment: output.txt). I have also attached my "runcode.pl" and "systel.ini" so you can see if there's any problems with them.

Thanks,
Gaven
Attachments:
The administrator has disabled public write access.

Re: [MPI][Ifort]Linkage problems in Perl scripts V6P1. 13 years 2 months ago #2293

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi Gaven
Try to make a full compialtion of telemac first in order to avoid problem of compatibility between libraries and you object file when you link your program

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

Re: [MPI][Ifort]Linkage problems in Perl scripts V6P1. 13 years 2 months ago #2315

  • gaventang
  • gaventang's Avatar
Hello,

I have tried recompiling telemac using "makeall90" and then "makepar90", but I am still getting the same problems when I try to run a simulation in parallel mode. Scalar mode appears to work fine, I have not had any problems running a simulation in scalar mode yet.

Is there anything else you could think of that is causing my problem?

Cheers,
Gaven
The administrator has disabled public write access.

Re: [MPI][Ifort]Linkage problems in Perl scripts V6P1. 13 years 2 months ago #2324

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

Well, I can only propose to check :

- please check that some " *_MP.exe " files exist in your TELEMAC tree. If makepar90 command was successful, you must find them in {artemis, tomawac, sisyphe & Telemac2d/3d}.

- If so, try to run a test case without fortran file. In this case, the system will directly run in parallel the local executable (e.g. the " *_MP.exe "). I think that the 018_culm test case (in Telemac2D) must then been launched.

I hope it will somehow help.

Fabien

PS : Both runcode and systel seem to be ok.
The administrator has disabled public write access.
Moderators: borisb

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