Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
factoring cmake
[simgrid.git] / examples / smpi / trace_simple / trace_simple.c
diff --git a/examples/smpi/trace_simple/trace_simple.c b/examples/smpi/trace_simple/trace_simple.c
new file mode 100644 (file)
index 0000000..027c5f8
--- /dev/null
@@ -0,0 +1,16 @@
+/* Copyright (c) 2012, 2014. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#include <stdio.h>
+#include <mpi.h>
+
+int main(int argc, char *argv[])
+{
+  MPI_Init(&argc, &argv);
+  MPI_Barrier (MPI_COMM_WORLD);
+  MPI_Finalize();
+  return 0;
+}