From 89e6365b5fbabe18c2d162cedd9ba07cd3e429b8 Mon Sep 17 00:00:00 2001 From: genaud Date: Tue, 7 Jul 2009 17:30:44 +0000 Subject: [PATCH 1/1] Oops. Forgot to commit the header. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6456 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/smpi/barrier.c | 6 ++++++ include/smpi/smpi.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/examples/smpi/barrier.c b/examples/smpi/barrier.c index 31e605d4b7..57dbab76b0 100644 --- a/examples/smpi/barrier.c +++ b/examples/smpi/barrier.c @@ -12,9 +12,15 @@ int main (int argc, char **argv) { MPI_Comm_size(MPI_COMM_WORLD, &size); MPI_Comm_rank(MPI_COMM_WORLD, &rank); + start_timer = MPI_Wtime(); MPI_Barrier( MPI_COMM_WORLD ); + MPI_Barrier( MPI_COMM_WORLD ); + if (0 == rank) { + printf("... Barrier ....\n"); + printf("Elapsed=%lf s\n", MPI_Wtime() - start_timer); + } MPI_Finalize(); return 0; diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index 32b4b14d21..af5a3e26bb 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -52,6 +52,7 @@ SG_BEGIN_DECL() smpi_mpi_communicator_t mpi_comm_world; smpi_mpi_datatype_t mpi_byte; + smpi_mpi_datatype_t mpi_char; smpi_mpi_datatype_t mpi_int; smpi_mpi_datatype_t mpi_float; smpi_mpi_datatype_t mpi_double; @@ -71,6 +72,7 @@ SG_BEGIN_DECL() #define MPI_STATUS_IGNORE NULL #define MPI_BYTE (smpi_mpi_global->mpi_byte) +#define MPI_CHAR (smpi_mpi_global->mpi_char) #define MPI_INT (smpi_mpi_global->mpi_int) #define MPI_FLOAT (smpi_mpi_global->mpi_float) #define MPI_DOUBLE (smpi_mpi_global->mpi_double) -- 2.20.1