1
1
Jeff Squyres 88c13adc8c openib: only set the memory hook if it is enabled
Instead of unconditionally setting the memory hook, only set it when
the memory hooks are both available and have been enabled (e.g.,
opal/mca/memory/linux has decided that it *can* be enabled, and when
the mpi_leave_pinned MCA param is set to 1, or is set to -1 and some
component requested the memory hooks be enabled).

If we set the memory hook when memory hooks are not enabled,
__malloc_hook will be NULL, which will cause problems when
btl_openib_malloc_hook() tries to invoke it.

Fixes open-mpi/ompi#638.
2015-06-12 20:11:47 -07:00
..
2015-06-10 15:10:57 +09:00
2015-05-28 08:38:10 -06:00
2015-06-10 14:23:25 +09:00
2015-05-08 09:48:51 +09:00
2015-05-08 09:48:51 +09:00
2015-05-28 08:38:09 -06:00
2015-05-08 09:48:51 +09:00