1
1

As per the discussion on the devel telecon, do not compute ompi_comm_world_thread_level_mult if thread multiple is disabled. We aren't using the value anyway, but we will leave the current code in-place until we understand if it is needed or not.

This commit was SVN r29080.
Этот коммит содержится в:
Ralph Castain 2013-08-28 17:44:04 +00:00
родитель 1802aabf1a
Коммит 537e7380b1

Просмотреть файл

@ -121,6 +121,7 @@ static int ompi_comm_world_thread_level_mult=0;
int ompi_comm_cid_init (void)
{
#if OMPI_ENABLE_THREAD_MULTIPLE
ompi_proc_t **procs, *thisproc;
uint8_t thread_level;
void *tlpointer;
@ -154,7 +155,9 @@ int ompi_comm_cid_init (void)
}
}
free(procs);
#else
ompi_comm_world_thread_level_mult = 0; // silence compiler warning if not used
#endif
return OMPI_SUCCESS;
}