-/* 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
int count,
MPI_Datatype datatype,
MPI_Op op, int root, MPI_Comm comm);
-namespace simgrid {
-namespace smpi {
+namespace simgrid::smpi {
int reduce__mvapich2_two_level( const void *sendbuf,
void *recvbuf,
int count,
int intra_node_root=0;
//if not set (use of the algo directly, without mvapich2 selector)
- if(MV2_Reduce_function==NULL)
+ if (MV2_Reduce_function == nullptr)
MV2_Reduce_function = reduce__mpich;
- if(MV2_Reduce_intra_function==NULL)
+ if (MV2_Reduce_intra_function == nullptr)
MV2_Reduce_intra_function = reduce__mpich;
if(comm->get_leaders_comm()==MPI_COMM_NULL){
fn_exit:
return mpi_errno;
}
-}
-}
+} // namespace simgrid::smpi