Changes between Version 7 and Version 8 of Documentation/UserGuide/ProfileGprof


Ignore:
Timestamp:
05/11/21 17:36:48 (5 months ago)
Author:
xnwang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide/ProfileGprof

    v7 v8  
    88Authors: A.S. Lansø and S. Luyssaert [[BR]]  
    99Last revision: S. Luyssaert (2019/09/30) [[BR]] 
     10Last revision: X. Wang (2021/05/11) [[BR]] 
    1011 
    1112Basically one needs to add the compiler option -p -g or -pg. Use [https://web.eecs.umich.edu/~sugih/pointers/gprof_quick.html on-line manuals] to learn about additional settings that can be used to fine tune the outcomes of gprof.  
     
    3132gprof orchide_ol gmon.out > view.txt  
    3233}}} 
     34 
     35 
     36Tested in trunk rev n7164 with gprof on Irene. 
     37* modify the modeles/IOIPSL/src/Makefile: add -p -g to the line F_O 
     38* modify modeles/ORCHIDEE/arch/arch__servername.fcm: add -p -g to RPOD_FFLAGS 
     39* recompile orchidee ./compile_orchidee_ol.sh  
     40* if use a small region and without libIGCM for simulation: ./orchidee_ol_prod > out_orchidee_ol_prod 2>&1 
     41* gprof -a orchidee_ol_prod gmon.out > analysis.txt