1
1

"If" statement wrapping with #if MEMORY_LINUX_UMMUNOTIFY in order to prevent ptmalloc2 hooks disabling in case if OMPI was not configured with ummunotify support.

This commit was SVN r29720.
Этот коммит содержится в:
Vasily Filipov 2013-11-19 07:00:21 +00:00
родитель 24a7e7aa34
Коммит ae8c826527

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

@ -762,6 +762,7 @@ void opal_memory_linux_malloc_init_hook(void)
return;
}
#if MEMORY_LINUX_UMMUNOTIFY
/* Next, check if ummunotify is present on the system. If it is,
then we don't need to do the following ptmalloc2 hacks.
open/mmap on the device may fail during init, but if /dev/ummunotify
@ -770,6 +771,7 @@ void opal_memory_linux_malloc_init_hook(void)
if (access("/dev/ummunotify", F_OK) == 0) {
return;
}
#endif
/* Yes, checking for an MPI MCA parameter here is an abstraction
violation. Cope. Yes, even checking for *any* MCA parameter