Add Info::get_mpi_vendor() function

This commit is contained in:
Richard Berger 2020-08-10 18:46:21 -04:00
parent 7d8dcb0fb0
commit 175a6c26a7
No known key found for this signature in database
GPG Key ID: A9E83994E0BA0CAB
2 changed files with 21 additions and 0 deletions

View File

@ -1243,6 +1243,26 @@ string Info::get_openmp_info()
#endif
}
string Info::get_mpi_vendor() {
#if defined(MPI_STUBS)
return "MPI STUBS";
#elif defined(OPEN_MPI)
return "Open MPI";
#elif define(MPICH_NAME)
return "MPICH";
#elif define(I_MPI_VERSION)
return "Intel MPI";
#elif define(PLATFORM_MPI)
return "Platform MPI";
#elif define(HP_MPI)
return "HP MPI";
#elif define(MSMPI_VER)
return "Microsoft MPI";
#else
return "Unknown";
#endif
}
string Info::get_mpi_info(int &major, int &minor)
{
int len;

View File

@ -48,6 +48,7 @@ class Info : protected Pointers {
static std::string get_os_info();
static std::string get_compiler_info();
static std::string get_openmp_info();
static std::string get_mpi_vendor();
static std::string get_mpi_info(int &, int &);
static std::string get_cxx_info();