Commit f38b431b authored by Roland Haas's avatar Roland Haas
Browse files

mpitar: fix difference between MPI_STATUS_IGNORE and MPI_STATUSES_IGNORE

they do not have to be the same:
https://www.mcs.anl.gov/research/projects/mpi/mpi-standard/mpi-report-2.0/node47.htm
parent 74bbfeb1
......@@ -203,7 +203,7 @@ void master(const char *out_fn, fileentries& entries)
int dummy1, dummy2;
timer_master_wait.start(__LINE__);
MPI_Testany((int)send_requests.size(), &send_requests[0], &dummy1, &dummy2,
MPI_STATUS_IGNORE);
MPI_STATUSES_IGNORE);
/* check for ack's of workers */
int count;
......@@ -275,8 +275,8 @@ void master(const char *out_fn, fileentries& entries)
/* done, wait for everything to settle down */
timer_master_wait.start(__LINE__);
MPI_Waitall((int)send_requests.size(), &send_requests[0], MPI_STATUS_IGNORE);
MPI_Waitall((int)recv_requests.size(), &recv_requests[0], MPI_STATUS_IGNORE);
MPI_Waitall((int)send_requests.size(), &send_requests[0], MPI_STATUSES_IGNORE);
MPI_Waitall((int)recv_requests.size(), &recv_requests[0], MPI_STATUSES_IGNORE);
printf("All communication finished in master\n");
timer_master_wait.stop(__LINE__);
......@@ -470,7 +470,7 @@ static int find_unused_request(int count, MPI_Request *request)
}
timer_master_wait.start(__LINE__);
MPI_Testany(count, request, &idx, &flag, MPI_STATUS_IGNORE);
MPI_Testany(count, request, &idx, &flag, MPI_STATUSES_IGNORE);
timer_master_wait.stop(__LINE__);
return flag ? idx : -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