diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-11-01 20:06:46 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-11-01 20:06:46 (GMT) |
commit | 21874ce5c201b2be7305599434a156b9fbbcfc89 (patch) | |
tree | 64003c755967358ee575f73653c026f57ce0e4dc /config/cmake_ext_mod/FindMPI/libver_mpi.c | |
parent | f190509675e545bdda4e53d561c30f58a5f5ff4a (diff) | |
download | hdf5-21874ce5c201b2be7305599434a156b9fbbcfc89.zip hdf5-21874ce5c201b2be7305599434a156b9fbbcfc89.tar.gz hdf5-21874ce5c201b2be7305599434a156b9fbbcfc89.tar.bz2 |
Add back Find module and add support files
Diffstat (limited to 'config/cmake_ext_mod/FindMPI/libver_mpi.c')
-rw-r--r-- | config/cmake_ext_mod/FindMPI/libver_mpi.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config/cmake_ext_mod/FindMPI/libver_mpi.c b/config/cmake_ext_mod/FindMPI/libver_mpi.c new file mode 100644 index 0000000..be9d19d --- /dev/null +++ b/config/cmake_ext_mod/FindMPI/libver_mpi.c @@ -0,0 +1,19 @@ +#include <mpi.h> + +#ifdef __cplusplus +#include <cstdio> +#else +#include <stdio.h> +#endif + +int main(int argc, char* argv[]) +{ + char mpilibver_str[MPI_MAX_LIBRARY_VERSION_STRING]; + int mpilibver_len; + MPI_Get_library_version(mpilibver_str, &mpilibver_len); +#ifdef __cplusplus + std::puts(mpilibver_str); +#else + puts(mpilibver_str); +#endif +} |