Next: Bibliography
Up: Compiling and running OASIS4
Previous: Compiling and running TOYOA4
This section describes how to get some CPU and elapse time statistics
for the internal PSMILe and Driver/Transformer routines using the
routines in module oasis4/lib/common_oa4/src/
psmile_timer.F90. To use this functionality, one has to:
- call psmile_timer_init at the beginning of the code with,
as arguments, the number of measures, a vector giving a label for
each measure, the application name, the name of the file where the
statistics will be printed out, and the local communicator of the
application (see an example in prism_init.F90)
- for each x measure of time, call psmile_timer_start(x)
and psmile_timer_stop(x); if these two routines are
called multiple times for the same x, the time will get accumulated
- call psmile_timeprint at
the end of the run (see example in prism_terminate.F90)
The statistics will get printed for all processes in a file with the name
given as argument of the
psmile_timer_init. Currently, x=1
and x=2 are used under CPP key PROFILE in the PSMILe to
measure the total time and the time used in prism_enddef (see
prism_init.F90, prism_enddef.F90 and prism_terminate.F90). In the Driver/Transformer, x=1 is used under CPP key PROFILE to
measure the total time used by the Driver/Transformer (see
prismdrv_init_appl.F90 and
prismdrv_finalize.F90).
Next: Bibliography
Up: Compiling and running OASIS4
Previous: Compiling and running TOYOA4
Laure Coquart
2011-12-01