Welcome, Guest
Username: Password: Remember me

TOPIC: Telemac/ubuntu/parallel installation

Telemac/ubuntu/parallel installation 13 years 6 months ago #1501

  • Telelinux
  • Telelinux's Avatar
Dear all,

I recently succed to install Telemac in sequential version under linux (ubuntu).
And now I am currently trying to install it in parall...
I have a lot of problems when I compile using makepar90.
An example of error:
"
Thread model: posix
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)
make: *** [tomawacv6p0_MP.exe] Erreur 1
"
Here are some questions/remarks, if you could help it will be great!

*) For the parall version, I just have to modify the
following lines:
FC_MPI="/usr/bin/mpif90 "
LK_MPI="/usr/bin/mpif90 -o <EXE> <OBJS> <LIBS> "
LIBS_MPI="-L/usr/lib -lmpich -lpthread "
RUN_MPI="/usr/bin/mpirun -machinefile mpirun.txt -np <N> <EXE>"

Actually, I don't really understand what's mean exactly all these symbols, I just used the tutorial and some previous questions asked in this forum.

*) If you install mpi via sudo or synaptic anyway, you don't need to add this two lines:

> export PATH=/home/user/TELEMAC/mpi/intel_10/bin:$PATH
>export
LD_LIBRARY_PATH=/home/user/TELEMAC/mpi/intel_10/lib:$LD_LIBRARY_PATH

??

*)You can have MUMPS in sequential but install telemac in parall?

Sorry, my questions are maybe stupid but I want to be sure.

Thanks a lot for any help.

Best regards.
The administrator has disabled public write access.

Re:Telemac/ubuntu/parallel installation 13 years 6 months ago #1509

  • Telelinux
  • Telelinux's Avatar
finally I solved this compilation problem but I have another problem right now.
When I made makepar90, I have the following result:

>>makepar90



Ready for making System TELEMAC90
Automatic mode.

Repertoire 'parallel/parallel_v6p0/sources_gFortran' inexistant


========== parallel/parallel_v6p0/sources :

===== Making : /home/adminbrli/TELEMAC/parallel/parallel_v6p0/sources
make: *** Pas de règle pour fabriquer la cible « parallel ». Arrêt.
===== /home/adminbrli/TELEMAC/parallel/parallel_v6p0/sources : maktel parallel


Repertoire 'sisyphe/sisyphe_v6p0/sources_gFortran' inexistant


========== sisyphe/sisyphe_v6p0/sources :

===== Making : /home/adminbrli/TELEMAC/sisyphe/sisyphe_v6p0/sources
Installe sisyphev6p0.a dans /home/adminbrli/TELEMAC/sisyphe/sisyphe_v6p0/gFortran.
Installe sisyphev6p0_MP.exe dans /home/adminbrli/TELEMAC/sisyphe/sisyphe_v6p0/gFortran.
===== /home/adminbrli/TELEMAC/sisyphe/sisyphe_v6p0/sources : maktel parallel


Repertoire 'telemac2d/tel2d_v6p0/sources_gFortran' inexistant


========== telemac2d/tel2d_v6p0/sources :

===== Making : /home/adminbrli/TELEMAC/telemac2d/tel2d_v6p0/sources
Installe telemac2dv6p0.a dans /home/adminbrli/TELEMAC/telemac2d/tel2d_v6p0/gFortran.
Installe telemac2dv6p0_MP.exe dans /home/adminbrli/TELEMAC/telemac2d/tel2d_v6p0/gFortran.
===== /home/adminbrli/TELEMAC/telemac2d/tel2d_v6p0/sources : maktel parallel


Repertoire 'telemac3d/tel3d_v6p0/sources_gFortran' inexistant
Repertoire 'telemac3d/tel3d_v6p0/sources' inexistant ! (Ignore)
Repertoire 'artemis/arte_v6p0/sources_gFortran' inexistant


========== artemis/arte_v6p0/sources :

===== Making : /home/adminbrli/TELEMAC/artemis/arte_v6p0/sources
Installe artemisv6p0.a dans /home/adminbrli/TELEMAC/artemis/arte_v6p0/gFortran.
Installe artemisv6p0_MP.exe dans /home/adminbrli/TELEMAC/artemis/arte_v6p0/gFortran.
===== /home/adminbrli/TELEMAC/artemis/arte_v6p0/sources : maktel parallel


Repertoire 'estel2d/estel2d_v6p0/sources_gFortran' inexistant
Repertoire 'estel2d/estel2d_v6p0/sources' inexistant ! (Ignore)
Repertoire 'estel3d/estel3d_v6p0/sources_gFortran' inexistant
Repertoire 'estel3d/estel3d_v6p0/sources' inexistant ! (Ignore)
Repertoire 'tomawac/toma_v6p0/sources_gFortran' inexistant


========== tomawac/toma_v6p0/sources :

===== Making : /home/adminbrli/TELEMAC/tomawac/toma_v6p0/sources
echo "/home/adminbrli/TELEMAC/tomawac/toma_v6p0/sources tomawacv6p0.a adminbrli `date '+%d/%m/%y %H:%M'` parallel (tomawacv6p0.a tomawacv6p0_MP.exe)" >>journal;echo "Installe tomawacv6p0.a dans /home/adminbrli/TELEMAC/tomawac/toma_v6p0/gFortran."
Installe tomawacv6p0.a dans /home/adminbrli/TELEMAC/tomawac/toma_v6p0/gFortran.
echo "/home/adminbrli/TELEMAC/tomawac/toma_v6p0/sources tomawacv6p0.a adminbrli `date '+%d/%m/%y %H:%M'` parallel (tomawacv6p0.a tomawacv6p0_MP.exe)" >>journal;echo "Installe tomawacv6p0_MP.exe dans /home/adminbrli/TELEMAC/tomawac/toma_v6p0/gFortran."
Installe tomawacv6p0_MP.exe dans /home/adminbrli/TELEMAC/tomawac/toma_v6p0/gFortran.
===== /home/adminbrli/TELEMAC/tomawac/toma_v6p0/sources : maktel parallel


Repertoire 'spartacus2d/spartacus2d_v6p0/sources_gFortran' inexistant
Repertoire 'spartacus2d/spartacus2d_v6p0/sources' inexistant ! (Ignore)


End of make


Do you know why I have this problem:
" make: *** Pas de règle pour fabriquer la cible « parallel ». Arrêt.
"

Thanks a lot for your help.

Regards.

ps: I already compile the paralle directory using make install command. So, the file parallelvp0.a exists in gFortran directory.
The administrator has disabled public write access.

Re:Telemac/ubuntu/parallel installation 13 years 6 months ago #1511

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

1/ Indeed, as long as you compiled parallel with maktel install, you can skip this error. It's a mistake in the makeall90.pl script.

'maktel parallel' should only be used when compiling "codes", I mean telemac2d, sisyphe.... It's only mandatory for running Telemac without any user fortran file.

2/ As I'm not sure about your question on MUMPS, I will only say that :
- MUMPS solver is not mandatory for using Telemac. Mumpsvoid is compiled when MUMPS is not available on the system.
- If you want to use MUMPS, please configure the systel.ini file and compile Mumpsmpi instead.
- MUMPS solver (#9) can only be used in parallel mode (cf. solve.f in BIEF). Otherwise, please use the direct solver (#8) instead.

3/ Indeed, if you install MPICH2 through 'sudo, yum...', you don't need to change anything to PATH and LD_LIBRARY_PATH.

How did you solve your first problem?

Regards,

Fabien Decung
The administrator has disabled public write access.

Re:Telemac/ubuntu/parallel installation 13 years 6 months ago #1512

  • Telelinux
  • Telelinux's Avatar
Dear Fabien,

thank you a lot for your prompt answers.
Actually, I solved my first compilation problem by changing the keyword LIBS_MPI.
I followed your previous discussion and I wrote:

LIBS_MPI="-L/usr/lib -lmpichf90 -Wl,-rpath -Wl,/usr/lib -lmpichf90 -lmpich -lopa -lpthread -lrt"

If I well understood your response about the following error
"
make: *** Pas de règle pour fabriquer la cible « parallel ». Arrêt."
it's not a problem, I can skip it?

Well, next when I executed the programm: telemac2d cas.txt,
I have the following error:


adminbrli@ubuntu:~/TELEMAC/test.fr/clotilde$ telemac2d cas.txt

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

HOSTTYPE : gFortran
PROJECT : /home/adminbrli/TELEMAC
BASE DIRECTORY : /home/adminbrli/TELEMAC/test.fr/clotilde
LAUNCH DIRECTORY : /home/adminbrli/TELEMAC/test.fr/clotilde
WORK DIRECTORY : /home/adminbrli/TELEMAC/test.fr/clotilde/cas.txt23969_tmp
PARAMETER FILE : cas.txt


*** Fichier de configuration SPECIFIQUE :
/home/adminbrli/TELEMAC/config/systel.ini ***



*** Fichier de configuration MPI SPECIFIQUE :
/home/adminbrli/TELEMAC/test.fr/clotilde/mpi_telemac.conf ***


*** TELEMAC2D sur STATION ***


*** Lancement en interactif ***


*** VERSION v6p0 ***

________________________________________________________
Fichier des parametres : cas.txt
________________________________________________________

________________________________________________________
Starting execution: telemac2d.bat
________________________________________________________
- FICHIER FORTRAN : princi.f
______________________________________________________________________________
*** EXECUTABLE LOCAL ***

princi_gFortran_MP_v6p0.exe

______________________________________________________________________________
*** ACQUISITION DES FICHIERS ***

- FICHIER DES PARAMETRES : cas.txt
- DICTIONNAIRE : telemac2dv6p0.dico
- FICHIER DE GEOMETRIE : geo
(partitionne pour 2 processeurs)
- FICHIER DES CONDITIONS AUX LIMITES : cli.txt
(partitionne pour 2 processeurs)
- FICHIER DU CALCUL PRECEDENT : prev
(partitionne pour 2 processeurs)
- FICHIER DE DONNEES FORMATE 1 : HQ

COPY HQ /home/adminbrli/TELEMAC/test.fr/clotilde/cas.txt23969_tmp/T2DFO100001-00000
COPY HQ /home/adminbrli/TELEMAC/test.fr/clotilde/cas.txt23969_tmp/T2DFO100001-00001
- FICHIER DE REFERENCE : ref
(partitionne pour 2 processeurs)
______________________________________________________________________________
*** MACHINE MPI ***
Machine MPI ok (avec 2 processeurs).
______________________________________________________________________________
*** EXECUTION ***

lancement MPI : /usr/bin/mpirun -machinefile mpirun.txt -np 2 out23969_gFortran.exe
ssh: Could not resolve hostname chp70k2: Name or service not known
A daemon (pid 23983) died unexpectedly with status 255 while attempting
to launch so we are aborting.

There may be more information reported by the environment (see above).

This may be because the daemon was unable to find all the needed shared
libraries on the remote node. You may set your LD_LIBRARY_PATH to have the
location of the shared libraries on the remote nodes and this will
automatically be forwarded to the remote nodes.

mpirun noticed that the job aborted, but has no info as to the process
that caused that situation.
mpirun: clean termination accomplished

## Erreur : Fin anormale : cd /home/adminbrli/TELEMAC/test.fr/clotilde/cas.txt23969_tmp; /usr/bin/mpirun -machinefile mpirun.txt -np 2 out23969_gFortran.exe :65280
## Error : System command failed for /home/adminbrli/TELEMAC/test.fr/clotilde/cas.txt23969_tmp/telemac2d.bat :65280
________________________________________________________
Execution terminee: telemac2d.bat
________________________________________________________
No compilation/linking/file errors detected.
Execution errors detected.
Please see messages in stdout above or study stderr output.

Working directory: /home/adminbrli/TELEMAC/test.fr/clotilde/cas.txt23969_tmp
can be manually deleted with: /home/adminbrli/TELEMAC/test.fr/clotilde/delete_cas.txt23969

Returning exit status 1

=========================================================
Telemac System 5.6 to 5.9 - Perl scripts version 5.9
=========================================================
...stopping.


So It's written that there is not compilation problem but excution errors.
I think the error stems from the keyword

RUN_MPI="/usr/bin/mpirun -machinefile mpirun.txt -np <N> <EXE>"

but I have no idea why and where is my mistake.

If you are any idea, I will be you very grateful.

Best regards.
The administrator has disabled public write access.

Re:Telemac/ubuntu/parallel installation 13 years 6 months ago #1513

  • Telelinux
  • Telelinux's Avatar
Sorry, actually I solved my first problem as following:
I write

LK_MPI="/usr/bin/mpif90 -o <EXE> <OBJS> -Xlinker --start-group <LIBS> --end-group"

instead of

LK_MPI="/usr/bin/mpif90 -o <EXE> <OBJS> <LIBS> "

the other was for another error.
The administrator has disabled public write access.

Re:Telemac/ubuntu/parallel installation 13 years 6 months ago #1516

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
Ok, thanks for your answer. And, yeah, you can skip this error.

You get this error message :
" ssh: Could not resolve hostname chp70k2: Name or service not known "

Indeed, you have to declare some available hostnames in the 'mpi_telemac.conf' file. In this case,'chp70k2' refers to one of our machine. So, please replace it by your hostname (ubuntu?)

Best regards,

Fabien Decung
The administrator has disabled public write access.

Re:Telemac/ubuntu/parallel installation 13 years 6 months ago #1529

  • Telelinux
  • Telelinux's Avatar
Thanks for your answer .
However, I have one question:
where I can find the 'mpi_telemac.conf' file, please?
I didn't find it.


Yours sincerely.
The administrator has disabled public write access.

Re:Telemac/ubuntu/parallel installation 13 years 6 months ago #1530

  • Telelinux
  • Telelinux's Avatar
Sorry, for my previous stupid question.
It's morning monday and i'm not very well awake.
I find it and change the hostname.
Thanks a lot for your help!
The administrator has disabled public write access.

Re:Telemac/ubuntu/parallel installation 13 years 6 months ago #1531

  • Telelinux
  • Telelinux's Avatar
Dear Fabien,

I have another question.
Is is possible to run telemac in parallel on two computers?
Because, I don't find keywords in systel.ini which could be correspond to this task.
Moreover, I find nothing in the help for installing.

Thank you for your help.

Sincerely.
The administrator has disabled public write access.

Re:Telemac/ubuntu/parallel installation 13 years 6 months ago #1533

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

Available hostnames must be passed to the mpi_telemac.conf file.

Example:

# Number of available processors :
24
#
# hostname available_processors_on_the_host
#
PC1 8
PC2 16

However, you have to work on shared directories.

Regards,

Fabien

Similar post : www.telemacsystem.com/index.php?option=c...&catid=2&lang=fr#818
The administrator has disabled public write access.
Moderators: borisb

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