1
1

Fix MPI segfaults during MPI_Init() with the MX BTL and MTL.

Thanks to Scott Atchley for the patch.

This commit was SVN r23713.
Этот коммит содержится в:
Abhishek Kulkarni 2010-09-03 12:38:14 +00:00
родитель 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;
}