]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/smpi_global.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
gettimeofday also needs to update benchmark info.
[simgrid.git] / src / smpi / smpi_global.c
index 1b98966471d9565447da89749bfe2c08bc50c32e..ad839cbbf574a651ec088c233a9fd60f55027b54 100644 (file)
@@ -5,6 +5,7 @@
   * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include <stdint.h>
+#include <stdio.h>
 #include <stdlib.h>
 
 #include "private.h"
@@ -98,6 +99,7 @@ int smpi_global_size(void) {
    char* value = getenv("SMPI_GLOBAL_SIZE");
 
    if(!value) {
+      fprintf(stderr, "Please set env var SMPI_GLOBAL_SIZE to expected number of processes.\n");
       abort();
    }
    return atoi(value);