[mpich2-commits] r7686 - mpich2/trunk/src/mpi/init

goodell at mcs.anl.gov goodell at mcs.anl.gov
Tue Jan 11 14:04:11 CST 2011


Author: goodell
Date: 2011-01-11 14:04:11 -0600 (Tue, 11 Jan 2011)
New Revision: 7686

Modified:
   mpich2/trunk/src/mpi/init/init.c
Log:
only create storage for MPIR_async_thread_initialized in libmpich.a

Prevents duplicate storage on platforms like darwin that don't support
weak symbols and therefore have two libraries in order to support the
PMPI profiling interface.  Previously, there was also a copy in
libpmpich.a, which contains the actual "MPI_" versions of the routines.

No reviewer.

Modified: mpich2/trunk/src/mpi/init/init.c
===================================================================
--- mpich2/trunk/src/mpi/init/init.c	2011-01-11 19:13:04 UTC (rev 7685)
+++ mpich2/trunk/src/mpi/init/init.c	2011-01-11 20:04:11 UTC (rev 7686)
@@ -28,9 +28,10 @@
 /* MPI_Fint MPIR_F_TRUE, MPIR_F_FALSE; */
 
 /* Any internal routines can go here.  Make them static if possible */
-#endif
 
+/* must go inside this #ifdef block to prevent duplicate storage on darwin */
 int MPIR_async_thread_initialized = 0;
+#endif
 
 #undef FUNCNAME
 #define FUNCNAME MPI_Init



More information about the mpich2-commits mailing list