mpich icon indicating copy to clipboard operation
mpich copied to clipboard

mpichversion: Adding feature string for GPU support for easy detection

Open yfguo opened this issue 1 year ago • 2 comments

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 avatar Nov 28 '24 05:11 yfguo

test:mpich/ch4/ofi

yfguo avatar Nov 28 '24 05:11 yfguo