11/*
2- * Copyright (c) 2016-2018 IBM Corporation. All rights reserved.
2+ * Copyright (c) 2016-2020 IBM Corporation. All rights reserved.
33 * $COPYRIGHT$
44 *
55 * Additional copyrights may follow
@@ -68,11 +68,11 @@ const ompi_hook_base_component_1_0_0_t mca_hook_comm_method_component = {
6868
6969int mca_hook_comm_method_verbose = 0 ;
7070int mca_hook_comm_method_output = -1 ;
71- bool hook_comm_method_enable_mpi_init = false;
72- bool hook_comm_method_enable_mpi_finalize = false;
73- int hook_comm_method_max = 12 ;
74- int hook_comm_method_brief = 0 ;
75- char * hook_comm_method_fakefile = NULL ;
71+ bool mca_hook_comm_method_enable_mpi_init = false;
72+ bool mca_hook_comm_method_enable_mpi_finalize = false;
73+ int mca_hook_comm_method_max = 12 ;
74+ int mca_hook_comm_method_brief = 0 ;
75+ char * mca_hook_comm_method_fakefile = NULL ;
7676
7777static int ompi_hook_comm_method_component_open (void )
7878{
@@ -113,23 +113,23 @@ static int ompi_hook_comm_method_component_register(void)
113113 /*
114114 * If the component is active for mpi_init / mpi_finalize
115115 */
116- hook_comm_method_enable_mpi_init = false;
116+ mca_hook_comm_method_enable_mpi_init = false;
117117 (void ) mca_base_component_var_register (& mca_hook_comm_method_component .hookm_version , "enable_mpi_init" ,
118118 "Enable comm_method behavior on mpi_init" ,
119119 MCA_BASE_VAR_TYPE_BOOL , NULL ,
120120 0 , 0 ,
121121 OPAL_INFO_LVL_3 ,
122122 MCA_BASE_VAR_SCOPE_READONLY ,
123- & hook_comm_method_enable_mpi_init );
123+ & mca_hook_comm_method_enable_mpi_init );
124124
125- hook_comm_method_enable_mpi_finalize = false;
125+ mca_hook_comm_method_enable_mpi_finalize = false;
126126 (void ) mca_base_component_var_register (& mca_hook_comm_method_component .hookm_version , "enable_mpi_finalize" ,
127127 "Enable comm_method behavior on mpi_finalize" ,
128128 MCA_BASE_VAR_TYPE_BOOL , NULL ,
129129 0 , 0 ,
130130 OPAL_INFO_LVL_3 ,
131131 MCA_BASE_VAR_SCOPE_READONLY ,
132- & hook_comm_method_enable_mpi_finalize );
132+ & mca_hook_comm_method_enable_mpi_finalize );
133133
134134 // User can set the comm_method mca variable too
135135 int hook_comm_method = -1 ;
@@ -142,10 +142,10 @@ static int ompi_hook_comm_method_component_register(void)
142142 & hook_comm_method );
143143
144144 if ( 1 == hook_comm_method ) {
145- hook_comm_method_enable_mpi_init = true;
145+ mca_hook_comm_method_enable_mpi_init = true;
146146 }
147147 else if ( 2 == hook_comm_method ) {
148- hook_comm_method_enable_mpi_finalize = true;
148+ mca_hook_comm_method_enable_mpi_finalize = true;
149149 }
150150
151151 // comm_method_max
@@ -155,15 +155,15 @@ static int ompi_hook_comm_method_component_register(void)
155155 0 , 0 ,
156156 OPAL_INFO_LVL_3 ,
157157 MCA_BASE_VAR_SCOPE_READONLY ,
158- & hook_comm_method_max );
158+ & mca_hook_comm_method_max );
159159 // comm_method_brief
160160 (void ) mca_base_var_register ("ompi" , NULL , NULL , "comm_method_brief" ,
161161 "Only print the comm method summary, skip the 2d table." ,
162162 MCA_BASE_VAR_TYPE_INT , NULL ,
163163 0 , 0 ,
164164 OPAL_INFO_LVL_3 ,
165165 MCA_BASE_VAR_SCOPE_READONLY ,
166- & hook_comm_method_brief );
166+ & mca_hook_comm_method_brief );
167167
168168 // comm_method_fakefile is just for debugging, allows complete override of all the
169169 // comm method in the table
@@ -173,7 +173,7 @@ static int ompi_hook_comm_method_component_register(void)
173173 0 , 0 ,
174174 OPAL_INFO_LVL_3 ,
175175 MCA_BASE_VAR_SCOPE_READONLY ,
176- & hook_comm_method_fakefile );
176+ & mca_hook_comm_method_fakefile );
177177
178178 return OMPI_SUCCESS ;
179179}
0 commit comments