X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9104957deccc59e0e804215d5db498fabfd40d29..ea74f5d95928a521a588737e81f1de94eef25d19:/src/smpi/colls/bcast/bcast-mvapich-smp.cpp diff --git a/src/smpi/colls/bcast/bcast-mvapich-smp.cpp b/src/smpi/colls/bcast/bcast-mvapich-smp.cpp index ca2b739637..5c55f32e03 100644 --- a/src/smpi/colls/bcast/bcast-mvapich-smp.cpp +++ b/src/smpi/colls/bcast/bcast-mvapich-smp.cpp @@ -1,4 +1,4 @@ -/* 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 @@ -91,12 +91,11 @@ int bcast__mvapich2_inter_node(void *buffer, 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; } @@ -179,11 +178,11 @@ int bcast__mvapich2_knomial_intra_node(void *buffer, 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; } @@ -194,9 +193,9 @@ int bcast__mvapich2_knomial_intra_node(void *buffer, 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) { @@ -259,11 +258,11 @@ int bcast__mvapich2_intra_node(void *buffer, 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; }