Skip to content

Commit 4f40be6

Browse files
authored
Merge pull request #13193 from bwbarrett/bugfix/lto-is-a-pain
build: Add static component pointers for LTO
2 parents bb1f6dc + 93a4464 commit 4f40be6

File tree

123 files changed

+170
-36
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

+170
-36
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
@@ -90,6 +90,7 @@ const mca_coll_base_component_3_0_0_t mca_coll_acoll_component = {
9090
.collm_init_query = mca_coll_acoll_init_query,
9191
.collm_comm_query = mca_coll_acoll_comm_query,
9292
};
93+
MCA_BASE_COMPONENT_INIT(ompi, coll, acoll)
9394

9495
static int acoll_register(void)
9596
{

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: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ 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;
54-
mca_base_component_t *component = NULL;
54+
const mca_base_component_t *component = NULL;
5555
bool found = false;
5656

5757
additional_callback_components = OBJ_NEW(opal_list_t);
@@ -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) {
76-
component = (mca_base_component_t*)cli->cli_component;
77-
if( component == static_components[i] ) {
77+
component = cli->cli_component;
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
}
@@ -180,18 +181,20 @@ MCA_BASE_FRAMEWORK_DECLARE(ompi, hook, "hook hooks",
180181
* Otherwise we would need to initialize opal outside of ompi_mpi_init and possibly
181182
* after ompi_mpi_finalize which gets messy (especially when trying to cleanup).
182183
*/
183-
#define HOOK_CALL_COMMON_HOOK_NOT_INITIALIZED(fn_name, ...) \
184-
do { \
185-
ompi_hook_base_component_t *component; \
186-
int idx; \
187-
\
188-
for(idx = 0; NULL != mca_hook_base_static_components[idx]; ++idx ) { \
189-
component = (ompi_hook_base_component_t*)mca_hook_base_static_components[idx]; \
190-
if( NULL != component->hookm_ ## fn_name && \
191-
ompi_hook_base_ ## fn_name != component->hookm_ ## fn_name ) { \
192-
component->hookm_ ## fn_name ( __VA_ARGS__ ); \
193-
} \
194-
} \
184+
#define HOOK_CALL_COMMON_HOOK_NOT_INITIALIZED(fn_name, ...) \
185+
do { \
186+
const mca_base_component_t ***static_components = ompi_hook_base_framework.framework_static_components; \
187+
\
188+
if( NULL != static_components ) { \
189+
for (int i = 0 ; NULL != static_components[i]; ++i) { \
190+
const mca_base_component_t *base_component = *(static_components[i]); \
191+
const ompi_hook_base_component_t *component = (const ompi_hook_base_component_t*)base_component; \
192+
if( NULL != component->hookm_ ## fn_name && \
193+
ompi_hook_base_ ## fn_name != component->hookm_ ## fn_name ) { \
194+
component->hookm_ ## fn_name ( __VA_ARGS__ ); \
195+
} \
196+
} \
197+
} \
195198
} while(0)
196199

197200
/*
@@ -204,18 +207,19 @@ MCA_BASE_FRAMEWORK_DECLARE(ompi, hook, "hook hooks",
204207
#define HOOK_CALL_COMMON_HOOK_INITIALIZED(fn_name, ...) \
205208
do { \
206209
mca_base_component_list_item_t *cli; \
207-
ompi_hook_base_component_t *component; \
208210
\
209211
OPAL_LIST_FOREACH(cli, &ompi_hook_base_framework.framework_components, mca_base_component_list_item_t) { \
210-
component = (ompi_hook_base_component_t*)cli->cli_component; \
212+
const mca_base_component_t *base_component = cli->cli_component; \
213+
const ompi_hook_base_component_t *component = (const ompi_hook_base_component_t*)base_component; \
211214
if( NULL != component->hookm_ ## fn_name && \
212215
ompi_hook_base_ ## fn_name != component->hookm_ ## fn_name ) { \
213216
component->hookm_ ## fn_name ( __VA_ARGS__ ); \
214217
} \
215218
} \
216219
\
217220
OPAL_LIST_FOREACH(cli, additional_callback_components, mca_base_component_list_item_t) { \
218-
component = (ompi_hook_base_component_t*)cli->cli_component; \
221+
const mca_base_component_t *base_component = cli->cli_component; \
222+
const ompi_hook_base_component_t *component = (const ompi_hook_base_component_t*)base_component; \
219223
if( NULL != component->hookm_ ## fn_name && \
220224
ompi_hook_base_ ## fn_name != component->hookm_ ## fn_name ) { \
221225
component->hookm_ ## fn_name ( __VA_ARGS__ ); \

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

0 commit comments

Comments
 (0)