gibuu is hosted by Hepforge, IPPP Durham
GiBUU
close Warning:
  • Error with navigation contributor "BrowserModule"
  • Failed to sync with repository "(default)": instance.__dict__ not accessible in restricted mode; repository information may be out of date. Look in the Trac log for more information including mitigation strategies.

Changes between Version 2 and Version 3 of HowToMakeCodeFaster


Ignore:
Timestamp:
Jan 26, 2012, 10:57:37 PM (12 years ago)
Author:
jweil
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToMakeCodeFaster

    v2 v3  
    331. First you should try to get an idea which routines are consuming most of your CPU time:
    44
    5  * Use the "-p" option together with your usual compiler flags.
    6  * Recompile the whole code.
     5 * Rebuild the whole code with "make MODE=prof" (works with ifort and gfortran).
    76 * Run the code with a sample job card. This will generate an additional file called "gmon.out".
    87 * After the succesful run, just execute [[BR]]
    98   {{{
    10     gprof main.x gmon.out
     9    gprof GiBUU.x gmon.out
    1110   }}}
    12    which gives you the amount of consumed CPU time per subroutines.
     11   which gives you the amount of consumed CPU time per subroutine.
    1312
    1413
    15 
    16 2.  Now the hard part starts : Reducing the run time of the main consumers...
    17 
    18 
     142. Now comes the hard part: Reducing the run time of the main consumers ...