Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ooooops
[simgrid.git] / src / smpi / smpi_main.c
diff --git a/src/smpi/smpi_main.c b/src/smpi/smpi_main.c
new file mode 100644 (file)
index 0000000..d194156
--- /dev/null
@@ -0,0 +1,19 @@
+/* Copyright (c) 2007-2015. 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 <stdlib.h>
+
+#include <smpi/smpi.h>
+
+int main(int argc, char **argv)
+{
+  if (argc < 2) {
+    fprintf(stderr, "Missing SMPI program to launch\n");
+    exit(1);
+  }
+  return smpi_main(argv[1], argc - 1, argv + 1);
+}