Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add template for copyright header.
[simgrid.git] / src / smpi / colls / allgather-2dmesh.c
index 4e3a9c77cfde7bdb8425a2fa7c131a7f1d9512f5..8ebc8489b36a3c6d1d9eb304b484298f663c4d23 100644 (file)
@@ -110,7 +110,7 @@ smpi_coll_tuned_allgather_2dmesh(void *send_buff, int send_count, MPI_Datatype
   int i, src, dst, rank, num_procs;
   int X, Y, send_offset, recv_offset;
   int my_row_base, my_col_base, src_row_base, block_size, num_reqs;
-  int tag = 1;
+  int tag = COLL_TAG_ALLGATHER;
 
   rank = smpi_comm_rank(comm);
   num_procs = smpi_comm_size(comm);
@@ -120,7 +120,7 @@ smpi_coll_tuned_allgather_2dmesh(void *send_buff, int send_count, MPI_Datatype
   block_size = extent * send_count;
 
   if (!is_2dmesh(num_procs, &X, &Y))
-    return MPI_ERR_COMM;
+    THROWF(arg_error,0, "allgather_2dmesh algorithm can't be used with this number of processes! ");
 
   my_row_base = (rank / Y) * Y;
   my_col_base = rank % Y;