Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SMPI: Use the amount of processes to malloc the process list, not the amount of hosts
[simgrid.git] / src / smpi / smpi_base.c
index 1fbeabe..1d619ba 100644 (file)
@@ -58,6 +58,7 @@ void smpi_process_init(int *argc, char***argv)
 
   /* get rank from command line, and remove it from argv */
   pdata->index = atoi( (*argv)[1] );
 
   /* get rank from command line, and remove it from argv */
   pdata->index = atoi( (*argv)[1] );
+  DEBUG1("I'm rank %d",pdata->index);
   if (*argc>2) {
          memmove((*argv)[1],(*argv)[2], sizeof(char*)* (*argc-2));
          (*argv)[ (*argc)-1] = NULL;
   if (*argc>2) {
          memmove((*argv)[1],(*argv)[2], sizeof(char*)* (*argc-2));
          (*argv)[ (*argc)-1] = NULL;