Disable mpi on version mismatch (#1989)

This commit is contained in:
Angelos Katharopoulos 2025-03-21 13:36:26 -07:00 committed by GitHub
parent 2a980a76ce
commit 25814a9458
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,6 +69,7 @@ struct MPIWrapper {
if (version.find("Open MPI") == std::string::npos) { if (version.find("Open MPI") == std::string::npos) {
std::cerr << "[mpi] MPI found but it does not appear to be Open MPI." std::cerr << "[mpi] MPI found but it does not appear to be Open MPI."
<< "MLX requires Open MPI but this is " << version << std::endl; << "MLX requires Open MPI but this is " << version << std::endl;
libmpi_handle_ = nullptr;
return; return;
} }