summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod/FindMPI/test_mpi.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-03-09 18:31:58 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-03-09 18:32:06 (GMT)
commit24c62ba7fefcd48cafec79385011cbd89be5d182 (patch)
tree798f2c628b33555c6109d1683d7e6b4f58279e0f /config/cmake_ext_mod/FindMPI/test_mpi.c
parent2a5d608f7bf5f99fb61898a331fde2ccc170117e (diff)
downloadhdf5-24c62ba7fefcd48cafec79385011cbd89be5d182.zip
hdf5-24c62ba7fefcd48cafec79385011cbd89be5d182.tar.gz
hdf5-24c62ba7fefcd48cafec79385011cbd89be5d182.tar.bz2
Change CMake min to 3.10
Diffstat (limited to 'config/cmake_ext_mod/FindMPI/test_mpi.c')
-rw-r--r--config/cmake_ext_mod/FindMPI/test_mpi.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/config/cmake_ext_mod/FindMPI/test_mpi.c b/config/cmake_ext_mod/FindMPI/test_mpi.c
deleted file mode 100644
index b8a308a..0000000
--- a/config/cmake_ext_mod/FindMPI/test_mpi.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <mpi.h>
-
-#ifdef __cplusplus
-#include <cstdio>
-#else
-#include <stdio.h>
-#endif
-
-#if defined(MPI_VERSION) && defined(MPI_SUBVERSION)
-const char mpiver_str[] = { 'I', 'N',
- 'F', 'O',
- ':', 'M',
- 'P', 'I',
- '-', 'V',
- 'E', 'R',
- '[', ('0' + MPI_VERSION),
- '.', ('0' + MPI_SUBVERSION),
- ']', '\0' };
-#endif
-
-int main(int argc, char* argv[])
-{
-#if defined(MPI_VERSION) && defined(MPI_SUBVERSION)
-#ifdef __cplusplus
- std::puts(mpiver_str);
-#else
- puts(mpiver_str);
-#endif
-#endif
-#ifdef TEST_MPI_MPICXX
- MPI::MPI_Init(&argc, &argv);
- MPI::MPI_Finalize();
-#else
- MPI_Init(&argc, &argv);
- MPI_Finalize();
-#endif
-}