4
4
* reserved.
5
5
* Copyright (c) 2022 IBM Corporation. All rights reserved
6
6
* Copyright (c) 2020-2022 Bull S.A.S. All rights reserved.
7
+ * Copyright (c) 2024 NVIDIA CORPORATION. All rights reserved.
7
8
* $COPYRIGHT$
8
9
*
9
10
* Additional copyrights may follow
@@ -221,9 +222,9 @@ mca_coll_han_query_module_from_mca(mca_base_component_t* c,
221
222
* storage = ompi_coll_han_available_components [mod_id ].component_name ;
222
223
223
224
(void ) mca_base_component_var_register (c , param_name , param_doc ,
224
- MCA_BASE_VAR_TYPE_STRING , NULL , 0 , 0 ,
225
+ MCA_BASE_VAR_TYPE_STRING , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
225
226
info_level ,
226
- MCA_BASE_VAR_SCOPE_READONLY , storage );
227
+ MCA_BASE_VAR_SCOPE_ALL , storage );
227
228
module_name = * storage ;
228
229
mod_id = strtol (module_name , & endptr , 10 );
229
230
if ( module_name == endptr ) { /* no conversion, maybe we got a module name instead */
@@ -252,22 +253,22 @@ static int han_register(void)
252
253
COMPONENT_T component ;
253
254
254
255
(void ) mca_base_component_var_register (c , "priority" , "Priority of the HAN coll component" ,
255
- MCA_BASE_VAR_TYPE_INT , NULL , 0 , 0 ,
256
+ MCA_BASE_VAR_TYPE_INT , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
256
257
OPAL_INFO_LVL_9 ,
257
- MCA_BASE_VAR_SCOPE_READONLY , & cs -> han_priority );
258
+ MCA_BASE_VAR_SCOPE_ALL , & cs -> han_priority );
258
259
259
260
cs -> han_output_verbose = 0 ;
260
261
(void ) mca_base_component_var_register (c , "verbose" , "Verbosity of the HAN coll component (use coll base verbosity if not set)" ,
261
- MCA_BASE_VAR_TYPE_INT , NULL , 0 , 0 ,
262
+ MCA_BASE_VAR_TYPE_INT , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
262
263
OPAL_INFO_LVL_9 ,
263
- MCA_BASE_VAR_SCOPE_READONLY , & cs -> han_output_verbose );
264
+ MCA_BASE_VAR_SCOPE_ALL , & cs -> han_output_verbose );
264
265
265
266
cs -> han_bcast_segsize = 65536 ;
266
267
(void ) mca_base_component_var_register (c , "bcast_segsize" ,
267
268
"segment size for bcast" ,
268
- MCA_BASE_VAR_TYPE_INT , NULL , 0 , 0 ,
269
+ MCA_BASE_VAR_TYPE_INT , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
269
270
OPAL_INFO_LVL_9 ,
270
- MCA_BASE_VAR_SCOPE_READONLY , & cs -> han_bcast_segsize );
271
+ MCA_BASE_VAR_SCOPE_ALL , & cs -> han_bcast_segsize );
271
272
272
273
cs -> han_bcast_up_module = 0 ;
273
274
(void ) mca_coll_han_query_module_from_mca (c , "bcast_up_module" ,
@@ -285,9 +286,9 @@ static int han_register(void)
285
286
cs -> han_reduce_segsize = 65536 ;
286
287
(void ) mca_base_component_var_register (c , "reduce_segsize" ,
287
288
"segment size for reduce" ,
288
- MCA_BASE_VAR_TYPE_INT , NULL , 0 , 0 ,
289
+ MCA_BASE_VAR_TYPE_INT , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
289
290
OPAL_INFO_LVL_9 ,
290
- MCA_BASE_VAR_SCOPE_READONLY , & cs -> han_reduce_segsize );
291
+ MCA_BASE_VAR_SCOPE_ALL , & cs -> han_reduce_segsize );
291
292
292
293
cs -> han_reduce_up_module = 0 ;
293
294
(void ) mca_coll_han_query_module_from_mca (c , "reduce_up_module" ,
@@ -304,9 +305,9 @@ static int han_register(void)
304
305
cs -> han_allreduce_segsize = 65536 ;
305
306
(void ) mca_base_component_var_register (c , "allreduce_segsize" ,
306
307
"segment size for allreduce" ,
307
- MCA_BASE_VAR_TYPE_INT , NULL , 0 , 0 ,
308
+ MCA_BASE_VAR_TYPE_INT , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
308
309
OPAL_INFO_LVL_9 ,
309
- MCA_BASE_VAR_SCOPE_READONLY , & cs -> han_allreduce_segsize );
310
+ MCA_BASE_VAR_SCOPE_ALL , & cs -> han_allreduce_segsize );
310
311
311
312
cs -> han_allreduce_up_module = 0 ;
312
313
(void ) mca_coll_han_query_module_from_mca (c , "allreduce_up_module" ,
@@ -361,9 +362,9 @@ static int han_register(void)
361
362
"whether we need reproducible results "
362
363
"(enabling this disables optimisations using topology)"
363
364
"0 disable 1 enable, default 0" ,
364
- MCA_BASE_VAR_TYPE_BOOL , NULL , 0 , 0 ,
365
+ MCA_BASE_VAR_TYPE_BOOL , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
365
366
OPAL_INFO_LVL_3 ,
366
- MCA_BASE_VAR_SCOPE_READONLY , & cs -> han_reproducible );
367
+ MCA_BASE_VAR_SCOPE_ALL , & cs -> han_reproducible );
367
368
/*
368
369
* Han algorithms MCA parameters for each collective.
369
370
* Shows algorithms thanks to enumerator
@@ -476,9 +477,9 @@ static int han_register(void)
476
477
}
477
478
478
479
mca_base_component_var_register (c , param_name , param_desc ,
479
- MCA_BASE_VAR_TYPE_INT , NULL , 0 , 0 ,
480
+ MCA_BASE_VAR_TYPE_INT , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
480
481
OPAL_INFO_LVL_9 ,
481
- MCA_BASE_VAR_SCOPE_READONLY ,
482
+ MCA_BASE_VAR_SCOPE_ALL ,
482
483
& (cs -> mca_sub_components [coll ][topo_lvl ]));
483
484
}
484
485
}
@@ -488,27 +489,27 @@ static int han_register(void)
488
489
(void ) mca_base_component_var_register (& mca_coll_han_component .super .collm_version ,
489
490
"use_dynamic_file_rules" ,
490
491
"Enable the dynamic selection provided via the dynamic_rules_filename MCA" ,
491
- MCA_BASE_VAR_TYPE_BOOL , NULL , 0 , 0 ,
492
+ MCA_BASE_VAR_TYPE_BOOL , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
492
493
OPAL_INFO_LVL_6 ,
493
- MCA_BASE_VAR_SCOPE_READONLY ,
494
+ MCA_BASE_VAR_SCOPE_ALL ,
494
495
& (cs -> use_dynamic_file_rules ));
495
496
496
497
cs -> dynamic_rules_filename = NULL ;
497
498
(void ) mca_base_component_var_register (& mca_coll_han_component .super .collm_version ,
498
499
"dynamic_rules_filename" ,
499
500
"Configuration file containing the dynamic selection rules" ,
500
- MCA_BASE_VAR_TYPE_STRING , NULL , 0 , 0 ,
501
+ MCA_BASE_VAR_TYPE_STRING , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
501
502
OPAL_INFO_LVL_6 ,
502
- MCA_BASE_VAR_SCOPE_READONLY ,
503
+ MCA_BASE_VAR_SCOPE_ALL ,
503
504
& (cs -> dynamic_rules_filename ));
504
505
505
506
cs -> dump_dynamic_rules = false;
506
507
(void ) mca_base_component_var_register (& mca_coll_han_component .super .collm_version ,
507
508
"dump_dynamic_rules" ,
508
509
"Switch used to decide if we dump dynamic rules provided by configuration file" ,
509
- MCA_BASE_VAR_TYPE_BOOL , NULL , 0 , 0 ,
510
+ MCA_BASE_VAR_TYPE_BOOL , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
510
511
OPAL_INFO_LVL_6 ,
511
- MCA_BASE_VAR_SCOPE_READONLY ,
512
+ MCA_BASE_VAR_SCOPE_ALL ,
512
513
& (cs -> dump_dynamic_rules ));
513
514
514
515
if ((cs -> dump_dynamic_rules || NULL != cs -> dynamic_rules_filename )
@@ -525,9 +526,9 @@ static int han_register(void)
525
526
"errors printed on rank 0 "
526
527
"with a 0 verbosity."
527
528
"Useless if coll_base_verbose is 30 or more." ,
528
- MCA_BASE_VAR_TYPE_INT , NULL , 0 , 0 ,
529
+ MCA_BASE_VAR_TYPE_INT , NULL , 0 , MCA_BASE_VAR_FLAG_SETTABLE ,
529
530
OPAL_INFO_LVL_6 ,
530
- MCA_BASE_VAR_SCOPE_READONLY ,
531
+ MCA_BASE_VAR_SCOPE_ALL ,
531
532
& (cs -> max_dynamic_errors ));
532
533
533
534
0 commit comments