+/* 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. */
+
#include "colls_private.h"
int
MPI_Aint send_chunk, recv_chunk;
// local int variables
- int i, j, k, dst, rank, num_procs, send_offset, recv_offset, tree_root;
+ unsigned int i, j, k, dst, send_offset, recv_offset, tree_root;
int dst_tree_root, rank_tree_root, last_recv_count = 0, num_procs_completed;
int offset, tmp_mask;
int tag = COLL_TAG_ALLGATHER;
char *recv_ptr = (char *) rbuf;
// get size of the communicator, followed by rank
- num_procs = smpi_comm_size(comm);
- rank = smpi_comm_rank(comm);
+ unsigned int num_procs = smpi_comm_size(comm);
+ unsigned int rank = smpi_comm_rank(comm);
// get size of single element's type for send buffer and recv buffer
send_chunk = smpi_datatype_get_extent(send_type);