CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

which one is faster

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Display Modes
Old   August 14, 2013, 07:56
Default which one is faster
  #1
Senior Member
 
morteza08's Avatar
 
Morteza
Join Date: May 2010
Location: Iran,Islamic Republic of
Posts: 159
Rep Power: 7
morteza08 is on a distinguished road
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
morteza08 is offline   Reply With Quote

Old   August 14, 2013, 08:07
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 1,604
Rep Power: 23
FMDenaro will become famous soon enough
Quote:
Originally Posted by morteza08 View Post
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
your question is not clear to me ... what do you mean for "instead of copiling the code for having faster performance"
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
morteza08 likes this.
FMDenaro is offline   Reply With Quote

Old   August 14, 2013, 09:59
Default
  #3
Senior Member
 
morteza08's Avatar
 
Morteza
Join Date: May 2010
Location: Iran,Islamic Republic of
Posts: 159
Rep Power: 7
morteza08 is on a distinguished road
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.
morteza08 is offline   Reply With Quote

Old   August 18, 2013, 10:09
Default
  #4
Senior Member
 
Join Date: Aug 2011
Posts: 251
Rep Power: 6
leflix is on a distinguished road
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.
leflix is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 07:47
Speed of Convergence faster with smaller time step Torque_Converter CFX 1 May 15, 2012 19: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 05:06


All times are GMT -4. The time now is 23:54.