Fix MPI segfaults during MPI_Init() with the MX BTL and MTL.
Thanks to Scott Atchley for the patch. This commit was SVN r23713.
Этот коммит содержится в:
родитель
2b2b29a6d4
Коммит
c3a653ebb3
@ -64,6 +64,7 @@ ompi_common_mx_initialize(void)
|
||||
- we have both FREE and MUNMAP support
|
||||
- we have MUNMAP support and the linux mallopt */
|
||||
value = opal_mem_hooks_support_level();
|
||||
mpool_resources.regcache_clean = mx__regcache_clean;
|
||||
if ((value & (OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT))
|
||||
== (OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT)) {
|
||||
index = mca_base_param_find("mpi", NULL, "leave_pinned");
|
||||
@ -100,7 +101,6 @@ ompi_common_mx_initialize(void)
|
||||
return OMPI_ERR_NOT_AVAILABLE;
|
||||
}
|
||||
ompi_common_mx_available = 1;
|
||||
mpool_resources.regcache_clean = mx__regcache_clean;
|
||||
} else if (ompi_common_mx_available < 0) {
|
||||
ret = OMPI_ERR_NOT_AVAILABLE;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user