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

Detect known MPI vendors #136

Merged
merged 2 commits into from
Jan 28, 2025
Merged

Conversation

cwpearson
Copy link
Collaborator

Sets KOKKOSCOMM_MPI_IS_MPICH or KOKKOSCOMM_MPI_IS_OPENMPI in cmake and config.hpp depending on whether mpichversion or openmpi_info is next to mpiexec.

We can use this to enable specific tests / workarounds as needed.

@cwpearson cwpearson requested a review from dssgabriel January 27, 2025 19:39
@cwpearson cwpearson force-pushed the cmake/mpi-vendor branch 2 times, most recently from 0ccf149 to 52b89c2 Compare January 27, 2025 19:43
Sets KOKKOSCOMM_IMPL_MPI_IS_MPICH or KOKKOSCOMM_IMPL_MPI_IS_OPENMPI
in cmake and config.hpp depending on whether mpichversion or
openmpi_info is next to mpiexec.

Signed-off-by: Carl Pearson <[email protected]>
dssgabriel
dssgabriel previously approved these changes Jan 28, 2025
cmake/KokkosComm_config.hpp.in Show resolved Hide resolved
Copy link
Collaborator

@devreal devreal left a comment

Choose a reason for hiding this comment

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

I think there are more robust ways of figuring out the MPI implementation (like checking for certain macros known to be provided by vendors). That allows more fine-grain distinction between different MPICH flavors (Cray, Intel, vanilla). I guess that depends on what you want to do with this information in the end :)

cmake/mpi-vendor.cmake Outdated Show resolved Hide resolved
Co-authored-by: Joseph Schuchart <[email protected]>
@cwpearson
Copy link
Collaborator Author

Yeah I think we can refine this as-needed. Trying to get the basics in place without opening up a multi-hour can of worms before we need to.

@cwpearson cwpearson merged commit 1d5d090 into kokkos:develop Jan 28, 2025
8 checks passed
@cwpearson cwpearson deleted the cmake/mpi-vendor branch January 28, 2025 19:01
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.

4 participants