Ticket #9401: nonblocking.patch

File nonblocking.patch, 801 bytes (added by Jeremiah Willcock, 9 years ago)

Patch attempting to fix bug

  • boost/mpi/nonblocking.hpp

     
    6060  while (true) {
    6161    // Check if we have found a completed request. If so, return it.
    6262    if (current->m_requests[0] != MPI_REQUEST_NULL &&
    63         current->m_requests[1] != MPI_REQUEST_NULL &&
    64         optional<status> result = current->test())
    65       return std::make_pair(*result, current);
     63        current->m_requests[1] != MPI_REQUEST_NULL)
     64      if (optional<status> result = current->test())
     65        return std::make_pair(*result, current);
    6666
    6767    // Check if this request (and all others before it) are "trivial"
    6868    // requests, e.g., they can be represented with a single