|
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"
|
@@ -2512,14 +2498,12 @@ btl_openib_component_init(int *num_btl_modules,
|
2512 | 2498 | *num_btl_modules = 0;
|
2513 | 2499 | num_devs = 0;
|
2514 | 2500 |
|
2515 |
| -#if MEMORY_LINUX_MALLOC_ALIGN_ENABLED |
2516 | 2501 | /* If we got this far, then setup the memory alloc hook (because
|
2517 | 2502 | we're most likely going to be using this component). The hook
|
2518 | 2503 | is to be set up as early as possible in this function since we
|
2519 | 2504 | want most of the allocated resources be aligned.
|
2520 | 2505 | */
|
2521 |
| - opal_memory_linux_malloc_set_alignment(32, mca_btl_openib_module.super.btl_eager_limit); |
2522 |
| -#endif /* MEMORY_LINUX_MALLOC_ALIGN_ENABLED */ |
| 2506 | + opal_memory->memoryc_set_alignment(32, mca_btl_openib_module.super.btl_eager_limit); |
2523 | 2507 |
|
2524 | 2508 | /* Per https://svn.open-mpi.org/trac/ompi/ticket/1305, check to
|
2525 | 2509 | see if $sysfsdir/class/infiniband exists. If it does not,
|
|
0 commit comments