1313 * Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
1414 * Copyright (c) 2015 Los Alamos National Security, LLC. All rights
1515 * reserved.
16+ * Copyright (c) 2016 Research Organization for Information Science
17+ * and Technology (RIST). All rights reserved.
1618 * $COPYRIGHT$
1719 *
1820 * Additional copyrights may follow
@@ -92,7 +94,7 @@ typedef int (*opal_memory_base_component_register_fn_t)(void *base,
9294
9395
9496/**
95- * Prototype for a function that is the opposite of
97+ * Prototype for a function that is the opposite of
9698 * opal_memory_base_component_register_fn_t: this function is invoked
9799 * when Open MPI stops to "caring" about a specific memory region.
98100 * That is, Open MPI declares that it no longer wants to be notified
@@ -111,6 +113,12 @@ typedef int (*opal_memory_base_component_deregister_fn_t)(void *base,
111113 uint64_t cookie );
112114
113115
116+ /**
117+ * Prototype for a function that set the memory alignment
118+ */
119+ typedef void (* opal_memory_base_component_set_alignment_fn_t )(int use_memalign ,
120+ size_t memalign_threshold );
121+
114122/**
115123 * Structure for memory components.
116124 */
@@ -132,6 +140,8 @@ typedef struct opal_memory_base_component_2_0_0_t {
132140 /** Function invoked when Open MPI stops "caring" about a
133141 specific memory region */
134142 opal_memory_base_component_deregister_fn_t memoryc_deregister ;
143+ /** Function invoked in order to set malloc'ed memory alignment */
144+ opal_memory_base_component_set_alignment_fn_t memoryc_set_alignment ;
135145} opal_memory_base_component_2_0_0_t ;
136146
137147OPAL_DECLSPEC extern opal_memory_base_component_2_0_0_t * opal_memory ;
0 commit comments