-#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
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)