Skip to content

Commit 79b9f3d

Browse files
committed
build: Add static component pointers for LTO
With GCC's link time optimization, the compiler ends up seeing two declarations of MCA component structures. One in the component itself, which has potentially a component-specific type, and one in static-components.h, which is just declared as a base MCA component struct. The compiler doesn't like this. This patch adds a level of indirection used by the static component lookup code. static-components.h now declares the existance of a mca_component_t * and the list is of pointers to pointers. The MCA base framework has to do an extra dereference, but this is only in the initialization path. We also then have to have the actual pointer exist, so add a macro MCA_BASE_COMPONENT_INIT that we need to add to every component definition to create the pointer (and perhaps do more initialization later). Signed-off-by: Brian Barrett <[email protected]>
1 parent e0177a9 commit 79b9f3d

File tree

123 files changed

+150
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+150
-19
lines changed

config/opal_mca.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ extern "C" {
499499
500500
`cat $outfile.extern`
501501
502-
const mca_base_component_t *mca_$2_base_static_components[[]] = {
502+
const mca_base_component_t **mca_$2_base_static_components[[]] = {
503503
`cat $outfile.struct`
504504
NULL
505505
};
@@ -763,8 +763,8 @@ AC_DEFUN([MCA_PROCESS_COMPONENT],[
763763
# $FRAMEWORK_LIB_NAME prefix.
764764
$7="mca/$2/$3/libmca_$2_$3.la $$7"
765765
fi
766-
echo "extern const mca_base_component_t mca_$2_$3_component;" >> $outfile.extern
767-
echo " &mca_$2_$3_component, " >> $outfile.struct
766+
echo "extern const mca_base_component_t *mca_$2_$3_component_ptr;" >> $outfile.extern
767+
echo " &mca_$2_$3_component_ptr," >> $outfile.struct
768768
$5="$$5 $3"
769769
fi
770770

ompi/mca/bml/r2/bml_r2_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ mca_bml_base_component_2_0_0_t mca_bml_r2_component = {
5252
},
5353
.bml_init = mca_bml_r2_component_init,
5454
};
55+
MCA_BASE_COMPONENT_INIT(ompi, bml, r2)
5556

5657
static int mca_bml_r2_component_register(void)
5758
{

ompi/mca/coll/accelerator/coll_accelerator_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ mca_coll_accelerator_component_t mca_coll_accelerator_component = {
7575
/* Priority: make it above all point to point collectives including self */
7676
.priority = 78,
7777
};
78+
MCA_BASE_COMPONENT_INIT(ompi, coll, accelerator)
7879

7980

8081
static int accelerator_register(void)

ompi/mca/coll/acoll/coll_acoll_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ const mca_coll_base_component_3_0_0_t mca_coll_acoll_component = {
8686
.collm_init_query = mca_coll_acoll_init_query,
8787
.collm_comm_query = mca_coll_acoll_comm_query,
8888
};
89+
MCA_BASE_COMPONENT_INIT(ompi, coll, acoll)
8990

9091
static int acoll_register(void)
9192
{

ompi/mca/coll/adapt/coll_adapt_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ mca_coll_adapt_component_t mca_coll_adapt_component = {
7474
/* default values for non-MCA parameters */
7575
/* Not specifying values here gives us all 0's */
7676
};
77+
MCA_BASE_COMPONENT_INIT(ompi, coll, adapt)
7778

7879
/* Open the component */
7980
static int adapt_open(void)

ompi/mca/coll/basic/coll_basic_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const mca_coll_base_component_3_0_0_t mca_coll_basic_component = {
8282
.collm_init_query = mca_coll_basic_init_query,
8383
.collm_comm_query = mca_coll_basic_comm_query,
8484
};
85+
MCA_BASE_COMPONENT_INIT(ompi, coll, basic)
8586

8687

8788
static int

ompi/mca/coll/demo/coll_demo_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const mca_coll_base_component_3_0_0_t mca_coll_demo_component = {
8282
.collm_init_query = mca_coll_demo_init_query,
8383
.collm_comm_query = mca_coll_demo_comm_query,
8484
};
85+
MCA_BASE_COMPONENT_INIT(ompi, coll, demo)
8586

8687

8788
static int demo_register(void)

ompi/mca/coll/ftagree/coll_ftagree_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const mca_coll_base_component_3_0_0_t mca_coll_ftagree_component = {
7878
mca_coll_ftagree_init_query,
7979
mca_coll_ftagree_comm_query
8080
};
81+
MCA_BASE_COMPONENT_INIT(ompi, coll, ftagree)
8182

8283
static int
8384
ftagree_close(void)

ompi/mca/coll/han/coll_han_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ mca_coll_han_component_t mca_coll_han_component = {
104104
/* workaround for nvcc compiler */
105105
.dynamic_rules_filename = NULL,
106106
};
107+
MCA_BASE_COMPONENT_INIT(ompi, coll, han)
107108

108109
/*
109110
* Init the component

ompi/mca/coll/hcoll/coll_hcoll_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ mca_coll_hcoll_component_t mca_coll_hcoll_component = {
6464
0, /* hcoll_enable */
6565
NULL /*hcoll version */
6666
};
67+
MCA_BASE_COMPONENT_INIT(ompi, coll, hcoll)
6768

6869

6970

ompi/mca/coll/inter/coll_inter_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const mca_coll_base_component_3_0_0_t mca_coll_inter_component = {
8282
.collm_init_query = mca_coll_inter_init_query,
8383
.collm_comm_query = mca_coll_inter_comm_query,
8484
};
85+
MCA_BASE_COMPONENT_INIT(ompi, coll, inter)
8586

8687

8788
static int inter_register(void)

ompi/mca/coll/libnbc/coll_libnbc_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ ompi_coll_libnbc_component_t mca_coll_libnbc_component = {
142142
.collm_comm_query = libnbc_comm_query,
143143
}
144144
};
145+
MCA_BASE_COMPONENT_INIT(ompi, coll, libnbc)
145146

146147

147148
static int

ompi/mca/coll/monitoring/coll_monitoring_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ mca_coll_monitoring_component_t mca_coll_monitoring_component = {
232232
},
233233
.priority = INT_MAX
234234
};
235+
MCA_BASE_COMPONENT_INIT(ompi, coll, monitoring)
235236

236237
OBJ_CLASS_INSTANCE(mca_coll_monitoring_module_t,
237238
mca_coll_base_module_t,

ompi/mca/coll/portals4/coll_portals4_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ mca_coll_portals4_component_t mca_coll_portals4_component = {
209209
.collm_comm_query = portals4_comm_query,
210210
},
211211
};
212+
MCA_BASE_COMPONENT_INIT(ompi, coll, portals4)
212213

213214
int
214215
opal_stderr(const char *msg, const char *file,

ompi/mca/coll/self/coll_self_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const mca_coll_base_component_3_0_0_t mca_coll_self_component = {
8181
.collm_init_query = mca_coll_self_init_query,
8282
.collm_comm_query = mca_coll_self_comm_query,
8383
};
84+
MCA_BASE_COMPONENT_INIT(ompi, coll, self)
8485

8586
static int self_register(void)
8687
{

ompi/mca/coll/sync/coll_sync_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ mca_coll_sync_component_t mca_coll_sync_component = {
7070
.collm_comm_query = mca_coll_sync_comm_query
7171
},
7272
};
73+
MCA_BASE_COMPONENT_INIT(ompi, coll, sync)
7374

7475

7576
static int sync_register(void)

ompi/mca/coll/tuned/coll_tuned_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ mca_coll_tuned_component_t mca_coll_tuned_component = {
128128
/* Tuned component specific information */
129129
NULL /* ompi_coll_alg_rule_t ptr */
130130
};
131+
MCA_BASE_COMPONENT_INIT(ompi, coll, tuned)
131132

132133
static int tuned_register(void)
133134
{

ompi/mca/coll/ucc/coll_ucc_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ mca_coll_ucc_component_t mca_coll_ucc_component = {
5555
COLL_UCC_CTS_STR, /* requested coll_types string */
5656
UCC_VERSION_STRING /* ucc version */
5757
};
58+
MCA_BASE_COMPONENT_INIT(ompi, coll, ucc)
5859

5960
static int mca_coll_ucc_register(void)
6061
{

ompi/mca/coll/xhc/coll_xhc_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ mca_coll_xhc_component_t mca_coll_xhc_component = {
113113
.op_mca = {{0}},
114114
.op_mca_global = {0}
115115
};
116+
MCA_BASE_COMPONENT_INIT(ompi, coll, xhc)
116117

117118
/* Rather than having the defaults directly inside the component, we keep
118119
* them in a separate structure and copy them over (in xhc_register()). The

ompi/mca/fbtl/ime/fbtl_ime_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ mca_fbtl_base_component_2_0_0_t mca_fbtl_ime_component = {
5454
.fbtlm_file_query = mca_fbtl_ime_component_file_query, /* get priority and actions */
5555
.fbtlm_file_unquery = mca_fbtl_ime_component_file_unquery, /* undo what was done by previous function */
5656
};
57+
MCA_BASE_COMPONENT_INIT(ompi, fbtl, ime)
5758

5859
static int register_component(void)
5960
{

ompi/mca/fbtl/posix/fbtl_posix_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ mca_fbtl_base_component_2_0_0_t mca_fbtl_posix_component = {
7373
.fbtlm_file_query = mca_fbtl_posix_component_file_query, /* get priority and actions */
7474
.fbtlm_file_unquery = mca_fbtl_posix_component_file_unquery, /* undo what was done by previous function */
7575
};
76+
MCA_BASE_COMPONENT_INIT(ompi, fbtl, posix)
7677

7778
static int register_component(void)
7879
{

ompi/mca/fcoll/dynamic/fcoll_dynamic_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ mca_fcoll_base_component_3_0_0_t mca_fcoll_dynamic_component = {
7676
.fcollm_file_query = mca_fcoll_dynamic_component_file_query,
7777
.fcollm_file_unquery = mca_fcoll_dynamic_component_file_unquery,
7878
};
79+
MCA_BASE_COMPONENT_INIT(ompi, fcoll, dynamic)
7980

8081

8182
static int

ompi/mca/fcoll/dynamic_gen2/fcoll_dynamic_gen2_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ mca_fcoll_base_component_3_0_0_t mca_fcoll_dynamic_gen2_component = {
7777
.fcollm_file_query = mca_fcoll_dynamic_gen2_component_file_query,
7878
.fcollm_file_unquery = mca_fcoll_dynamic_gen2_component_file_unquery,
7979
};
80+
MCA_BASE_COMPONENT_INIT(ompi, fcoll, dynamic_gen2)
8081

8182

8283
static int

ompi/mca/fcoll/individual/fcoll_individual_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ mca_fcoll_base_component_3_0_0_t mca_fcoll_individual_component = {
7979
.fcollm_file_query = mca_fcoll_individual_component_file_query,
8080
.fcollm_file_unquery = mca_fcoll_individual_component_file_unquery,
8181
};
82+
MCA_BASE_COMPONENT_INIT(ompi, fcoll, individual)
8283

8384

8485
static int

ompi/mca/fcoll/vulcan/fcoll_vulcan_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ mca_fcoll_base_component_3_0_0_t mca_fcoll_vulcan_component = {
7878
.fcollm_file_query = mca_fcoll_vulcan_component_file_query,
7979
.fcollm_file_unquery = mca_fcoll_vulcan_component_file_unquery,
8080
};
81+
MCA_BASE_COMPONENT_INIT(ompi, fcoll, vulcan)
8182

8283

8384
static int

ompi/mca/fs/gpfs/fs_gpfs_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ mca_fs_base_component_2_0_0_t mca_fs_gpfs_component = {
6565
.fsm_file_query = mca_fs_gpfs_component_file_query, /* get priority and actions */
6666
.fsm_file_unquery = mca_fs_gpfs_component_file_unquery, /* undo what was done by previous function */
6767
};
68+
MCA_BASE_COMPONENT_INIT(ompi, fs, gpfs)
6869

6970
static int gpfs_register(void)
7071
{

ompi/mca/fs/ime/fs_ime_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ mca_fs_base_component_2_0_0_t mca_fs_ime_component = {
5656
.fsm_file_query = mca_fs_ime_component_file_query, /* get priority and actions */
5757
.fsm_file_unquery = mca_fs_ime_component_file_unquery, /* undo what was done by previous function */
5858
};
59+
MCA_BASE_COMPONENT_INIT(ompi, fs, ime)
5960

6061
static int register_component(void)
6162
{

ompi/mca/fs/lustre/fs_lustre_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ mca_fs_base_component_2_0_0_t mca_fs_lustre_component = {
8282
.fsm_file_query = mca_fs_lustre_component_file_query, /* get priority and actions */
8383
.fsm_file_unquery = mca_fs_lustre_component_file_unquery, /* undo what was done by previous function */
8484
};
85+
MCA_BASE_COMPONENT_INIT(ompi, fs, lustre)
8586

8687
static int
8788
lustre_register(void)

ompi/mca/fs/ufs/fs_ufs_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ mca_fs_base_component_2_0_0_t mca_fs_ufs_component = {
7979
.fsm_file_query = mca_fs_ufs_component_file_query, /* get priority and actions */
8080
.fsm_file_unquery = mca_fs_ufs_component_file_unquery, /* undo what was done by previous function */
8181
};
82+
MCA_BASE_COMPONENT_INIT(ompi, fs, ufs)
8283

8384
static int register_component(void)
8485
{

ompi/mca/hook/base/hook_base.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static int ompi_hook_base_register( mca_base_register_flag_t flags )
4949
static int ompi_hook_base_open( mca_base_open_flag_t flags )
5050
{
5151
int ret;
52-
const mca_base_component_t **static_components = ompi_hook_base_framework.framework_static_components;
52+
const mca_base_component_t ***static_components = ompi_hook_base_framework.framework_static_components;
5353
mca_base_component_list_item_t *cli = NULL;
5454
mca_base_component_t *component = NULL;
5555
bool found = false;
@@ -68,21 +68,22 @@ static int ompi_hook_base_open( mca_base_open_flag_t flags )
6868
*/
6969
if( NULL != static_components ) {
7070
for (int i = 0 ; NULL != static_components[i]; ++i) {
71-
if( static_components[i]->mca_component_flags & MCA_BASE_COMPONENT_FLAG_REQUIRED ) {
71+
const mca_base_component_t *static_component = *(static_components[i]);
72+
if( static_component->mca_component_flags & MCA_BASE_COMPONENT_FLAG_REQUIRED ) {
7273
// Make sure that this component is in the list of components that
7374
// were included in the earlier framework_components_open() call.
7475
found = false;
7576
OPAL_LIST_FOREACH(cli, &ompi_hook_base_framework.framework_components, mca_base_component_list_item_t) {
7677
component = (mca_base_component_t*)cli->cli_component;
77-
if( component == static_components[i] ) {
78+
if( component == static_component ) {
7879
found = true;
7980
break;
8081
}
8182
}
8283
if( !found ) {
8384
opal_show_help("help-mca-hook-base.txt", "hook:missing-required-component", true,
8485
ompi_hook_base_framework.framework_name,
85-
static_components[i]->mca_component_name);
86+
static_component->mca_component_name);
8687
return OPAL_ERR_NOT_SUPPORTED;
8788
}
8889
}

ompi/mca/hook/comm_method/hook_comm_method_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ ompi_hook_base_component_1_0_0_t mca_hook_comm_method_component = {
6565
.hookm_mpi_finalize_top = ompi_hook_comm_method_mpi_finalize_top,
6666
.hookm_mpi_finalize_bottom = NULL,
6767
};
68+
MCA_BASE_COMPONENT_INIT(ompi, hook, comm_method)
6869

6970
enum mca_hook_comm_method_mode_flags_t {
7071
/* Display on MPI_INIT */

ompi/mca/hook/demo/hook_demo_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const ompi_hook_base_component_1_0_0_t mca_hook_demo_component = {
6565
.hookm_mpi_finalize_top = ompi_hook_demo_mpi_finalize_top,
6666
.hookm_mpi_finalize_bottom = ompi_hook_demo_mpi_finalize_bottom,
6767
};
68+
MCA_BASE_COMPONENT_INIT(ompi, hook, demo)
6869

6970
/*
7071
* Example 'extra' component with an additional callback that is dynamically

ompi/mca/io/ompio/io_ompio_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ mca_io_base_component_3_0_0_t mca_io_ompio_component = {
130130

131131
.io_register_datarep = register_datarep,
132132
};
133+
MCA_BASE_COMPONENT_INIT(ompi, io, ompio)
133134

134135
static int register_component(void)
135136
{

ompi/mca/mtl/ofi/mtl_ofi_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ mca_mtl_ofi_component_t mca_mtl_ofi_component = {
116116
.mtl_init = ompi_mtl_ofi_component_init,
117117
}
118118
};
119+
MCA_BASE_COMPONENT_INIT(ompi, mtl, ofi)
119120

120121
static int
121122
ompi_mtl_ofi_component_register(void)

ompi/mca/mtl/portals4/mtl_portals4_component.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ mca_mtl_base_component_2_0_0_t mca_mtl_portals4_component = {
7171

7272
.mtl_init = ompi_mtl_portals4_component_init,
7373
};
74+
MCA_BASE_COMPONENT_INIT(ompi, mtl, portals4)
75+
7476

7577
static mca_base_var_enum_value_t long_protocol_values[] = {
7678
{eager, "eager"},

ompi/mca/mtl/psm2/mtl_psm2_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ mca_mtl_psm2_component_t mca_mtl_psm2_component = {
8888
.mtl_init = ompi_mtl_psm2_component_init,
8989
}
9090
};
91+
MCA_BASE_COMPONENT_INIT(ompi, mtl, psm2)
9192

9293
struct ompi_mtl_psm2_shadow_variable {
9394
int variable_type;

ompi/mca/op/aarch64/op_aarch64_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ ompi_op_aarch64_component_t mca_op_aarch64_component = {
6161
.opc_op_query = mca_op_aarch64_component_op_query,
6262
},
6363
};
64+
MCA_BASE_COMPONENT_INIT(ompi, op, aarch64)
6465

6566
/*
6667
* Component open

ompi/mca/op/avx/op_avx_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ ompi_op_avx_component_t mca_op_avx_component = {
149149
.opc_op_query = avx_component_op_query,
150150
},
151151
};
152+
MCA_BASE_COMPONENT_INIT(ompi, op, avx)
152153

153154
/*
154155
* Component open

ompi/mca/op/example/op_example_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ ompi_op_example_component_t mca_op_example_component = {
7575
0/false/whatever. We'll fill them in with meaningful values
7676
during _component_init_query(). */
7777
};
78+
MCA_BASE_COMPONENT_INIT(ompi, op, example)
7879

7980
/*
8081
* Component open

ompi/mca/osc/monitoring/osc_monitoring_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,4 @@ ompi_osc_monitoring_component_t mca_osc_monitoring_component = {
137137
},
138138
.priority = INT_MAX
139139
};
140+
MCA_BASE_COMPONENT_INIT(ompi, osc, monitoring)

ompi/mca/osc/portals4/osc_portals4_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ ompi_osc_portals4_component_t mca_osc_portals4_component = {
6666
.osc_finalize = component_finalize,
6767
}
6868
};
69+
MCA_BASE_COMPONENT_INIT(ompi, osc, portals4)
6970

7071

7172
ompi_osc_portals4_module_t ompi_osc_portals4_module_template = {

ompi/mca/osc/rdma/osc_rdma_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ ompi_osc_rdma_component_t mca_osc_rdma_component = {
110110
.osc_finalize = ompi_osc_rdma_component_finalize
111111
}
112112
};
113+
MCA_BASE_COMPONENT_INIT(ompi, osc, rdma)
113114

114115
ompi_osc_base_module_t ompi_osc_rdma_module_rdma_template = {
115116
.osc_win_attach = ompi_osc_rdma_attach,

ompi/mca/osc/sm/osc_sm_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ ompi_osc_sm_component_t mca_osc_sm_component = {
6666
.osc_finalize = component_finalize,
6767
}
6868
};
69+
MCA_BASE_COMPONENT_INIT(ompi, osc, sm)
6970

7071

7172
ompi_osc_sm_module_t ompi_osc_sm_module_template = {

ompi/mca/osc/ucx/osc_ucx_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ ompi_osc_ucx_component_t mca_osc_ucx_component = {
8585
.comm_world_size = 0,
8686
.endpoints = NULL
8787
};
88+
MCA_BASE_COMPONENT_INIT(ompi, osc, ucx)
8889

8990
ompi_osc_ucx_module_t ompi_osc_ucx_module_template = {
9091
{

ompi/mca/part/persist/part_persist_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ mca_part_base_component_4_0_0_t mca_part_persist_component = {
5656
.partm_init = mca_part_persist_component_init,
5757
.partm_finalize = mca_part_persist_component_fini,
5858
};
59+
MCA_BASE_COMPONENT_INIT(ompi, part, persist)
5960

6061
static int
6162
mca_part_persist_component_register(void)

0 commit comments

Comments
 (0)