X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8df87e176f27b25534f27d7e240defa32ca35bc..8be89720f55b4ceeb2877531ae1602cc7ed947d6:/src/smpi/colls/alltoall/alltoall-rdb.cpp diff --git a/src/smpi/colls/alltoall/alltoall-rdb.cpp b/src/smpi/colls/alltoall/alltoall-rdb.cpp index e52cbc79e4..c2268a3d98 100644 --- a/src/smpi/colls/alltoall/alltoall-rdb.cpp +++ b/src/smpi/colls/alltoall/alltoall-rdb.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2019. The SimGrid Team. +/* Copyright (c) 2013-2023. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -25,15 +25,14 @@ * Descrp: Function realizes the allgather operation using the recursive doubling algorithm. - * Auther: MPICH / slightly modified by Ahmad Faraj. + * Author: MPICH / slightly modified by Ahmad Faraj. ****************************************************************************/ -namespace simgrid{ -namespace smpi{ -int Coll_alltoall_rdb::alltoall(void *send_buff, int send_count, - MPI_Datatype send_type, - void *recv_buff, int recv_count, - MPI_Datatype recv_type, MPI_Comm comm) +namespace simgrid::smpi { +int alltoall__rdb(const void *send_buff, int send_count, + MPI_Datatype send_type, + void *recv_buff, int recv_count, + MPI_Datatype recv_type, MPI_Comm comm) { /* MPI variables */ MPI_Status status; @@ -44,7 +43,6 @@ int Coll_alltoall_rdb::alltoall(void *send_buff, int send_count, int last_recv_count = 0, tmp_mask, tree_root, num_procs_completed; int tag = COLL_TAG_ALLTOALL, mask = 1, i = 0; - char *tmp_buff; char *send_ptr = (char *) send_buff; char *recv_ptr = (char *) recv_buff; @@ -59,7 +57,7 @@ int Coll_alltoall_rdb::alltoall(void *send_buff, int send_count, max_size = num_procs * recv_increment; - tmp_buff = (char *) smpi_get_tmp_sendbuffer(max_size); + unsigned char* tmp_buff = smpi_get_tmp_sendbuffer(max_size); curr_size = send_count * num_procs; @@ -155,5 +153,4 @@ int Coll_alltoall_rdb::alltoall(void *send_buff, int send_count, smpi_free_tmp_buffer(tmp_buff); return MPI_SUCCESS; } -} -} +} // namespace simgrid::smpi