A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use structured binding declarations (sonar, c++17).
[simgrid.git]
/
src
/
smpi
/
internals
/
smpi_replay.cpp
diff --git
a/src/smpi/internals/smpi_replay.cpp
b/src/smpi/internals/smpi_replay.cpp
index
491799b
..
a952b43
100644
(file)
--- a/
src/smpi/internals/smpi_replay.cpp
+++ b/
src/smpi/internals/smpi_replay.cpp
@@
-118,8
+118,7
@@
public:
void get_requests(std::vector<MPI_Request>& vec) const
{
void get_requests(std::vector<MPI_Request>& vec) const
{
- for (auto const& pair : store) {
- auto& reqs = pair.second;
+ for (auto const& [_, reqs] : store) {
aid_t my_proc_id = simgrid::s4u::this_actor::get_pid();
for (auto& req: reqs){
if (req != MPI_REQUEST_NULL && (req->src() == my_proc_id || req->dst() == my_proc_id)) {
aid_t my_proc_id = simgrid::s4u::this_actor::get_pid();
for (auto& req: reqs){
if (req != MPI_REQUEST_NULL && (req->src() == my_proc_id || req->dst() == my_proc_id)) {
@@
-588,8
+587,8
@@
void WaitAllAction::kernel(simgrid::xbt::ReplayAction&)
if (req != MPI_REQUEST_NULL)
Request::unref(&req);
if (req != MPI_REQUEST_NULL)
Request::unref(&req);
- for (auto const&
pair
: sender_receiver) {
- TRACE_smpi_recv(
pair.first, pair.second
, 0);
+ for (auto const&
[src, dst]
: sender_receiver) {
+ TRACE_smpi_recv(
src, dst
, 0);
}
TRACE_smpi_comm_out(get_pid());
}
}
TRACE_smpi_comm_out(get_pid());
}