@@ -58,6 +58,7 @@ char* ompi_coll_tuned_dynamic_rules_filename = (char*) NULL;
5858int ompi_coll_tuned_init_tree_fanout = 4 ;
5959int ompi_coll_tuned_init_chain_fanout = 4 ;
6060int ompi_coll_tuned_init_max_requests = 128 ;
61+ int ompi_coll_tuned_verbose = 0 ;
6162
6263/* Set it to the same value as intermediate msg by default, so it does not affect
6364 * default algorithm selection. Changing this value will force using linear with
@@ -193,6 +194,15 @@ static int tuned_register(void)
193194 MCA_BASE_VAR_SCOPE_ALL ,
194195 & ompi_coll_tuned_dynamic_rules_filename );
195196
197+ ompi_coll_tuned_verbose = 0 ;
198+ (void ) mca_base_component_var_register (& mca_coll_tuned_component .super .collm_version ,
199+ "verbose" ,
200+ "Verbosity of the tuned coll component" ,
201+ MCA_BASE_VAR_TYPE_INT , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
202+ OPAL_INFO_LVL_9 ,
203+ MCA_BASE_VAR_SCOPE_ALL ,
204+ & ompi_coll_tuned_verbose );
205+
196206 /* register forced params */
197207 ompi_coll_tuned_allreduce_intra_check_forced_init (& ompi_coll_tuned_forced_params [ALLREDUCE ]);
198208 ompi_coll_tuned_alltoall_intra_check_forced_init (& ompi_coll_tuned_forced_params [ALLTOALL ]);
@@ -216,11 +226,10 @@ static int tuned_open(void)
216226{
217227 int rc ;
218228
219- #if OPAL_ENABLE_DEBUG
220- if (ompi_coll_base_framework .framework_verbose ) {
229+ if (ompi_coll_tuned_verbose ) {
221230 ompi_coll_tuned_stream = opal_output_open (NULL );
231+ opal_output_set_verbosity (ompi_coll_tuned_stream , ompi_coll_tuned_verbose );
222232 }
223- #endif /* OPAL_ENABLE_DEBUG */
224233
225234 /* now check that the user hasn't overrode any of the decision functions if dynamic rules are enabled */
226235 /* the user can redo this before every comm dup/create if they like */
@@ -233,20 +242,24 @@ static int tuned_open(void)
233242 /* by default DISABLE dynamic rules and instead use fixed [if based] rules */
234243 if (ompi_coll_tuned_use_dynamic_rules ) {
235244 if ( ompi_coll_tuned_dynamic_rules_filename ) {
236- OPAL_OUTPUT ((ompi_coll_tuned_stream ,"coll:tuned:component_open Reading collective rules file [%s]" ,
237- ompi_coll_tuned_dynamic_rules_filename ));
245+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
246+ "coll:tuned:component_open Reading collective rules file [%s]" ,
247+ ompi_coll_tuned_dynamic_rules_filename ));
238248 rc = ompi_coll_tuned_read_rules_config_file ( ompi_coll_tuned_dynamic_rules_filename ,
239249 & (mca_coll_tuned_component .all_base_rules ));
240250 if ( rc == OPAL_SUCCESS ) {
241- OPAL_OUTPUT ((ompi_coll_tuned_stream ,"coll:tuned:module_open Read a valid rules file" ));
251+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
252+ "coll:tuned:module_open Read a valid rules file" ));
242253 } else {
243- OPAL_OUTPUT ((ompi_coll_tuned_stream ,"coll:tuned:module_open Reading collective rules file failed\n" ));
254+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
255+ "coll:tuned:module_open Reading collective rules file failed\n" ));
244256 mca_coll_tuned_component .all_base_rules = NULL ;
245257 }
246258 }
247259 }
248260
249- OPAL_OUTPUT ((ompi_coll_tuned_stream , "coll:tuned:component_open: done!" ));
261+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
262+ "coll:tuned:component_open: done!" ));
250263
251264 return OMPI_SUCCESS ;
252265}
@@ -255,12 +268,14 @@ static int tuned_open(void)
255268/* i.e. alg table and dynamic changeable rules if allocated etc */
256269static int tuned_close (void )
257270{
258- OPAL_OUTPUT ((ompi_coll_tuned_stream , "coll:tuned:component_close: called" ));
271+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
272+ "coll:tuned:component_close: called" ));
259273
260274 /* dealloc alg table if allocated */
261275 /* dealloc dynamic changeable rules if allocated */
262276
263- OPAL_OUTPUT ((ompi_coll_tuned_stream , "coll:tuned:component_close: done!" ));
277+ OPAL_OUTPUT_VERBOSE ((COLL_TUNED_TRACING_VERBOSE , ompi_coll_tuned_stream ,
278+ "coll:tuned:component_close: done!" ));
264279
265280 if ( NULL != mca_coll_tuned_component .all_base_rules ) {
266281 ompi_coll_tuned_free_all_rules (mca_coll_tuned_component .all_base_rules );
0 commit comments