-/* Copyright (c) 2013-2019. The SimGrid Team.
+/* Copyright (c) 2013-2022. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
}
namespace simgrid{
namespace smpi{
-int Coll_alltoall_3dmesh::alltoall(const void *send_buff, int send_count,
- MPI_Datatype send_type,
- void *recv_buff, int recv_count,
- MPI_Datatype recv_type, MPI_Comm comm)
+int alltoall__3dmesh(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_Aint extent;
MPI_Status status;
unsigned char* tmp_buff1 = smpi_get_tmp_sendbuffer(block_size * num_procs * two_dsize);
unsigned char* tmp_buff2 = smpi_get_tmp_recvbuffer(block_size * two_dsize);
- MPI_Status* statuses = new MPI_Status[num_reqs];
- MPI_Request* reqs = new MPI_Request[num_reqs];
+ auto* statuses = new MPI_Status[num_reqs];
+ auto* reqs = new MPI_Request[num_reqs];
MPI_Request* req_ptr = reqs;
recv_offset = (rank % two_dsize) * block_size * num_procs;