Repository navigation
Check if MPI is finalized before freeing MPI types - #720
Open
jayeshkrishna wants to merge 1 commit into
Open
jayeshkrishna wants to merge 1 commit into
jayeshkrishna wants to merge 1 commit into
Conversation
Add an explicit check to see if MPI is finalized or not before freeing MPI types associated with an I/O decomposition.
Contributor
Author
|
This change provides a better error message to the user instead of the generic error message from the MPI library |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the change guarding MPI datatype cleanup after MPI finalization.
No open issues 🎉
What changed in this PR
This PR makes SCORPIO’s I/O decomposition cleanup skip MPI datatype frees
after MPI has been finalized.
Changes:
- Check
MPI_Finalizedbefore callingMPI_Type_free. - Warn when cleanup skips a datatype, advising users to finalize all I/O
systems withPIOc_finalize.
| File | Description |
|---|---|
src/clib/core/spio_iodesc_utils.cpp |
Guard datatype cleanup after MPI finalization and add a resource-cleanup warning. |
Review effort: Balanced
jayeshkrishna
marked this pull request as ready for review
November 12, 2026 18:56
amametjanov
approved these changes
Nov 12, 2026
jayeshkrishna
added a commit
that referenced
this pull request
Nov 12, 2026
…elop (PR #720) Add an explicit check to see if MPI is finalized or not before freeing MPI types associated with an I/O decomposition. * jayeshkrishna/check_mpi_init_before_type_free: Check if MPI is finalized before freeing MPI types
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an explicit check to see if MPI is finalized or not
before freeing MPI types associated with an I/O
decomposition.