-/* 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
y dimension, then in z dimension. Each node then extracts the
needed data. The communication in all dimension is simple.
- * Auther: Ahmad Faraj
+ * Author: Ahmad Faraj
****************************************************************************/
static int alltoall_check_is_3dmesh(int num, int *i, int *j, int *k)
}
return 0;
}
-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)
+namespace simgrid::smpi {
+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;
smpi_free_tmp_buffer(tmp_buff2);
return MPI_SUCCESS;
}
-}
-}
+} // namespace simgrid::smpi