-
Notifications
You must be signed in to change notification settings - Fork 308
ch4/xpmem: Support disabling mapped segment cache #7349
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
Open
raffenet
wants to merge
7
commits into
pmodels:main
Choose a base branch
from
raffenet:xpmem-changes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
We use this CVAR to control the initialization of XPMEM, so move it where it is most appropriate.
|
test:mpich/ch4/xpmem |
Use initialized state when deciding whether to use XPMEM. Avoid overwriting the value MPIR_CVAR_CH4_XPMEM_ENABLE, which could be modified during runtime by MPI_T.
Make init and finalize symmetrical. Avoid calling GAVL utilities directly in finalize.
These functions are closely related. Combine them in a single file for ease of maintenance. Make segment register and free private static functions.
b13e589 to
663255c
Compare
|
test:mpich/ch4/most |
|
test:mpich/ch4/most |
|
test:mpich/ch4/most |
|
test:mpich/ch4/most |
Implement search and insert functions for mapped cache segments. These will be used by the handle mapping function, and will make for easier targets when adding the ability to disable the segment cache.
There may situations where disabling the mapped segment cache is desirable. Allow a way to control usage at runtime.
When the mapped segment cache is disabled, unmap segments once we are done copying from them. Since we need access to the actual attached address, we store it in the handle during mapping. To achieve this, we pass the handle to map/unmap by reference rather than value to allow modification of its contents.
|
test:mpich/ch4/most |
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.
Pull Request Description
Cleanup and refactor portions of the XPMEM code to support disabling the mapped segment cache. The goal is to aid experimentation on systems with XPMEM to better understand the impact of the cache on application performance.
Author Checklist
Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
Commits are self-contained and do not do two things at once.
Commit message is of the form:
module: short descriptionCommit message explains what's in the commit.
Whitespace checker. Warnings test. Additional tests via comments.
For non-Argonne authors, check contribution agreement.
If necessary, request an explicit comment from your companies PR approval manager.