Changes between Version 4 and Version 5 of Documentation/UserGuide/ProfileGprof


Ignore:
Timestamp:
2020-03-19T15:39:15+01:00 (4 years ago)
Author:
luyssaert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide/ProfileGprof

    v4 v5  
    1111Basically one needs to add the compiler option -p -g or -pg. Use [https://web.eecs.umich.edu/~sugih/pointers/gprof_quick.html the internet] to learn about additional settings that can be used to fine tune the outcomes of gprof.  
    1212 
    13 Note that around revision 6610 the way of compiling the model has changed. '''The information provided below is no longer valid''' for the compilation using the ./compile_orchidee_ol.sh script. 
    14  
    1513Because ORCHIDEE makes use of several scripts, these options need to be added at several places:  
    1614* ORCHIDEE/config/Makefile add -p -g to the production line mode F_O 
    1715* If you want this to become the default also after a make clean and ins_make then also change the compiler options in ORCHIDEE/util/AA_make.def add -p -g to the production line mode F_O for obelix. Then run ins_make (./ins_make) 
    1816* ORCHIDEE/model/ORCHIDEE/arc.fcm add -p -g to the prod line 
     17 
     18Note that around revision 6610 the way of compiling the model has changed. '''The instructions provided above are no longer valid''' for the compilation using the ./compile_orchidee_ol.sh script. The remainder of this item should still be valid. 
    1919 
    2020Recompile the model from the config/ORCHIDEE_OL folder. Rerun the model. If all goes well a gmon.out file will be created in the RUN_DIR. So, on obelix you will first have to change the path of the RUN_DIR else you will not be able to access this folder. Open …/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh and change the RUN_DIR_PATH (example below)