Changes between Version 4 and Version 5 of Documentation/UserGuide/ProfileGprof
- Timestamp:
- 2020-03-19T15:39:15+01:00 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/UserGuide/ProfileGprof
v4 v5 11 11 Basically 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. 12 12 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 15 13 Because ORCHIDEE makes use of several scripts, these options need to be added at several places: 16 14 * ORCHIDEE/config/Makefile add -p -g to the production line mode F_O 17 15 * 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) 18 16 * ORCHIDEE/model/ORCHIDEE/arc.fcm add -p -g to the prod line 17 18 Note 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. 19 19 20 20 Recompile 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)