Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[DOC] Fixed even more errors.
[simgrid.git] / src / smpi / colls / allgatherv-mpich-ring.c
index aeacb3f..fc72645 100644 (file)
@@ -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)