CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Taking advantage of GCCbs profilearcs optimization

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 28, 2007, 18:34
Default I was wondering if anybody has
  #1
connclark
Guest
 
Posts: n/a
I was wondering if anybody has played around with using GCC's profile arcs optimization. I figured I would mention it since making OpenFOAM just a little faster would have big payoffs for serious computations.

how you use it.

1) compile your app as normal but add the flag -fprofile-generate

2) run your app on a _good_ sample case. when the app exits it will put a <source>.gcda file in the directory where the source is located for your app.

3) recompile your app. This time remove the -fprofile-generate flag and add the -fprofile-use flag. Gcc will now use the profile data in the gcda file to optimize your code.

4) Use your app as you normally would and enjoy the fact it runs faster now


I haven't tried it on OpenFoam yet, but on other apps I have found a speed increase of 2 to 13%.
  Reply With Quote

 


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Taking Course / Training Huygen Main CFD Forum 1 November 15, 2008 07:51
taking screen shots c-dot Siemens 8 December 1, 2007 19:03
What happened to Advantage CFD? gocarts Main CFD Forum 0 February 6, 2007 13:01
taking more information about a macro???? Asghari FLUENT 0 July 24, 2006 13:14
Taking average in CFX Post TING CFX 0 August 24, 2004 10:00


All times are GMT -4. The time now is 00:46.