Commit a3dd1559 authored by David Goodell's avatar David Goodell
Browse files

[svn-r7914] bugfix: missing progress_start/end in r7827

Thanks to Joe Ratterman @ IBM for reporting this obvious bug.

Reviewed by buntinas@.
parent 4befad44
......@@ -104,6 +104,7 @@ int MPIR_Waitall_impl(int count, MPI_Request array_of_requests[],
* Possible variation: permit request_ptrs[i]==NULL at the cost of an
* additional branch inside the for-loop below. */
if (optimize) {
MPID_Progress_start(&progress_state);
for (i = 0; i < count; ++i) {
while (!MPID_Request_is_complete(request_ptrs[i])) {
mpi_errno = MPID_Progress_wait(&progress_state);
......@@ -120,6 +121,8 @@ int MPIR_Waitall_impl(int count, MPI_Request array_of_requests[],
if (mpi_errno) MPIU_ERR_POP(mpi_errno);
}
MPID_Progress_end(&progress_state);
goto fn_exit;
}
......
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