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.
Этот коммит содержится в:
родитель
1802aabf1a
Коммит
537e7380b1
@ -121,6 +121,7 @@ static int ompi_comm_world_thread_level_mult=0;
|
|||||||
|
|
||||||
int ompi_comm_cid_init (void)
|
int ompi_comm_cid_init (void)
|
||||||
{
|
{
|
||||||
|
#if OMPI_ENABLE_THREAD_MULTIPLE
|
||||||
ompi_proc_t **procs, *thisproc;
|
ompi_proc_t **procs, *thisproc;
|
||||||
uint8_t thread_level;
|
uint8_t thread_level;
|
||||||
void *tlpointer;
|
void *tlpointer;
|
||||||
@ -154,7 +155,9 @@ int ompi_comm_cid_init (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(procs);
|
free(procs);
|
||||||
|
#else
|
||||||
|
ompi_comm_world_thread_level_mult = 0; // silence compiler warning if not used
|
||||||
|
#endif
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user