@@ -56,6 +56,7 @@ char* ompi_coll_tuned_dynamic_rules_filename = (char*) NULL;
5656int ompi_coll_tuned_init_tree_fanout = 4 ;
5757int ompi_coll_tuned_init_chain_fanout = 4 ;
5858int ompi_coll_tuned_init_max_requests = 128 ;
59+ int ompi_coll_tuned_verbose = 0 ;
5960
6061/* Set it to the same value as intermediate msg by default, so it does not affect
6162 * default algorithm selection. Changing this value will force using linear with
@@ -191,6 +192,15 @@ static int tuned_register(void)
191192 MCA_BASE_VAR_SCOPE_ALL ,
192193 & ompi_coll_tuned_dynamic_rules_filename );
193194
195+ ompi_coll_tuned_verbose = 0 ;
196+ (void ) mca_base_component_var_register (& mca_coll_tuned_component .super .collm_version ,
197+ "verbose" ,
198+ "Verbosity of the tuned coll component" ,
199+ MCA_BASE_VAR_TYPE_INT , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
200+ OPAL_INFO_LVL_9 ,
201+ MCA_BASE_VAR_SCOPE_ALL ,
202+ & ompi_coll_tuned_verbose );
203+
194204 /* register forced params */
195205 ompi_coll_tuned_allreduce_intra_check_forced_init (& ompi_coll_tuned_forced_params [ALLREDUCE ]);
196206 ompi_coll_tuned_alltoall_intra_check_forced_init (& ompi_coll_tuned_forced_params [ALLTOALL ]);
@@ -214,11 +224,10 @@ static int tuned_open(void)
214224{
215225 int rc ;
216226
217- #if OPAL_ENABLE_DEBUG
218- if (ompi_coll_base_framework .framework_verbose ) {
227+ if (ompi_coll_tuned_verbose ) {
219228 ompi_coll_tuned_stream = opal_output_open (NULL );
229+ opal_output_set_verbosity (ompi_coll_tuned_stream , ompi_coll_tuned_verbose );
220230 }
221- #endif /* OPAL_ENABLE_DEBUG */
222231
223232 /* now check that the user hasn't overrode any of the decision functions if dynamic rules are enabled */
224233 /* the user can redo this before every comm dup/create if they like */
@@ -231,20 +240,24 @@ static int tuned_open(void)
231240 /* by default DISABLE dynamic rules and instead use fixed [if based] rules */
232241 if (ompi_coll_tuned_use_dynamic_rules ) {
233242 if ( ompi_coll_tuned_dynamic_rules_filename ) {
234- OPAL_OUTPUT ((ompi_coll_tuned_stream ,"coll:tuned:component_open Reading collective rules file [%s]" ,
235- ompi_coll_tuned_dynamic_rules_filename ));
243+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
244+ "coll:tuned:component_open Reading collective rules file [%s]" ,
245+ ompi_coll_tuned_dynamic_rules_filename ));
236246 rc = ompi_coll_tuned_read_rules_config_file ( ompi_coll_tuned_dynamic_rules_filename ,
237247 & (mca_coll_tuned_component .all_base_rules ));
238248 if ( rc == OPAL_SUCCESS ) {
239- OPAL_OUTPUT ((ompi_coll_tuned_stream ,"coll:tuned:module_open Read a valid rules file" ));
249+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
250+ "coll:tuned:module_open Read a valid rules file" ));
240251 } else {
241- OPAL_OUTPUT ((ompi_coll_tuned_stream ,"coll:tuned:module_open Reading collective rules file failed\n" ));
252+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
253+ "coll:tuned:module_open Reading collective rules file failed\n" ));
242254 mca_coll_tuned_component .all_base_rules = NULL ;
243255 }
244256 }
245257 }
246258
247- OPAL_OUTPUT ((ompi_coll_tuned_stream , "coll:tuned:component_open: done!" ));
259+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
260+ "coll:tuned:component_open: done!" ));
248261
249262 return OMPI_SUCCESS ;
250263}
@@ -253,12 +266,14 @@ static int tuned_open(void)
253266/* i.e. alg table and dynamic changeable rules if allocated etc */
254267static int tuned_close (void )
255268{
256- OPAL_OUTPUT ((ompi_coll_tuned_stream , "coll:tuned:component_close: called" ));
269+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
270+ "coll:tuned:component_close: called" ));
257271
258272 /* dealloc alg table if allocated */
259273 /* dealloc dynamic changeable rules if allocated */
260274
261- OPAL_OUTPUT ((ompi_coll_tuned_stream , "coll:tuned:component_close: done!" ));
275+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
276+ "coll:tuned:component_close: done!" ));
262277
263278 if ( NULL != mca_coll_tuned_component .all_base_rules ) {
264279 ompi_coll_tuned_free_all_rules (mca_coll_tuned_component .all_base_rules );
0 commit comments