-/* Copyright (c) 2013-2020. 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
rank = comm->rank();
//comm_size = comm->size();
-
- if (MV2_Bcast_function==NULL){
+ if (MV2_Bcast_function == nullptr) {
MV2_Bcast_function = bcast__mpich;
}
- if (MV2_Bcast_intra_node_function==NULL){
+ if (MV2_Bcast_intra_node_function == nullptr) {
MV2_Bcast_intra_node_function = bcast__mpich;
}
int mpi_errno = MPI_SUCCESS;
int src, dst, mask, relative_rank;
int k;
- if (MV2_Bcast_function==NULL){
+ if (MV2_Bcast_function == nullptr) {
MV2_Bcast_function = bcast__mpich;
}
- if (MV2_Bcast_intra_node_function==NULL){
+ if (MV2_Bcast_intra_node_function == nullptr) {
MV2_Bcast_intra_node_function = bcast__mpich;
}
local_size = comm->size();
rank = comm->rank();
- MPI_Request* reqarray = new MPI_Request[2 * mv2_intra_node_knomial_factor];
+ auto* reqarray = new MPI_Request[2 * mv2_intra_node_knomial_factor];
- MPI_Status* starray = new MPI_Status[2 * mv2_intra_node_knomial_factor];
+ auto* starray = new MPI_Status[2 * mv2_intra_node_knomial_factor];
/* intra-node k-nomial bcast */
if (local_size > 1) {
if (count == 0)
return MPI_SUCCESS;
- if (MV2_Bcast_function==NULL){
+ if (MV2_Bcast_function == nullptr) {
MV2_Bcast_function = bcast__mpich;
}
- if (MV2_Bcast_intra_node_function==NULL){
+ if (MV2_Bcast_intra_node_function == nullptr) {
MV2_Bcast_intra_node_function = bcast__mpich;
}