|
[Sponsors] |
Taking advantage of GCCbs profilearcs optimization |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 28, 2007, 18:34 |
I was wondering if anybody has
|
#1 |
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%. |
|
|
|
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 |