MVAPICH 0.9.5 and mpiexec

Anton Starikov A.Starikov at tnw.utwente.nl
Mon Apr 25 09:54:16 EDT 2005


Hi!

I figured out that MPIEXEC doesn't work with last release of MVAPICH 
(0.9.5).
There is two problems:
1) one more environment variable should be added.
2) communication with processes in ib_read_startup_ports must be fixed.


Here is the patch for the first problem:
---------------------------------------------------------
--- start_tasks.c.old   2005-04-22 16:27:56.000000000 +0200
+++ start_tasks.c       2005-04-25 15:29:23.355905823 +0200
@@ -423,6 +423,15 @@
         env_add_int("MPIRUN_PORT", master_port);
         env_add_int("MPIRUN_NPROCS", numtasks);
         env_add_int("MPIRUN_ID", atoi(jobid));  /* global job id */
+       env_add_int("MPIRUN_MPD", 0);
+       growstr_t *ibprocesses = growstr_init();
+       for (i=0; i<numtasks; i++)
+           growstr_printf(ibprocesses, "%s%s",
+                          nodes[tasks[i].node].name,":");
+       env_add("MPIRUN_PROCESSES", ibprocesses->s);
+       printf("%s\n",ibprocesses->s);
+       growstr_free(ibprocesses);
+
      }

      if (cl_args->comm == COMM_MPICH2_PMI) {
---------------------------------------------------------



On the second one I still work.
If somebody is fixing this already - let me know, to not do it twice.

Anton Starikov.



More information about the mpiexec mailing list