Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update doc for asynchronous comm and pthread_mutexes of pthread_conds.
[simgrid.git] / src / smpi / smpi_coll.c
index 874d32a..19c3d5b 100644 (file)
@@ -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 <stdio.h>
 #include <string.h>
@@ -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. */