CHECK_REQUEST(2)
smpi_bench_end();
- int rank = simgrid::s4u::this_actor::get_pid();
- TRACE_smpi_comm_in(rank, request == MPI_REQUEST_IGNORED ? "PMPI_Barrier" : "PMPI_Ibarrier",
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
+ TRACE_smpi_comm_in(pid, request == MPI_REQUEST_IGNORED ? "PMPI_Barrier" : "PMPI_Ibarrier",
new simgrid::instr::NoOpTIData(request == MPI_REQUEST_IGNORED ? "barrier" : "ibarrier"));
if (request == MPI_REQUEST_IGNORED) {
simgrid::smpi::colls::barrier(comm);
} else
simgrid::smpi::colls::ibarrier(comm, request);
- TRACE_smpi_comm_out(rank);
+ TRACE_smpi_comm_out(pid);
smpi_bench_begin();
return MPI_SUCCESS;
}
CHECK_REQUEST(6)
smpi_bench_end();
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
TRACE_smpi_comm_in(pid, request == MPI_REQUEST_IGNORED ? "PMPI_Bcast" : "PMPI_Ibcast",
new simgrid::instr::CollTIData(request == MPI_REQUEST_IGNORED ? "bcast" : "ibcast", root, -1.0,
datatype->is_replayable() ? count : count * datatype->size(), -1,
smpi_bench_end();
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
TRACE_smpi_comm_in(pid, request == MPI_REQUEST_IGNORED ? "PMPI_Gather" : "PMPI_Igather",
new simgrid::instr::CollTIData(
real_sendtype = recvtype;
}
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
int dt_size_recv = recvtype->is_replayable() ? 1 : recvtype->size();
auto trace_recvcounts = std::make_shared<std::vector<int>>();
smpi_bench_end();
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
TRACE_smpi_comm_in(pid, request == MPI_REQUEST_IGNORED ? "PMPI_Allgather" : "PMPI_Iallggather",
new simgrid::instr::CollTIData(
sendcount = recvcounts[comm->rank()];
sendtype = recvtype;
}
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
int dt_size_recv = recvtype->is_replayable() ? 1 : recvtype->size();
auto trace_recvcounts = std::make_shared<std::vector<int>>();
smpi_bench_end();
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
TRACE_smpi_comm_in(pid, request == MPI_REQUEST_IGNORED ? "PMPI_Scatter" : "PMPI_Iscatter",
new simgrid::instr::CollTIData(
smpi_bench_end();
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
int dt_size_send = sendtype->is_replayable() ? 1 : sendtype->size();
auto trace_sendcounts = std::make_shared<std::vector<int>>();
CHECK_REQUEST(8)
smpi_bench_end();
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
TRACE_smpi_comm_in(pid, request == MPI_REQUEST_IGNORED ? "PMPI_Reduce" : "PMPI_Ireduce",
new simgrid::instr::CollTIData(request == MPI_REQUEST_IGNORED ? "reduce" : "ireduce", root, 0,
std::vector<unsigned char> tmp_sendbuf;
const void* real_sendbuf = smpi_get_in_place_buf(sendbuf, recvbuf, tmp_sendbuf, count, datatype);
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
TRACE_smpi_comm_in(pid, request == MPI_REQUEST_IGNORED ? "PMPI_Allreduce" : "PMPI_Iallreduce",
new simgrid::instr::CollTIData(request == MPI_REQUEST_IGNORED ? "allreduce" : "iallreduce", -1, 0,
CHECK_OP(5, op, datatype)
smpi_bench_end();
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
std::vector<unsigned char> tmp_sendbuf;
const void* real_sendbuf = smpi_get_in_place_buf(sendbuf, recvbuf, tmp_sendbuf, count, datatype);
CHECK_OP(5, op, datatype)
smpi_bench_end();
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
std::vector<unsigned char> tmp_sendbuf;
const void* real_sendbuf = smpi_get_in_place_buf(sendbuf, recvbuf, tmp_sendbuf, count, datatype);
}
smpi_bench_end();
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
auto trace_recvcounts = std::make_shared<std::vector<int>>();
int dt_send_size = datatype->is_replayable() ? 1 : datatype->size();
int totalcount = 0;
smpi_bench_end();
int count = comm->size();
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
int dt_send_size = datatype->is_replayable() ? 1 : datatype->size();
auto trace_recvcounts = std::make_shared<std::vector<int>>(recvcount * dt_send_size); // copy data to avoid bad free
std::vector<unsigned char> tmp_sendbuf;
CHECK_BUFFER(4, recvbuf, recvcount, recvtype)
CHECK_REQUEST(8)
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
int real_sendcount = sendcount;
MPI_Datatype real_sendtype = sendtype;
CHECK_NULL(7, MPI_ERR_ARG, recvdispls)
CHECK_REQUEST(10)
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
int size = comm->size();
for (int i = 0; i < size; i++) {
if(sendbuf != MPI_IN_PLACE){
CHECK_NULL(7, MPI_ERR_ARG, recvdispls)
CHECK_NULL(8, MPI_ERR_TYPE, recvtypes)
CHECK_REQUEST(10)
- int pid = simgrid::s4u::this_actor::get_pid();
+ aid_t pid = simgrid::s4u::this_actor::get_pid();
int size = comm->size();
for (int i = 0; i < size; i++) {
if(sendbuf != MPI_IN_PLACE){