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

mpichversion: Adding feature string for GPU support for easy detection #7226

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yfguo
Copy link
Contributor

@yfguo yfguo commented Nov 28, 2024

Pull Request Description

This PR add new feature strings to mpichversion for the GPU support. MPICH built with CUDA, HIP or ZE support will show cuda, hip or ze in the MPICH Features of mpichversion. This allow external tools to easily check for GPU support of the library.

This PR also change the configure of MPICH test suite to detect if the MPICH library passed in --with-mpi= actually have GPU support before checking the availability of corresponding GPU libraries. Previously, the configure of the test suite will check and configure for GPU support even if the MPI does not support GPU (never checked). This leads to failure on sunspot with CPU-only MPICH build. Because ZE library is always present, the test suite will be configured with ZE support while a CPU-only MPICH is provided. The benchmark will failed at runtime due to unable to load libze_loader.so.

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.

@yfguo yfguo requested a review from hzhou November 28, 2024 05:26
@yfguo
Copy link
Contributor Author

yfguo commented Nov 28, 2024

test:mpich/ch4/ofi

with_ze=$(grep 'MPICH configure:' conftest.output | sed -n 's/.*--with-ze=\([^ ]*\).*/\1/p')
AC_MSG_NOTICE([Detected MPICH with ZE support])
fi

Copy link
Contributor

Choose a reason for hiding this comment

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

Will this prevent the testsuite from working with third-party MPI?

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