-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop.pcr #613
Develop.pcr #613
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -88,32 +88,45 @@ namespace hiop | |||
int mpi_test_flag; MPI_Status mpi_status; | |||
int ierr = MPI_Test(&request_, &mpi_test_flag, &mpi_status); | |||
assert(MPI_SUCCESS == ierr); | |||
if (mpi_test_flag) { | |||
request_ = MPI_REQUEST_NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea to set it to null request and (sanity) check it later...
@@ -764,7 +788,7 @@ void hiopAlgPrimalDecomposition::set_local_accum(const std::string local_accum) | |||
|
|||
#ifdef HIOP_USE_MPI | |||
hiopSolveStatus hiopAlgPrimalDecomposition::run() | |||
{ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slight misalignment
This pull request addresses the problem of not completing non-blocking point-to-point communication operations. It is hypothesized that the lack of completing requests causes some communications libraries to run out of resources for large, long-running runs. The modifications in this pull request should ensure that any non-blocking operation that is posted will have a matching call to complete it (MPI_Wait or MPI_Test).
The modifications represented by this pull request are intentionally minimal and do not change the fundamental communication approach or implementation.