Commit 74bbfeb1 authored by Roland Haas's avatar Roland Haas
Browse files

mpitar: identify ack'ing worker based on MPI_Status struct

this is a bit clearer than hard-coding the relation between the request
number and the worker it was sent to
parent 7424cd10
......@@ -214,7 +214,7 @@ void master(const char *out_fn, fileentries& entries)
for(int r = 0 ; count != MPI_UNDEFINED && r < count ; r++) {
int idx = recv_completed[r];
show_progress(off, size_t(recv_buffers[idx]), 0);
int w = idx / MAX_JOBS_IN_FLIGHT;
int w = status[r].MPI_SOURCE;
jobs_in_flight[w] -= 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment