Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Unlike errors on communicators and windows, the default behavior for files is to...
[simgrid.git] / src / smpi / smpi_main.c
1 /* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include <stdio.h>
7 #include <stdlib.h>
8
9 #include <smpi/smpi.h>
10
11 int main(int argc, char **argv)
12 {
13   if (getenv("SMPI_PRETEND_CC") != NULL) {
14     /* Hack to ensure that smpicc can pretend to be a simple compiler. Particularly handy to pass it to the
15      * configuration tools. This one is used with dlopen privatization. */
16     return 0;
17   }
18
19   if (argc < 2) {
20     fprintf(stderr, "Usage: smpimain <program to launch>\n");
21     exit(1);
22   }
23   return smpi_main(argv[1], argc - 1, argv + 1);
24 }