Skip to content
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

Merged
merged 6 commits into from
May 23, 2023
Merged

Develop.pcr #613

merged 6 commits into from
May 23, 2023

Conversation

rothpc
Copy link
Collaborator

@rothpc rothpc commented Apr 10, 2023

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.

Copy link
Collaborator

@cnpetra cnpetra left a 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;
Copy link
Collaborator

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()
{
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slight misalignment

@cnpetra cnpetra merged commit 8daf688 into develop May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants