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

mpi/misc: Add support for GPU memory allocation kinds #6947

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

raffenet
Copy link
Contributor

@raffenet raffenet commented Mar 15, 2024

Pull Request Description

Draft implementation of https://github.com/mpi-forum/mem-alloc.

Author Checklist

  • Provide Description
    Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
  • Commits Follow Good Practice
    Commits are self-contained and do not do two things at once.
    Commit message is of the form: module: short description
    Commit message explains what's in the commit.
  • Passes All Tests
    Whitespace checker. Warnings test. Additional tests via comments.
  • Contribution Agreement
    For non-Argonne authors, check contribution agreement.
    If necessary, request an explicit comment from your companies PR approval manager.

There is a use-case for this function to be called during MPI init in
support the memory allocation kinds feature. Add an MPIR function which
bypasses the MPI initialized check.
Add support for querying GPU memory kinds as specified by the current
draft of the MPI Memory Allocation Kinds side
document (https://github.com/mpi-forum/mem-alloc).
With the addition of CUDA kinds as supported memory allocation kinds, we
need to tweak our verification logic slightly. As of today, unless
requested by the user, MPICH will always add GPU-related memory kinds at
the end of the supported string. Therefore we just check our expected
string against the beginning of the returned value using strncmp.
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.

None yet

1 participant