Skip to content

Commit d204b8a

Browse files
author
Sergey Oblomov
committed
PML/SPML/UCX/COMPONENT: applied C99 initialization
Signed-off-by: Sergey Oblomov <sergeyo@mellanox.com>
1 parent 2806504 commit d204b8a

File tree

2 files changed

+28
-29
lines changed

2 files changed

+28
-29
lines changed

ompi/mca/pml/ucx/pml_ucx_component.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,25 @@ mca_pml_base_component_2_0_0_t mca_pml_ucx_component = {
2626

2727
/* First, the mca_base_component_t struct containing meta
2828
* information about the component itself */
29-
{
29+
.pmlm_version = {
3030
MCA_PML_BASE_VERSION_2_0_0,
3131

32-
"ucx", /* MCA component name */
33-
OMPI_MAJOR_VERSION, /* MCA component major version */
34-
OMPI_MINOR_VERSION, /* MCA component minor version */
35-
OMPI_RELEASE_VERSION, /* MCA component release version */
36-
mca_pml_ucx_component_open, /* component open */
37-
mca_pml_ucx_component_close, /* component close */
38-
NULL,
39-
mca_pml_ucx_component_register,
32+
.mca_component_name = "ucx",
33+
.mca_component_major_version = OMPI_MAJOR_VERSION,
34+
.mca_component_minor_version = OMPI_MINOR_VERSION,
35+
.mca_component_release_version = OMPI_RELEASE_VERSION,
36+
.mca_open_component = mca_pml_ucx_component_open,
37+
.mca_close_component = mca_pml_ucx_component_close,
38+
.mca_query_component = NULL,
39+
.mca_register_component_params = mca_pml_ucx_component_register,
4040
},
41-
{
41+
.pmlm_data = {
4242
/* This component is not checkpoint ready */
43-
MCA_BASE_METADATA_PARAM_NONE
43+
.param_field = MCA_BASE_METADATA_PARAM_NONE
4444
},
4545

46-
mca_pml_ucx_component_init, /* component init */
47-
mca_pml_ucx_component_fini /* component finalize */
46+
.pmlm_init = mca_pml_ucx_component_init,
47+
.pmlm_finalize = mca_pml_ucx_component_fini
4848
};
4949

5050
static int mca_pml_ucx_component_register(void)

oshmem/mca/spml/ucx/spml_ucx_component.c

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,25 @@ mca_spml_base_component_2_0_0_t mca_spml_ucx_component = {
3838
/* First, the mca_base_component_t struct containing meta
3939
information about the component itself */
4040

41-
{
42-
MCA_SPML_BASE_VERSION_2_0_0,
43-
44-
"ucx", /* MCA component name */
45-
OSHMEM_MAJOR_VERSION, /* MCA component major version */
46-
OSHMEM_MINOR_VERSION, /* MCA component minor version */
47-
OSHMEM_RELEASE_VERSION, /* MCA component release version */
48-
mca_spml_ucx_component_open, /* component open */
49-
mca_spml_ucx_component_close, /* component close */
50-
NULL,
51-
mca_spml_ucx_component_register
41+
.spmlm_version = {
42+
MCA_SPML_BASE_VERSION_2_0_0,
43+
44+
.mca_component_name = "ucx",
45+
.mca_component_major_version = OSHMEM_MAJOR_VERSION,
46+
.mca_component_minor_version = OSHMEM_MINOR_VERSION,
47+
.mca_component_release_version = OSHMEM_RELEASE_VERSION,
48+
.mca_open_component = mca_spml_ucx_component_open,
49+
.mca_close_component = mca_spml_ucx_component_close,
50+
.mca_query_component = NULL,
51+
.mca_register_component_params = mca_spml_ucx_component_register
5252
},
53-
{
53+
.spmlm_data = {
5454
/* The component is checkpoint ready */
55-
MCA_BASE_METADATA_PARAM_CHECKPOINT
55+
.param_field = MCA_BASE_METADATA_PARAM_CHECKPOINT
5656
},
5757

58-
mca_spml_ucx_component_init, /* component init */
59-
mca_spml_ucx_component_fini /* component finalize */
60-
58+
.spmlm_init = mca_spml_ucx_component_init,
59+
.spmlm_finalize = mca_spml_ucx_component_fini
6160
};
6261

6362

0 commit comments

Comments
 (0)