Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI Examples] Add C-example for call location tracing.
[simgrid.git] / examples / smpi / trace_call_location / trace_call_location.c
diff --git a/examples/smpi/trace_call_location/trace_call_location.c b/examples/smpi/trace_call_location/trace_call_location.c
new file mode 100644 (file)
index 0000000..0491db5
--- /dev/null
@@ -0,0 +1,17 @@
+/* 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>
+
+/* test*/
+int main(int argc, char *argv[])
+{
+  MPI_Init(&argc, &argv);
+  MPI_Barrier (MPI_COMM_WORLD);
+  MPI_Finalize();
+  return 0;
+}