[mpich2-commits] r6612 - mpich2/trunk/src/util/multichannel

jayesh at mcs.anl.gov jayesh at mcs.anl.gov
Mon May 3 13:13:09 CDT 2010


Author: jayesh
Date: 2010-05-03 13:13:09 -0500 (Mon, 03 May 2010)
New Revision: 6612

Modified:
   mpich2/trunk/src/util/multichannel/mpi.c
Log:
Make nemesis the default channel on windows

Modified: mpich2/trunk/src/util/multichannel/mpi.c
===================================================================
--- mpich2/trunk/src/util/multichannel/mpi.c	2010-05-03 15:38:32 UTC (rev 6611)
+++ mpich2/trunk/src/util/multichannel/mpi.c	2010-05-03 18:13:09 UTC (rev 6612)
@@ -59,16 +59,23 @@
 #define MPI_ENV_CHANNEL_NAME      "MPICH2_CHANNEL"
 #define MPI_ENV_MPIWRAP_DLL_NAME  "MPI_WRAP_DLL_NAME"
 #ifdef _DEBUG
-#define MPI_DEFAULT_DLL_NAME      "mpich2d.dll"
+#define MPI_DEFAULT_DLL_NAME      "mpich2nemesisd.dll"
 #define MPI_DEFAULT_WRAP_DLL_NAME "mpich2mped.dll"
 #define DLL_FORMAT_STRING         "mpich2%sd.dll"
 #else
-#define MPI_DEFAULT_DLL_NAME      "mpich2.dll"
+#define MPI_DEFAULT_DLL_NAME      "mpich2nemesis.dll"
 #define MPI_DEFAULT_WRAP_DLL_NAME "mpich2mpe.dll"
 #define DLL_FORMAT_STRING         "mpich2%s.dll"
 #endif
 #define MAX_DLL_NAME              100
 
+/* FIXME: Remove dlls without a channel token string */
+#ifdef _DEBUG
+#define MPI_SOCK_CHANNEL_DLL_NAME   "mpich2d.dll"
+#else
+#define MPI_SOCK_CHANNEL_DLL_NAME   "mpich2.dll"
+#endif
+
 MPIU_DLL_SPEC MPI_Fint *MPI_F_STATUS_IGNORE = 0;
 MPIU_DLL_SPEC MPI_Fint *MPI_F_STATUSES_IGNORE = 0;
 
@@ -1749,6 +1756,12 @@
 		MPIU_Snprintf(name, MAX_DLL_NAME, DLL_FORMAT_STRING, channel);
 		dll_name = name;
 	    }
+        else
+        {
+            /* FIXME: Get rid of dlls without a channel substring in the name */
+    		MPIU_Snprintf(name, MAX_DLL_NAME, "%s", MPI_SOCK_CHANNEL_DLL_NAME);
+	    	dll_name = name;
+        }
 	}
 	/* no dll or channel specified so use the default */
 	if (!dll_name)



More information about the mpich2-commits mailing list