Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move all smpi colls to cpp.
[simgrid.git] / src / smpi / colls / gather-mvapich.cpp
similarity index 98%
rename from src/smpi/colls/gather-mvapich.c
rename to src/smpi/colls/gather-mvapich.cpp
index 033cdb6..d1447c1 100644 (file)
@@ -305,8 +305,8 @@ int smpi_coll_tuned_gather_mvapich2_two_level(void *sendbuf,
             node_sizes = smpi_comm_get_non_uniform_map(comm);
 
             if (leader_comm_rank == leader_root) {
-                displs = xbt_malloc(sizeof (int) * leader_comm_size);
-                recvcnts = xbt_malloc(sizeof (int) * leader_comm_size);
+                displs =  static_cast<int *>(xbt_malloc(sizeof (int) * leader_comm_size));
+                recvcnts =  static_cast<int *>(xbt_malloc(sizeof (int) * leader_comm_size));
                 if (!displs || !recvcnts) {
                     mpi_errno = MPI_ERR_OTHER;
                     return mpi_errno;