[rocprofiler-systems] Fix MPI recv_data calculation (#2694)

Fix incorrect `mpi_recv` calculation. It was using `_send_size` instead of `_recv_size` for `mpi_recv`.
This commit is contained in:
Kian Cossettini
2026-01-20 16:17:22 -05:00
committed by GitHub
orang tua db792fac37
melakukan 7c9361190b
@@ -387,7 +387,7 @@ comm_data::audit(const gotcha_data& _data, audit::incoming, const void*, int sen
{
cache_comm_data_events<mpi_send>(0, sendcount * _send_size);
cache_comm_data_events<mpi_recv>(0, recvcount * _send_size);
cache_comm_data_events<mpi_recv>(0, recvcount * _recv_size);
}
if(rocprofsys::get_use_timemory())
@@ -437,7 +437,7 @@ comm_data::audit(const gotcha_data& _data, audit::incoming, const void*, int sen
{
cache_comm_data_events<mpi_send>(0, sendcount * _send_size);
cache_comm_data_events<mpi_recv>(0, recvcount * _send_size);
cache_comm_data_events<mpi_recv>(0, recvcount * _recv_size);
}
if(rocprofsys::get_use_timemory())
@@ -830,9 +830,6 @@ comm_data::audit(const gotcha_data& _data, audit::incoming, const void*, size_t
ROCPROFSYS_CI_THROW(true, "RCCL function not handled: %s", _data.tool_id.c_str());
}
if(get_use_perfetto()) write_perfetto_counter_track<rccl_recv>(count * _size);
if(get_use_rocpd()) rocpd_process_cpu_usage_events<rccl_recv>(0, count * _size);
if(rocprofsys::get_use_timemory())
{
auto _name = std::string_view{ _data.tool_id };