X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3c1eda61bc5b0d9c846abd9bb53b0bef26cb2880..e9efa61bd5941f4d58bb736d74b4348942cadb0a:/src/smpi/smpi_coll.c diff --git a/src/smpi/smpi_coll.c b/src/smpi/smpi_coll.c index 874d32a48d..19c3d5b156 100644 --- a/src/smpi/smpi_coll.c +++ b/src/smpi/smpi_coll.c @@ -1,12 +1,10 @@ -/* $Id$tag */ - /* smpi_coll.c -- various optimized routing for collectives */ -/* Copyright (c) 2009 Stephane Genaud. */ -/* All rights reserved. */ +/* Copyright (c) 2009, 2010. 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. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ #include #include @@ -186,7 +184,9 @@ void nary_tree_barrier(MPI_Comm comm, int arity) { int smpi_coll_tuned_alltoall_bruck(void* sendbuf, int sendcount, MPI_Datatype sendtype, void* recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm) { int system_tag = 777; int i, rank, size, err, count; - MPI_Aint lb, sendextent, recvextent; + MPI_Aint lb; + MPI_Aint sendextent = 0; + MPI_Aint recvextent = 0; MPI_Request* requests; // FIXME: check implementation @@ -234,7 +234,9 @@ int smpi_coll_tuned_alltoall_bruck(void* sendbuf, int sendcount, MPI_Datatype se int smpi_coll_tuned_alltoall_basic_linear(void *sendbuf, int sendcount, MPI_Datatype sendtype, void* recvbuf, int recvcount, MPI_Datatype recvtype, MPI_Comm comm) { int system_tag = 888; int i, rank, size, err, count; - MPI_Aint lb, sendinc, recvinc; + MPI_Aint lb; + MPI_Aint sendinc = 0; + MPI_Aint recvinc = 0; MPI_Request *requests; /* Initialize. */ @@ -307,7 +309,9 @@ int smpi_coll_tuned_alltoall_pairwise(void* sendbuf, int sendcount, MPI_Datatype int smpi_coll_basic_alltoallv(void* sendbuf, int* sendcounts, int* senddisps, MPI_Datatype sendtype, void* recvbuf, int *recvcounts, int* recvdisps, MPI_Datatype recvtype, MPI_Comm comm) { int system_tag = 889; int i, rank, size, err, count; - MPI_Aint lb, sendextent, recvextent; + MPI_Aint lb; + MPI_Aint sendextent = 0; + MPI_Aint recvextent = 0; MPI_Request* requests; /* Initialize. */