summaryrefslogtreecommitdiff
path: root/test cases/frameworks/17 mpi/main.cpp
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2017-07-31 15:38:26 -0400
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2017-08-04 20:07:08 -0400
commitedb260b4f4e79433f38bdda11bc84fa5ee56b080 (patch)
treed27b0f958319e46f5487b328019b34b704c1e809 /test cases/frameworks/17 mpi/main.cpp
parent4cbfb9a08dd8b89aaec7fffd4efbe3a542a67a3d (diff)
downloadmeson-edb260b4f4e79433f38bdda11bc84fa5ee56b080.tar.gz
Move MPI tests into frameworks.
This prevents them being cross-compiled (which wouldn't work without MPI cross-compilers) and disables Windows builds (will need to be fixed later.)
Diffstat (limited to 'test cases/frameworks/17 mpi/main.cpp')
-rw-r--r--test cases/frameworks/17 mpi/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/frameworks/17 mpi/main.cpp b/test cases/frameworks/17 mpi/main.cpp
new file mode 100644
index 000000000..0e0b62173
--- /dev/null
+++ b/test cases/frameworks/17 mpi/main.cpp
@@ -0,0 +1,11 @@
+#include <mpi.h>
+
+int main(int argc, char **argv)
+{
+ MPI::Init(argc, argv);
+ if (!MPI::Is_initialized()) {
+ printf("MPI did not initialize!\n");
+ return 1;
+ }
+ MPI::Finalize();
+}