-/* Copyright (c) 2013-2020. 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
#include "../coll_tuned_topo.hpp"
#include "../colls_private.hpp"
-namespace simgrid{
-namespace smpi{
+namespace simgrid::smpi {
int smpi_coll_tuned_ompi_reduce_generic(const void* sendbuf, void* recvbuf, int original_count,
MPI_Datatype datatype, MPI_Op op,
else {
int creq = 0;
- MPI_Request* sreq = new (std::nothrow) MPI_Request[max_outstanding_reqs];
+ auto* sreq = new (std::nothrow) MPI_Request[max_outstanding_reqs];
if (nullptr == sreq) {
line = __LINE__;
ret = -1;
/* copied function (with appropriate renaming) ends here */
-
-}
-}
+} // namespace simgrid::smpi