X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/befbbbe1fbb31663a8f91e24ce12df271cf4ae79..61fc507b7dde640d3bd7d4818d15674436c34f97:/teshsuite/smpi/coll-reduce-scatter/coll-reduce-scatter.c diff --git a/teshsuite/smpi/coll-reduce-scatter/coll-reduce-scatter.c b/teshsuite/smpi/coll-reduce-scatter/coll-reduce-scatter.c index 6a866f042c..58e123938e 100644 --- a/teshsuite/smpi/coll-reduce-scatter/coll-reduce-scatter.c +++ b/teshsuite/smpi/coll-reduce-scatter/coll-reduce-scatter.c @@ -1,5 +1,5 @@ -/* Copyright (c) 2013-2014. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2013-2019. 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. */ @@ -16,43 +16,66 @@ int main( int argc, char **argv ) { - int err = 0; - int toterr; - int size; - int rank; - int i; - MPI_Comm comm; - - MPI_Init( &argc, &argv ); - comm = MPI_COMM_WORLD; - - MPI_Comm_size( comm, &size ); - MPI_Comm_rank( comm, &rank ); - int* sendbuf = (int *) malloc( size * sizeof(int) ); - for (i=0; i