|
[Sponsors] |
August 14, 2013, 08:56 |
which one is faster
|
#1 |
Senior Member
Morteza
Join Date: May 2010
Location: Iran,Islamic Republic of
Posts: 161
Rep Power: 16 |
Hi
I am doing a project in Compaq fortran. Is it better to build an exe file and run it instead of copiling the code for having faster performance? of there is no difference between them? Please give me a scientifically-approved response |
|
August 14, 2013, 09:07 |
|
#2 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73 |
Quote:
Compaq Fortran is a very old compiler (migrated to Intel), better performances can be now obtained by modern compiler. However, for having better performance is better to create the exe file, using all the optimization procedures (O5, loop unroll, etc.) after you are sure that no bugs are (presumibly) present. The problem is that your exe file is optimized for old architectures and can run slowly on the modern multi-core |
||
August 14, 2013, 10:59 |
|
#3 |
Senior Member
Morteza
Join Date: May 2010
Location: Iran,Islamic Republic of
Posts: 161
Rep Power: 16 |
Thank you dear friend.
I mean for my code, I can build an exe file and run it on any other PC that fortran may not be installed. and also I can go to RUN menu and click on run. For one case, in which case the speed of running the code is faster without any attention to optimizations settings. for the same code on the same PC. |
|
August 18, 2013, 11:09 |
|
#4 |
Senior Member
Join Date: Aug 2011
Posts: 272
Rep Power: 16 |
Apparently you work under Windows as you have an exe file. First migrate under Linux (whatever the distribution) Linux has a better managment of RAM memory than Windows. Then as Filippo suggested it Intel compiler is very efficient. I have compiled the same source code under force 2 compiler/windows and Intel compiler/Linux and I obtained 30% of decrease of the CPU time with Intel/Linux.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 08:47 |
Speed of Convergence faster with smaller time step | Torque_Converter | CFX | 1 | May 15, 2012 20:22 |
Explicit converging faster compared to implicit | harish_0689@ | Main CFD Forum | 5 | January 23, 2012 08:00 |
Flamelet gives faster chemistry than ED-model | champshof | FLUENT | 0 | November 30, 2011 11:01 |
Is there any faster way to open a def file more than 100Mb? | CFD_D_BOY | CFX | 5 | October 9, 2011 06:06 |