X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1f97075c250e334b3d744aadff6dee322c24c408..1687df79d61a9418bba830bbd0ab7de16e457090:/src/smpi/colls/allgatherv-mpich-ring.c diff --git a/src/smpi/colls/allgatherv-mpich-ring.c b/src/smpi/colls/allgatherv-mpich-ring.c index aeacb3f157..fc726453ed 100644 --- a/src/smpi/colls/allgatherv-mpich-ring.c +++ b/src/smpi/colls/allgatherv-mpich-ring.c @@ -1,12 +1,17 @@ -#include "colls_private.h" +/* Copyright (c) 2013-2014. 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. */ -/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ +#include "colls_private.h" + /***************************************************************************** * Function: allgather_mpich_ring * return: int @@ -59,8 +64,8 @@ smpi_coll_tuned_allgatherv_mpich_ring(void *sendbuf, int sendcount, for (i = 1; i < comm_size; i++) if (min > recvcounts[i]) min = recvcounts[i]; - if (min * recvtype_extent < 32768) - min = 32768 / recvtype_extent; + if (min * recvtype_extent < 32768*8) + min = 32768*8 / recvtype_extent; /* Handle the case where the datatype extent is larger than * the pipeline size. */ if (!min)