Open matzeri opened 7 years ago
@matzeri also posted more on the thread here: https://www.mail-archive.com/devel@lists.open-mpi.org/msg20390.html
@ggouaillardet sent a patch on 31 Oct 2017 to see if it would help:
diff -ruN orig/openmpi-2.1.2/opal/mca/memory/patcher/memory_patcher_component.c openmpi-2.1.2/opal/mca/memory/patcher/memory_patcher_component.c
--- orig/openmpi-2.1.2/opal/mca/memory/patcher/memory_patcher_component.c 2017-08-11 01:15:56.000000000 +0900
+++ openmpi-2.1.2/opal/mca/memory/patcher/memory_patcher_component.c 2017-10-31 16:36:21.266989000 +0900
@@ -152,6 +152,7 @@
#endif
+#if defined (SYS_munmap)
static int (*original_munmap) (void *, size_t);
static int _intercept_munmap(void *start, size_t length)
@@ -177,6 +178,7 @@
OPAL_PATCHER_END;
return result;
}
+#endif
#if defined (SYS_mremap)
@@ -484,10 +486,12 @@
}
#endif
+#if defined (SYS_munmap)
rc = opal_patcher->patch_symbol ("munmap", (uintptr_t)intercept_munmap, (uintptr_t *) &original_munmap);
if (OPAL_SUCCESS != rc) {
return rc;
}
+#endif
#if defined (SYS_mremap)
rc = opal_patcher->patch_symbol ("mremap",(uintptr_t)intercept_mremap, (uintptr_t *) &original_mremap);
Version 2.1.2 The configuration test at opal/mca/memory/patcher/configure.m4 is incomplete and the patcher is selected also when all tests fail