Skip to content

Commit

Permalink
Using 'find' for MVAPICH warning instead of assuming its location
Browse files Browse the repository at this point in the history
  • Loading branch information
steiltre committed Oct 25, 2024
1 parent c3de3b7 commit 0223df7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/ygm/detail/comm.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ inline comm::comm(MPI_Comm mcomm)

inline void comm::comm_setup(MPI_Comm c) {
// Warn about MVAPICH
if (mpi_library().substr(0, 8) == "MVAPICH2") {
const auto mpi_details = mpi_library();
if (mpi_details.find("MVAPICH2") != mpi_details.npos) {
cerr0() << "YGM::COMM WARNING: YGM hangs when run with MVAPICH2 on certain "
"machines. Use at your own risk."
<< std::endl;
Expand Down

0 comments on commit 0223df7

Please sign in to comment.