Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add calls to smpi_bench_{end,begin} in PMPI_Wtime.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 28 Oct 2013 14:33:41 +0000 (15:33 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 28 Oct 2013 15:15:58 +0000 (16:15 +0100)
commitf7d3e337e64b54125c8a990a99583383a6bf9780
treedb552b2a9c4f67e8e794ffbe4ee1462ce825e348
parentc9cf8f50d09dca349fbbab82ca078cc9ae6890e5
Add calls to smpi_bench_{end,begin} in PMPI_Wtime.

Without this change, doing something like the following always
gives a duration of zero:

    ...
    start = MPI_Wtime();
    // big computation...
    end = MPI_Wtime();
    duration = end - start;
    ...

Make sure that no calls to smpi_bench are made when process is not
between init and finalize, nor during sample blocks.
ChangeLog
src/smpi/private.h
src/smpi/smpi_bench.c
src/smpi/smpi_pmpi.c