"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/mpi_t/mpit_initthread.c" between
mvapich2-2.3.1.tar.gz and mvapich2-2.3.2.tar.gz

About: MVAPICH2 offers "MPI over InfiniBand, 10GigE/iWARP and RDMA over Converged Ethernet (RoCE)" to achieve best performance, scalability and fault tolerance for high-end computing systems and servers.

mpit_initthread.c  (mvapich2-2.3.1):mpit_initthread.c  (mvapich2-2.3.2)
skipping to change at line 38 skipping to change at line 38
int MPI_T_init_thread(int required, int *provided) __attribute__((weak,alias("PM PI_T_init_thread"))); int MPI_T_init_thread(int required, int *provided) __attribute__((weak,alias("PM PI_T_init_thread")));
#endif #endif
/* -- End Profiling Symbol Block */ /* -- End Profiling Symbol Block */
/* Define MPICH_MPI_FROM_PMPI if weak symbols are not supported to build /* Define MPICH_MPI_FROM_PMPI if weak symbols are not supported to build
the MPI routines */ the MPI routines */
#ifndef MPICH_MPI_FROM_PMPI #ifndef MPICH_MPI_FROM_PMPI
#undef MPI_T_init_thread #undef MPI_T_init_thread
#define MPI_T_init_thread PMPI_T_init_thread #define MPI_T_init_thread PMPI_T_init_thread
#ifdef ENABLE_PVAR_MEM
int mv2_enable_pvar_mem = 0;
#endif
/* any non-MPI functions go here, especially non-static ones */ /* any non-MPI functions go here, especially non-static ones */
static inline void MPIR_T_enum_env_init(void) static inline void MPIR_T_enum_env_init(void)
{ {
static const UT_icd enum_table_entry_icd = static const UT_icd enum_table_entry_icd =
{sizeof(MPIR_T_enum_t), NULL, NULL, NULL}; {sizeof(MPIR_T_enum_t), NULL, NULL, NULL};
utarray_new(enum_table, &enum_table_entry_icd); utarray_new(enum_table, &enum_table_entry_icd);
} }
static inline void MPIR_T_cat_env_init(void) static inline void MPIR_T_cat_env_init(void)
skipping to change at line 77 skipping to change at line 81
static inline void MPIR_T_pvar_env_init(void) static inline void MPIR_T_pvar_env_init(void)
{ {
int i; int i;
static const UT_icd pvar_table_entry_icd = static const UT_icd pvar_table_entry_icd =
{sizeof(pvar_table_entry_t), NULL, NULL, NULL}; {sizeof(pvar_table_entry_t), NULL, NULL, NULL};
utarray_new(pvar_table, &pvar_table_entry_icd); utarray_new(pvar_table, &pvar_table_entry_icd);
for (i = 0; i < MPIR_T_PVAR_CLASS_NUMBER; i++) { for (i = 0; i < MPIR_T_PVAR_CLASS_NUMBER; i++) {
pvar_hashs[i] = NULL; pvar_hashs[i] = NULL;
} }
#ifdef ENABLE_PVAR_MEM
const char* value;
if((value = getenv("MV2_ENABLE_PVAR_MEM"))!=NULL) {
mv2_enable_pvar_mem = !!atoi(value);
}
#endif
} }
void MPIR_T_env_init(void) void MPIR_T_env_init(void)
{ {
static int initialized = FALSE; static int initialized = FALSE;
if (!initialized) { if (!initialized) {
initialized = TRUE; initialized = TRUE;
MPIR_T_enum_env_init(); MPIR_T_enum_env_init();
MPIR_T_cat_env_init(); MPIR_T_cat_env_init();
MPIR_T_cvar_env_init(); MPIR_T_cvar_env_init();
MPIR_T_pvar_env_init(); MPIR_T_pvar_env_init();
#ifdef _OSU_MVAPICH_ #ifdef _OSU_MVAPICH_
MPIT_MEM_REGISTER_PVARS(); #if ENABLE_PVAR_MEM
if(mv2_enable_pvar_mem) {
MPIT_MEM_REGISTER_PVARS();
}
#endif /* ENABLE_PVAR_MEM */
MPIT_REGISTER_MV2_VARIABLES(); MPIT_REGISTER_MV2_VARIABLES();
#endif #endif
} }
} }
#endif /* MPICH_MPI_FROM_PMPI */ #endif /* MPICH_MPI_FROM_PMPI */
#undef FUNCNAME #undef FUNCNAME
#define FUNCNAME MPI_T_init_thread #define FUNCNAME MPI_T_init_thread
#undef FCNAME #undef FCNAME
 End of changes. 3 change blocks. 
1 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)