X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3e79165b3c7d3ebaa59d0bf6dd132987a14a9373..68948e0bf68283fd55c3697ba839a78f12424f36:/teshsuite/smpi/macro-sample/macro-sample.c diff --git a/teshsuite/smpi/macro-sample/macro-sample.c b/teshsuite/smpi/macro-sample/macro-sample.c index 7309af15b9..5696f75f89 100644 --- a/teshsuite/smpi/macro-sample/macro-sample.c +++ b/teshsuite/smpi/macro-sample/macro-sample.c @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) MPI_Comm_rank(MPI_COMM_WORLD, &rank); double d = 2.0; /* I want no more than n + 1 benchs (thres < 0) */ - SMPI_SAMPLE_GLOBAL(int i = 0, i < 5, i++, n + 1, -1, + SMPI_SAMPLE_GLOBAL(int i = 0, i < 5, i++, n + 1, -1){ if (verbose) fprintf(stderr, "(%12.6f) [rank:%d]", MPI_Wtime(), rank); else @@ -41,10 +41,10 @@ int main(int argc, char *argv[]) fprintf(stderr, " Run the first computation. It's globally benched, " "and I want no more than %d benchmarks (thres<0)\n", n + 1); d = compute(2.0); - ) + } n = 0; - SMPI_SAMPLE_LOCAL (int i = 0, i < 5, i++,0, 0.1, + SMPI_SAMPLE_LOCAL (int i = 0, i < 5, i++,0, 0.1){ if (verbose || n < 2) { n++; if (verbose) @@ -56,7 +56,7 @@ int main(int argc, char *argv[]) "standard error to go below 0.1 second (count is not >0)\n", rank); } d = compute(d); - ) + } if (verbose) fprintf(stderr, "(%12.6f) [rank:%d] The result of the computation is: %f\n", MPI_Wtime(), rank, d);