gibuu is hosted by Hepforge, IPPP Durham
GiBUU

Changes between Version 1 and Version 2 of HowToMakeCodeFaster


Ignore:
Timestamp:
Mar 6, 2008, 10:47:54 AM (16 years ago)
Author:
oliver
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowToMakeCodeFaster

    v1 v2  
    11== Speeding up your code ==
    22
    3 First you should try to get an idea which routines are consuming most of your CPU time:
     31. First you should try to get an idea which routines are consuming most of your CPU time:
    44
    55 * Use the "-p" option together with your usual compiler flags.
    66 * Recompile the whole code.
    77 * Run the code with a sample job card. This will generate an additional file called "gmon.out".
    8  * After the succesful run, just execute "gprof main.x gmon.out" which gives you the amount of consumed CPU time per subroutines.
     8 * After the succesful run, just execute [[BR]]
     9   {{{
     10    gprof main.x gmon.out
     11   }}}
     12   which gives you the amount of consumed CPU time per subroutines.
    913
    1014
    11 Now the hard part starts : Reducing the run time of the main consumers...
     15
     162.  Now the hard part starts : Reducing the run time of the main consumers...
    1217
    1318