From: Arnaud Legrand Date: Thu, 3 Apr 2014 23:48:41 +0000 (+0200) Subject: Have an informative final message. X-Git-Tag: v3_11~170 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e619490874006fc40bde8148153b83ae0268f38d Have an informative final message. --- diff --git a/teshsuite/bug-17132/bug-17132.c b/teshsuite/bug-17132/bug-17132.c index 3cc6ed7ee9..9cd6985a3a 100644 --- a/teshsuite/bug-17132/bug-17132.c +++ b/teshsuite/bug-17132/bug-17132.c @@ -18,6 +18,9 @@ int main(int argc, char ** argv) MPI_Init(&argc, &argv); + int rank; + MPI_Comm_rank(MPI_COMM_WORLD,&rank); + double *a = malloc(sizeof(double) * M); double *b = malloc(sizeof(double) * N); @@ -39,6 +42,10 @@ int main(int argc, char ** argv) // Commenting out this barrier fixes it!! MPI_Barrier(MPI_COMM_WORLD); + if(rank==0) { + printf("Walltime = %g\n",MPI_Wtime()); + } + MPI_Finalize(); free(a); free(b); diff --git a/teshsuite/bug-17132/bug-17132.tesh b/teshsuite/bug-17132/bug-17132.tesh index d167f08b25..a73b210f6e 100644 --- a/teshsuite/bug-17132/bug-17132.tesh +++ b/teshsuite/bug-17132/bug-17132.tesh @@ -1,8 +1,9 @@ $ ../../smpi_script/bin/smpirun -np 16 -platform ${srcdir:=.}/small_platform.xml -hostfile ${srcdir:=.}/hostfile.txt ./bug-17132 --cfg=smpi/cpu_threshold:-1 --log=smpi_kernel.thres:warning > You requested to use 16 processes, but there is only 2 processes in your hostfile... > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'maxmin/precision' to '1e-9' +> [0.000000] [xbt_cfg/INFO] Configuration change: Set 'surf/precision' to '1e-9' > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/model' to 'SMPI' > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'network/TCP_gamma' to '4194304' > [0.000000] [xbt_cfg/INFO] Configuration change: Set 'smpi/cpu_threshold' to '-1' > [0.000000] [surf_config/INFO] Switching workstation model to compound since you changed the network and/or cpu model(s) -> (some sensible output) +> Walltime = 0.00212779