X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5fa8d6780a107eb5ae1ff8a233b0dd23cb065f8a..7c6aa224fea8cfabc0c95787be042c1bc67e8283:/teshsuite/smpi/alltoall_basic.c diff --git a/teshsuite/smpi/alltoall_basic.c b/teshsuite/smpi/alltoall_basic.c index 485752e2ef..90cc4aad61 100644 --- a/teshsuite/smpi/alltoall_basic.c +++ b/teshsuite/smpi/alltoall_basic.c @@ -1,14 +1,14 @@ -/* Copyright (c) 2009, 2010. The SimGrid Team. +/* Copyright (c) 2009-2010, 2012-2013. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include "mpi.h" #include #include #include #include +#include "mpi.h" #ifndef EXIT_SUCCESS #define EXIT_SUCCESS 0 @@ -44,6 +44,7 @@ int main(int argc, char *argv[]) sb[i] = rank + 1; rb[i] = 0; } + status = MPI_Alltoall(sb, 1, MPI_INT, rb, 1, MPI_INT, MPI_COMM_WORLD); printf("[%d] rcvbuf=[", rank); @@ -53,7 +54,7 @@ int main(int argc, char *argv[]) if (rank == 0) { - if (status != 0) { + if (status != MPI_SUCCESS) { printf("all_to_all returned %d\n", status); fflush(stdout); }