Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: 6.2 on Win7 64 bit with Python and gfortran

6.2 on Win7 64 bit with Python and gfortran 12 years 5 days ago #6374

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi all!

Following the problems encountered for installation of 6.2 with g95 (www.opentelemac.org/index.php?option=com...2&id=5547&Itemid=177), I tried with gfortran.
After finding a systel.cfg setting suggested by sebourban in a related topic, I managed to compile successfully (I at least had the "My work is done" message).

But I know face trouble running a case, and the problem seems linked to Python (see the attached log). I had the same error when trying to launch a validation case.

As I said previously, both Python 2.5 and 2.7 are installed on my machine (2.5 has been installed automatically when installing ArcGIS). Can it be a problem?

It is strange because I managed to launch a case with the compiled version of 6.2 using python scripts... The problem only arises when trying to launch my gfortran version.

I also would like to mention that the subdirectories of 'pytel' folder are still missing in the compiled sources downloadable from the homepage, which caused me some trouble trying to make the compiled version working.

It would be great if someone could have an idea of what is still going wrong with my gfortran installation!

Thank you for your help!
PL

File Attachment:

File Name: logerrorrungfortran.txt
File Size: 2 KB
The administrator has disabled public write access.

6.2 on Win7 64 bit with Python and gfortran 12 years 5 days ago #6375

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

Your error suggests that it is looking for 'telemac2dv6p2' instead of 'telemac2dv6p2.exe' and therefore return 'No such file or directory'.

Is it possible that your config was inspaired from a linux setup ?
Check that you have:

sfx_zip: .zip
sfx_lib: .lib
sfx_obj: .o
sfx_mod: .mod
sfx_exe: .exe

A linux version would look something like:

sfx_zip: .gztar
sfx_lib: .lib
sfx_obj: .o
sfx_mod: .mod
sfx_exe:

Hope this helps,
Sébastien.
The administrator has disabled public write access.
The following user(s) said Thank You: pilou1253

6.2 on Win7 64 bit with Python and gfortran 12 years 5 days ago #6376

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

Note that there should not be a problem with python25 installed as well as python27 for as long as you python27 is used when you run TELEMAC scripts. Try "python -V" (V upper case) in your command line to double-check.

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

6.2 on Win7 64 bit with Python and gfortran 12 years 5 days ago #6377

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hello Sébastien.

Thank you for the cmd_exe, the .exe was indeed missing in my file. I did compile again.

I then had 2 error messages saying that 2 dll were missing (libgfortran-3.dll and libquadmath-0.dll), but telemac now starts after having copied these files from C:\gfortran\mingw\lib to c:\gfortran\bin.

Thanks a lot!

I just have a last question: during the compilation process I got messages stating "rename specc lib to liborig" (see attached log). Is that normal?


logcompilgfortran.PNG



Regarding python, when i type python -V in a cmd window, i have a message saying that 'python' is not recognized as...
If i type it from the C:\Python27 folder then it works, but it doesn't inform me of which version is Telemac using, does it?

Finally, it seems that gfortran is rather fast. It took 8 sec for one of my cases, exactely the same time than with the already compiled version [wintel]. Is gfortran that powerful? The same computation performed on my home computer with g95 lasted 32 sec, which corresponds to roughly 20 sec on my work computer by comparing the CPU times with the compiled versions.

Good weekend!
PL
The administrator has disabled public write access.

6.2 on Win7 64 bit with Python and gfortran 12 years 5 days ago #6378

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

You may not have the directory c:\pythn27 in your user PATH. I would recommend you add it to your user PATH (control panel, environment variables). Do the same checks with your gfortran and you may have to add c:\gfortran\mingw\lib to your environment variable LIB (to make it work without having to copy the libs over) but I am not entirely sure of the name "LIB" ... maybe in the gfortran documentations ?

About the speed of gfortran, you might have to do a much longer run as a lot of your 8 sec might have to do wit hfile reading / writting. In general, we have observed that the latest IntelFortran is about 10% to 15% faster than the latest gfortran, which is not that much when you know that you can get much bigger speed up with parallelisation (note that we are still having difficulties with the parallelisation and gfortran because of the metis library from Argonne Laboratories).

Good luck.
Sébastien.
The administrator has disabled public write access.

6.2 on Win7 64 bit with Python and gfortran 12 years 5 days ago #6382

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi Sébastien!

I have now included python to my PATH, and compiled again successfully.

Regarding gfortran, I spent quite a long time checking gfortran websites for information on installation of the new MinGW 64 binaries, but the recommendations i found only concerns the PATH variable. No information on a library path is given, as, for example, with g95.
Furthermore the package contains several lib directories:

C:\gfortran\lib\gcc\x86_64-w64-mingw32\4.7.0
C:\gfortran\mingw\lib
C:\gfortran\x86_64-w64-mingw32\lib

The required dll are located in the 2 last folders, and files seem to be identical (same size).
I don't really know how could I define a library variable with the right name so that gfortran and telemac could track it.
Anyway, it seems to work now with the dll in the upper bin folder.

Maybe some other gfortran users on windows have something to share about that?

Regarding computation times, here is a comparison between 6.1/6.2 and configurations for a longer computation:
- 6.1 compiled version [wintel] : 32'56''
- 6.2 compiled version [wintel] : 33'14''
- 6.2 gfortran version : 33'48''
Machine: Intel i7 2,5 GHz.

Pretty good! gfortran seems to be very fast.

Thanks a lot for the help and comments,
PL
The administrator has disabled public write access.

6.2 on Win7 64 bit with Python and gfortran 12 years 4 days ago #6383

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi again,

Just a last commment: if gfortran is that fast, especially compared to g95, why do TELEMAC still recommends the use of g95 for windows when open source fortran compilers? Especially knowing that neither of them is yet compatible for parallelism.
It might be due to the fact that gfortran has been optimised for windows easy installation only recently, but it might be worth re-evaluating the thing from now on.

Good weekend!
PL
The administrator has disabled public write access.

6.2 on Win7 64 bit with Python and gfortran 12 years 4 days ago #6384

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Yes, your are right about recommending g95. As you said, the windows binaries are very recent.

Also, while we have not yet updated the installation note on this site, we are working on a wiki site, which will have the latest information -- here for fortran: prerequsite-fortran
This is still a draft and will look like the main website eventually.

However, for parallelism, we have had so far no choice but recommending intel as we are still no able to compile metis. If you (or anyone) feel like trying this compilation and could share your libs in both 32b and 64b, we would really appreciate.

As for the PATH, be carreful not to mix those for the 32b installation (usually with "mingw32") with those for the 64b install. I would recommend you use 64b to allow for bigger problems / larger memory allocation.

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

6.2 on Win7 64 bit with Python and gfortran 12 years 4 days ago #6385

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

I had a quick look at the wiki, looks good. Just a question about the manuals: I guess the wiki will kind of replace the pdf versions. Will there still be a possibility to export them as a document file as it is sometimes useful to have a paper version where to take writen notes?

Regarding parallelism, unfortunately me and my colleagues have only monoprocessor computers. Our use of telemac is rather limited compare to people working for research where parallelism is a real need. Furthermore dealing with this kind of applications is new for me...

Regarding the gfortran version, I checked carefully which version to install, and selected the one named 'mingw-w64-bin_i686-mingw_datexxxxxx'. But it indeed contains a folder named 'x86_64-w64-mingw32'. According the gfortran website, the binaries contained in this folder are NOT the ones that should be used (only for developpment purposes if i am right). The PATH should only be set to the upper bin folder where the .exe have 'x86_64-w64-mingw32-"name_of_exe".exe'-like names.
I then defined the gfortran command in systel.cfg as 'x86_64-w64-mingw32-gfortran'.
I hope this sounds logical...

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

6.2 on Win7 64 bit with Python and gfortran 11 years 7 months ago #8061

  • Fauret
  • Fauret's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 44
  • Thank you received: 12
I am using Window 7 on a 64bit machine, Python 2.7.3, and downloaded telemac from wingfortran32_V6p2.

I am posting this message hoping that it will help some new users and the developers of opentelemac.

I tried G95 fortran, downloaded from the site recommended by opentelemac, but had the same lack of success as many of my predecessor, and then tried gfortran as recommended by Sebastien.

I downloaded the self-installing gfortran, 64bit version 4.7.2, from

www.equation.com/servlet/equation.cmd?fa=fortran

I tried to compile telemac but always got messages such as: “i386 architecture of input file ‘read_fic_frliq.o' is incompatible with i386:x86-64 output”.

Trying many variations of the environment variable EQ_LIBRARY_PATH, and variations of the cmd_*: lines in systel.cfg did not help at all.

I then downloaded from the same above website, the 32 bit version, still self-installing. I compiled telemac and everything was perfect the first time.

I am now running telemac2d but have some issues which I will post on the Telemac2D topic.

Thierry
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

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