X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1b688c83e1d48eda7a3392c2a7f0c3c540e77f7d..4d19d0578ec78430847de4271258e1d23ca67675:/src/smpi/colls/alltoall-3dmesh.c diff --git a/src/smpi/colls/alltoall-3dmesh.c b/src/smpi/colls/alltoall-3dmesh.c index ed734e5b1f..cae32a23b0 100644 --- a/src/smpi/colls/alltoall-3dmesh.c +++ b/src/smpi/colls/alltoall-3dmesh.c @@ -24,7 +24,7 @@ * Auther: Ahmad Faraj ****************************************************************************/ -int alltoall_check_is_3dmesh(int num, int *i, int *j, int *k) +static int alltoall_check_is_3dmesh(int num, int *i, int *j, int *k) { int x, max = num / 3; x = cbrt(num); @@ -43,8 +43,7 @@ int alltoall_check_is_3dmesh(int num, int *i, int *j, int *k) int smpi_coll_tuned_alltoall_3dmesh(void *send_buff, int send_count, MPI_Datatype send_type, void *recv_buff, int recv_count, - MPI_Datatype recv_type, - MPI_Comm comm) + MPI_Datatype recv_type, MPI_Comm comm) { MPI_Request *reqs, *req_ptr; MPI_Aint extent; @@ -157,8 +156,8 @@ int smpi_coll_tuned_alltoall_3dmesh(void *send_buff, int send_count, send_offset = (rank * block_size) + (i * block_size * num_procs); recv_offset = (my_z_base * block_size) + (i * block_size); MPI_Sendrecv(tmp_buff1 + send_offset, send_count, send_type, rank, tag, - recv_buff + recv_offset, recv_count, recv_type, rank, tag, - comm, &status); + (char *) recv_buff + recv_offset, recv_count, recv_type, + rank, tag, comm, &status); } for (i = 1; i < Z; i++) { @@ -167,8 +166,8 @@ int smpi_coll_tuned_alltoall_3dmesh(void *send_buff, int send_count, recv_offset = (src_z_base * block_size); - MPI_Irecv(recv_buff + recv_offset, recv_count * two_dsize, recv_type, - src, tag, comm, req_ptr++); + MPI_Irecv((char *) recv_buff + recv_offset, recv_count * two_dsize, + recv_type, src, tag, comm, req_ptr++); } for (i = 1; i < Z; i++) {