-/* $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>
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
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. */
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. */