NAME

OTIM_omp_stop - stops thread elapsed time counter.

SYNOPSIS

call OTIM_omp_stop()

NOTES

OTIM_omp_stop is a local thread call.

EXAMPLES

The program below, invokes OTIM_omp_start/stop subroutines to time-instrument an OpenMP parallel regions:

     USE TIM
     ...
     call OTIM_start(LABEL="OpenMP parallel work")
     ...
     !$OMP PARALLEL
       call OTIM_omp_start()
       call do_multi-threaded_work(...)
       call OTIM_omp_stop()
     !$OMP END PARALLEL
     ...
     call OTIM_stop(LABEL="OpenMP parallel work")
     ...

OUTPUT EXAMPLE

Below is a table example printed out by OTIM_stop subroutine which shows the timings of an OpenMP section of a code:

     Copyright (C) 2004, Jalel CHERGUI, IDRIS-CNRS FRANCE.
     TIM (release 3.1) summary report of *** OpenMP parallel work ***

     Process CPU Time (s) | Process Elapsed Time (s) | CPU/Elapsed
     =====================|==========================|============
               2.070      |            .690          |       3.000
                          |--------------------------|
                          | Thread Elapsed Time (s)  |
                          |--------------------------|
                          |    0:         .691       |
                          |    1:         .691       |
                          |    2:         .691       |
     =====================|==========================|============

     TIM started on 18/11/2004 at 13:59:13 MET +01:00 from GMT
     TIM stopped on 18/11/2004 at 13:59:14 MET +01:00 from GMT

SEE ALSO

OTIM_start, OTIM_stop, OTIM_omp_start

Back to the routines' list...


Last modified: Tue Dec 7 11:39:24 CET 2004