/* selector for collective algorithms based on mpich decision logic */
-/* Copyright (c) 2009-2010, 2013. The SimGrid Team.
+/* Copyright (c) 2009-2010, 2013-2014. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
)
{
int communicator_size, pow2_size,i;
- size_t dsize, total_dsize;
+ size_t total_dsize;
communicator_size = smpi_comm_size(comm);
/* Determine complete data size */
- dsize=smpi_datatype_size(sdtype);
- total_dsize = dsize * scount * communicator_size;
-
total_dsize = 0;
for (i=0; i<communicator_size; i++)
total_dsize += rcounts[i];
- if (total_dsize == 0) return MPI_SUCCESS;
+ if (total_dsize == 0)
+ return MPI_SUCCESS;
for (pow2_size = 1; pow2_size < communicator_size; pow2_size <<=1);