We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 729468a + 3cf5004 commit a99747fCopy full SHA for a99747f
ompi/request/req_wait.c
@@ -243,7 +243,7 @@ int ompi_request_default_wait_all( size_t count,
243
continue;
244
}
245
246
- if (!OPAL_ATOMIC_COMPARE_EXCHANGE_STRONG_PTR(&request->req_complete, &_tmp_ptr, &sync)) {
+ if (REQUEST_COMPLETE(request) || !OPAL_ATOMIC_COMPARE_EXCHANGE_STRONG_PTR(&request->req_complete, &_tmp_ptr, &sync)) {
247
if( OPAL_LIKELY( REQUEST_COMPLETE(request) ) ) {
248
if( OPAL_UNLIKELY( MPI_SUCCESS != request->req_status.MPI_ERROR ) ) {
249
failed++;
0 commit comments