Commit dcf00b35 authored by Kenneth Raffenetti's avatar Kenneth Raffenetti
Browse files

set context mask depending on need for ICOMM_WORLD



Some devices may not require ICOMM_WORLD and could cause false
'context not freed' messages in debug mode.
Signed-off-by: default avatarHuiwei Lu <huiweilu@mcs.anl.gov>
parent a3e83057
...@@ -689,9 +689,14 @@ static void MPIR_Init_contextid(void) ...@@ -689,9 +689,14 @@ static void MPIR_Init_contextid(void)
for (i=1; i<MPIR_MAX_CONTEXT_MASK; i++) { for (i=1; i<MPIR_MAX_CONTEXT_MASK; i++) {
context_mask[i] = 0xFFFFFFFF; context_mask[i] = 0xFFFFFFFF;
} }
/* the first three values are already used (comm_world, comm_self, /* The first two values are already used (comm_world, comm_self).
and the internal-only copy of comm_world) */ The third value is also used for the internal-only copy of
context_mask[0] = 0xFFFFFFF8; comm_world, if needed by mpid. */
#ifdef MPID_NEEDS_ICOMM_WORLD
context_mask[0] = 0xFFFFFFF8;
#else
context_mask[0] = 0xFFFFFFFC;
#endif
initialize_context_mask = 0; initialize_context_mask = 0;
#ifdef MPICH_DEBUG_HANDLEALLOC #ifdef MPICH_DEBUG_HANDLEALLOC
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment