Welcome, Guest
Username: Password: Remember me

TOPIC: Compiling makepar90 / gfortran / Win7x64

Compiling makepar90 / gfortran / Win7x64 12 years 9 months ago #3537

  • GranDam
  • GranDam's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Hi all,

I'm trying to install Telemac system on a Win7 X64 workstation (Dell T7400) with gfortran compiler. Scalar version is OK, installed with perl, but i'd like to install parallel mode with the same fortran compiler. I know that parallelism has not been officially tested with gfortran, and i'd like to know if it's possible to do this, and which other implementation i need to install (i ever installed MPICH2 and METIS (v4.0.3).
I need help to update the telemac configuration file and makefile to (eventually) complete the installation.

Thanks for all,

Damien C.
The administrator has disabled public write access.

Re: Compiling makepar90 / gfortran / Win7x64 12 years 9 months ago #3587

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

Unfortunately - as far as I am aware - nobody has used TELEMAC in parallel on Windows with gfortran nor g95.

The difficulty is to get a proper install of the MPI library on Windows.
Both OpenMPI and MPICH2 provide a setup file which is only working with the Intel Visual Fortran Compiler.

And OpenMPI developers confirmed me recently that F90 bindings are still not supported on Windows (F77 bindings are supported in the last version)

I will try with Gfortran & MPICH2 when I have more time.

Regards,

Fabien
The administrator has disabled public write access.

Re: Compiling makepar90 / gfortran / Win7x64 12 years 1 month ago #5915

  • ails
  • ails's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 140
  • Thank you received: 17
An update to this post, 8 months later...

I recently noticed that the MPICH2 windows installer also provides resources for Gfortran (the ".a" archives). I gave it a try ... and it worked !(not without a bit of struggle)

So, for the Windows gfortran users, this is a way to benefit of their {PC;openTELEMAC}capabilities (though I'm not totally sure about the performance). And for developer, a new compiler to maintain :S.

There's still some work before releasing this solution :
- providing a libmetis compatible with gfortran (the one given on the website has been compiled with MSVC which is unfortunately imcompatible)
- providing the corresponding systel.ini / systel.cfg
- solving the latest bugs

Best regards,

Fabien Decung

PS : www.mcs.anl.gov/research/projects/mpich2...ndex.php?s=downloads. Thanks to the developers/maintainers :cheer:
The administrator has disabled public write access.

Re: Compiling makepar90 / gfortran / Win7x64 11 years 7 months ago #8294

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Dear Fabien,

I am also trying to compile a parallel version of telemac using python and gfortran. Is it possible to have your help regarding the MPI side? Compilation is carried out correctly but I have so far failed to run a test case. Partel runs successfully so it is not a METIS issue.

This is the configuration file I use:

File Attachment:

File Name: systel_gfort.txt
File Size: 2 KB


Any help would be appreciated.
Costas
The administrator has disabled public write access.

Re: Compiling makepar90 / gfortran / Win7x64 11 years 7 months ago #8308

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

You need to use mpi for the commans cmd_exe in your configuration file.
Instead of gfortran use mpif90.

That should be the source of your error.

Hope it helps.
Yoann
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Re: Compiling makepar90 / gfortran / Win7x64 11 years 7 months ago #8309

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

You need to use mpi for the command cmd_exe in your configuration file.
Instead of gfortran use mpif90.

That should be the source of your error.

Hope it helps.
Yoann
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Re: Compiling makepar90 / gfortran / Win7x64 11 years 7 months ago #8316

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello Yoann, thank you for your reply.

I am not familiar with mpif90. If I have read correctly, I have to compile it from the mpich2 sources?

Costas
The administrator has disabled public write access.

Re: Compiling makepar90 / gfortran / Win7x64 11 years 7 months ago #8324

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Not exactly when you installed mpich2.
It should have added some command to your bin,
like mpirun.exe, there should be one called mpif90.exe.
which should be used to compile parallel codes.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.

Re: Compiling makepar90 / gfortran / Win7x64 11 years 7 months ago #8326

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Dear Yoann, thank you for your reply.

I have looked everywhere and there is no mpif90.exe file in the mpich2 folder (or anywhere else in my system). From what I have read, this file is included in linux packages of OpenMPI (correct me if I am wrong).

In the mpich2 documentation I have found only the following information regarding compiling programs with mpi:
For gcc/g77
1) create a makefile
2) add –I…mpich2\include
3) add –L…mpich2\lib
4) add –lmpi (for g77: -lfmpich2g)
5) add the rules for your source files
6) Compile
7) Place your application and all the dlls it depends on in a shared location or copy them to all the nodes.
8) Run the application using mpiexec
The only step that it is not included in the configuration is 4, but I do not understand its usage.

Does it make any sense to you?
Costas
The administrator has disabled public write access.

Re: Compiling makepar90 / gfortran / Win7x64 11 years 7 months ago #8328

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

For step 4 it is when you are using dynamic library.

Could you try to change incs_parallel and lib_parallel into
incs_all and lib_all.

Recompile and try again.

Could you also show me what you get when you try to run a test cas in parallel.
With the command you typed as well.

Thanks.
Yoann
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
Moderators: borisb

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