|
19 | 19 | * Copyright (c) 2011-2015 NVIDIA Corporation. All rights reserved. |
20 | 20 | * Copyright (c) 2012 Oak Ridge National Laboratory. All rights reserved |
21 | 21 | * Copyright (c) 2013-2015 Intel, Inc. All rights reserved |
22 | | - * Copyright (c) 2014-2015 Research Organization for Information Science |
| 22 | + * Copyright (c) 2014-2016 Research Organization for Information Science |
23 | 23 | * and Technology (RIST). All rights reserved. |
24 | 24 | * Copyright (c) 2014 Bull SAS. All rights reserved. |
25 | 25 | * $COPYRIGHT$ |
|
42 | 42 | #include <fcntl.h> |
43 | 43 | #include <stdlib.h> |
44 | 44 | #include <stddef.h> |
45 | | -#if MEMORY_LINUX_MALLOC_ALIGN_ENABLED |
46 | | -/* |
47 | | - * The include of malloc.h below breaks abstractions in OMPI (by |
48 | | - * directly including a header file from another component), but has |
49 | | - * been ruled "ok" because the openib component is only supported on |
50 | | - * Linux. |
51 | | - * |
52 | | - * The malloc hooks in newer glibc were deprecated, including stock |
53 | | - * malloc.h causes compilation warnings. Instead, we use the internal |
54 | | - * linux component malloc.h which does not cause these warnings. |
55 | | - * Internally, OMPI uses the built-in ptmalloc from the linux memory |
56 | | - * component anyway. |
57 | | - */ |
58 | | -#include "opal/mca/memory/linux/memory_linux.h" |
59 | | -#endif |
60 | 45 |
|
| 46 | +#include "opal/mca/memory/memory.h" |
61 | 47 | #include "opal/mca/event/event.h" |
62 | 48 | #include "opal/align.h" |
63 | 49 | #include "opal/util/output.h" |
@@ -2503,14 +2489,12 @@ btl_openib_component_init(int *num_btl_modules, |
2503 | 2489 | *num_btl_modules = 0; |
2504 | 2490 | num_devs = 0; |
2505 | 2491 |
|
2506 | | -#if MEMORY_LINUX_MALLOC_ALIGN_ENABLED |
2507 | 2492 | /* If we got this far, then setup the memory alloc hook (because |
2508 | 2493 | we're most likely going to be using this component). The hook |
2509 | 2494 | is to be set up as early as possible in this function since we |
2510 | 2495 | want most of the allocated resources be aligned. |
2511 | 2496 | */ |
2512 | | - opal_memory_linux_malloc_set_alignment(32, mca_btl_openib_module.super.btl_eager_limit); |
2513 | | -#endif /* MEMORY_LINUX_MALLOC_ALIGN_ENABLED */ |
| 2497 | + opal_memory->memoryc_set_alignment(32, mca_btl_openib_module.super.btl_eager_limit); |
2514 | 2498 |
|
2515 | 2499 | /* Per https://svn.open-mpi.org/trac/ompi/ticket/1305, check to |
2516 | 2500 | see if $sysfsdir/class/infiniband exists. If it does not, |
|
0 commit comments