NAME

PTIM_omp_stop - stops thread elapsed time counter.

SYNOPSIS

call PTIM_omp_stop()

NOTES

PTIM_omp_stop is a local thread call.

EXAMPLES

The program below, invokes PTIM_omp_start/stop subroutines to time-instrument OpenMP parallel regions of each MPI process.

     USE PTIM
     INTEGER :: ierr

     CALL MPI_INIT(ierr)
     call PTIM_start(LABEL="Mixed parallel work")
     ...CALL do_mpi_parallel_work(...)
     !$OMP PARALLEL
       call PTIM_omp_start()
       call do_OpenMp_parallel_work(...)
       call PTIM_omp_stop()
     !$OMP END PARALLEL
     ...
     call PTIM_stop(LABEL="Mixed parallel work")
     ...
     CALL MPI_FINALIZE(ierr)

OUTPUT EXAMPLE

Below is a table example printed out by PTIM_stop subroutine which resumes the timings collected from the instrumentation of a mixed MPI/OpenMP section:

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

     Process Rank | Process CPU Time (s) | Process Elapsed Time (s) | CPU/Elapsed
     =============|======================|==========================|============
        0         |         23.240       |           8.914          |       2.607
                  |                      |--------------------------|
                  |                      | Thread Elapsed Time (s)  |
                  |                      |--------------------------|
                  |                      |   0:           7.957     |
                  |                      |   1:           7.957     |
                  |                      |   2:           6.376     |
     -------------|----------------------|--------------------------|------------
        1         |          5.830       |           8.915          |        .654
                  |                      |--------------------------|
                  |                      | Thread Elapsed Time (s)  |
                  |                      |--------------------------|
                  |                      |   0:           1.593     |
                  |                      |   1:           1.593     |
     -------------|----------------------|--------------------------|------------
        2         |          5.490       |           8.902          |        .617
                  |                      |--------------------------|
                  |                      | Thread Elapsed Time (s)  |
                  |                      |--------------------------|
                  |                      |   0:           1.555     |
                  |                      |   1:           1.555     |
     -------------|----------------------|--------------------------|------------
        3         |          4.630       |           8.917          |        .519
                  |                      |--------------------------|
                  |                      | Thread Elapsed Time (s)  |
                  |                      |--------------------------|
                  |                      |   0:           1.596     |
                  |                      |   1:           1.596     |
     =============|======================|==========================|============
     Total        |         39.190       |          35.649          |       4.397
     Minimum      |          4.630       |           8.902          |        .519
     Maximum      |         23.240       |           8.917          |       2.607
     Average      |          9.797       |           8.912          |       1.099
     =============|======================|==========================|============

     PTIM started on 05/11/2004 at 13:25:26 MET +01:00 from GMT
     PTIM stopped on 05/11/2004 at 13:25:35 MET +01:00 from GMT

SEE ALSO

PTIM_start, PTIM_stop, PTIM_omp_start

Back to the routines' list...


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