[mpich2-commits] r3993 - mpich2/trunk/src/pm/hydra/launcher/mpiexec

balaji at mcs.anl.gov balaji at mcs.anl.gov
Mon Mar 9 23:30:38 CDT 2009


Author: balaji
Date: 2009-03-09 23:30:38 -0500 (Mon, 09 Mar 2009)
New Revision: 3993

Modified:
   mpich2/trunk/src/pm/hydra/launcher/mpiexec/utils.c
Log:
Make using the local host as the default option if nothing else is given.

Modified: mpich2/trunk/src/pm/hydra/launcher/mpiexec/utils.c
===================================================================
--- mpich2/trunk/src/pm/hydra/launcher/mpiexec/utils.c	2009-03-10 04:26:16 UTC (rev 3992)
+++ mpich2/trunk/src/pm/hydra/launcher/mpiexec/utils.c	2009-03-10 04:30:38 UTC (rev 3993)
@@ -396,17 +396,12 @@
      * We use the following priority order to specify the host file:
      *    1. Specified to mpiexec using -f
      *    2. Specified through the environment HYDRA_HOST_FILE
-     *    3. Specified through the environment HYDRA_USE_LOCALHOST
+     *    3. If nothing is given, we use the local host
      */
     if (handle.host_file == NULL && getenv("HYDRA_HOST_FILE"))
         handle.host_file = MPIU_Strdup(getenv("HYDRA_HOST_FILE"));
-    if (handle.host_file == NULL && getenv("HYDRA_USE_LOCALHOST"))
+    if (handle.host_file == NULL)
         handle.host_file = MPIU_Strdup("HYDRA_USE_LOCALHOST");
-    if (handle.host_file == NULL) {
-        HYDU_Error_printf("Host file not specified\n");
-        status = HYD_INTERNAL_ERROR;
-        goto fn_fail;
-    }
 
     proc_params = handle.proc_params;
     while (proc_params) {



More information about the mpich2-commits mailing list