From 9100ed6a1f170718b2bbea8ec36bbc7d1677d4c2 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Thu, 21 Jun 2018 16:12:33 +0200 Subject: [PATCH] [TRACING] Rename TIT action gatherV -> gatherv --- src/instr/instr_private.hpp | 2 +- src/smpi/bindings/smpi_pmpi_coll.cpp | 2 +- src/smpi/internals/smpi_replay.cpp | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/instr/instr_private.hpp b/src/instr/instr_private.hpp index 4bbb1e8fdb..73923f6646 100644 --- a/src/instr/instr_private.hpp +++ b/src/instr/instr_private.hpp @@ -76,7 +76,7 @@ public: , recv_size(recv_size) , send_type(send_type) , recv_type(recv_type){}; - // VarCollTI: gatherV, scatterv, allgatherv, allToAllV (+ reducescatter out of laziness) + // VarCollTI: gatherv, scatterv, allgatherv, allToAllV (+ reducescatter out of laziness) explicit TIData(std::string name, int root, int send_size, std::vector* sendcounts, int recv_size, std::vector* recvcounts, std::string send_type, std::string recv_type) : TIData(name, root, send_size, std::shared_ptr>(sendcounts), recv_size, diff --git a/src/smpi/bindings/smpi_pmpi_coll.cpp b/src/smpi/bindings/smpi_pmpi_coll.cpp index 6fa2231507..fa2a53c939 100644 --- a/src/smpi/bindings/smpi_pmpi_coll.cpp +++ b/src/smpi/bindings/smpi_pmpi_coll.cpp @@ -144,7 +144,7 @@ int PMPI_Gatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recv TRACE_smpi_comm_in(rank, __func__, new simgrid::instr::VarCollTIData( - "gatherV", root, + "gatherv", root, sendtmptype->is_replayable() ? sendtmpcount : sendtmpcount * sendtmptype->size(), nullptr, dt_size_recv, trace_recvcounts, simgrid::smpi::Datatype::encode(sendtmptype), simgrid::smpi::Datatype::encode(recvtype))); diff --git a/src/smpi/internals/smpi_replay.cpp b/src/smpi/internals/smpi_replay.cpp index 774cec5574..8e25d124f5 100644 --- a/src/smpi/internals/smpi_replay.cpp +++ b/src/smpi/internals/smpi_replay.cpp @@ -250,7 +250,7 @@ void GatherVArgParser::parse(simgrid::xbt::ReplayAction& action, std::string nam disps = std::vector(comm_size, 0); recvcounts = std::shared_ptr>(new std::vector(comm_size)); - if (name == "gatherV") { + if (name == "gatherv") { root = (action.size() > 3 + comm_size) ? std::stoi(action[3 + comm_size]) : 0; if (action.size() > 4 + comm_size) datatype1 = simgrid::smpi::Datatype::decode(action[4 + comm_size]); @@ -622,10 +622,10 @@ void GatherVAction::kernel(simgrid::xbt::ReplayAction& action) int rank = MPI_COMM_WORLD->rank(); TRACE_smpi_comm_in(my_proc_id, name.c_str(), new simgrid::instr::VarCollTIData( - name, (name == "gatherV") ? args.root : -1, args.send_size, nullptr, -1, args.recvcounts, + name, (name == "gatherv") ? args.root : -1, args.send_size, nullptr, -1, args.recvcounts, Datatype::encode(args.datatype1), Datatype::encode(args.datatype2))); - if (name == "gatherV") { + if (name == "gatherv") { Colls::gatherv(send_buffer(args.send_size * args.datatype1->size()), args.send_size, args.datatype1, (rank == args.root) ? recv_buffer(args.recv_size_sum * args.datatype2->size()) : nullptr, args.recvcounts->data(), args.disps.data(), args.datatype2, args.root, MPI_COMM_WORLD); @@ -732,7 +732,7 @@ void smpi_replay_init(int* argc, char*** argv) xbt_replay_action_register("allToAllV", [](simgrid::xbt::ReplayAction& action) { simgrid::smpi::replay::AllToAllVAction().execute(action); }); xbt_replay_action_register("gather", [](simgrid::xbt::ReplayAction& action) { simgrid::smpi::replay::GatherAction("gather").execute(action); }); xbt_replay_action_register("scatter", [](simgrid::xbt::ReplayAction& action) { simgrid::smpi::replay::ScatterAction().execute(action); }); - xbt_replay_action_register("gatherV", [](simgrid::xbt::ReplayAction& action) { simgrid::smpi::replay::GatherVAction("gatherV").execute(action); }); + xbt_replay_action_register("gatherv", [](simgrid::xbt::ReplayAction& action) { simgrid::smpi::replay::GatherVAction("gatherv").execute(action); }); xbt_replay_action_register("scatterv", [](simgrid::xbt::ReplayAction& action) { simgrid::smpi::replay::ScatterVAction().execute(action); }); xbt_replay_action_register("allGather", [](simgrid::xbt::ReplayAction& action) { simgrid::smpi::replay::GatherAction("allGather").execute(action); }); xbt_replay_action_register("allgatherv", [](simgrid::xbt::ReplayAction& action) { simgrid::smpi::replay::GatherVAction("allgatherv").execute(action); }); -- 2.20.1