Skip to content

Commit 0f17273

Browse files
authored
Merge pull request #12551 from bosilca/fix/unused_tuned_alltoall_mca_params
Mark unused MCA params as deprecated.
2 parents 1937172 + cbaee8c commit 0f17273

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

ompi/mca/coll/tuned/coll_tuned.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Copyright (c) 2015-2018 Research Organization for Information Science
77
* and Technology (RIST). All rights reserved.
88
* Copyright (c) 2019 Mellanox Technologies. All rights reserved.
9+
* Copyright (c) 2024 NVIDIA Corporation. All rights reserved.
910
* $COPYRIGHT$
1011
*
1112
* Additional copyrights may follow
@@ -37,10 +38,6 @@ extern char* ompi_coll_tuned_dynamic_rules_filename;
3738
extern int ompi_coll_tuned_init_tree_fanout;
3839
extern int ompi_coll_tuned_init_chain_fanout;
3940
extern int ompi_coll_tuned_init_max_requests;
40-
extern int ompi_coll_tuned_alltoall_small_msg;
41-
extern int ompi_coll_tuned_alltoall_intermediate_msg;
42-
extern int ompi_coll_tuned_alltoall_large_msg;
43-
extern int ompi_coll_tuned_alltoall_min_procs;
4441
extern int ompi_coll_tuned_alltoall_max_requests;
4542
extern int ompi_coll_tuned_scatter_intermediate_msg;
4643
extern int ompi_coll_tuned_scatter_large_msg;

ompi/mca/coll/tuned/coll_tuned_alltoall_decision.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* reserved.
66
* Copyright (c) 2015 Research Organization for Information Science
77
* and Technology (RIST). All rights reserved.
8+
* Copyright (c) 2024 NVIDIA Corporation. All rights reserved.
89
* $COPYRIGHT$
910
*
1011
* Additional copyrights may follow
@@ -115,21 +116,22 @@ int ompi_coll_tuned_alltoall_intra_check_forced_init (coll_tuned_force_algorithm
115116
MCA_BASE_VAR_SCOPE_ALL,
116117
&coll_tuned_alltoall_chain_fanout);
117118

119+
int deprecated_mca_params = -1;
118120
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
119121
"alltoall_large_msg",
120122
"use pairwise exchange algorithm for messages larger than this value",
121-
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
123+
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_DEPRECATED,
122124
OPAL_INFO_LVL_6,
123125
MCA_BASE_VAR_SCOPE_READONLY,
124-
&ompi_coll_tuned_alltoall_large_msg);
126+
&deprecated_mca_params);
125127

126128
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
127129
"alltoall_min_procs",
128130
"use pairwise exchange algorithm for communicators larger than this value",
129-
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
131+
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_DEPRECATED,
130132
OPAL_INFO_LVL_6,
131133
MCA_BASE_VAR_SCOPE_READONLY,
132-
&ompi_coll_tuned_alltoall_min_procs);
134+
&deprecated_mca_params);
133135

134136
mca_param_indices->max_requests_param_index =
135137
mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,

ompi/mca/coll/tuned/coll_tuned_component.c

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Copyright (c) 2015-2018 Research Organization for Information Science
1818
* and Technology (RIST). All rights reserved.
1919
* Copyright (c) 2019 Mellanox Technologies. All rights reserved.
20+
* Copyright (c) 2024 NVIDIA Corporation. All rights reserved.
2021
* $COPYRIGHT$
2122
*
2223
* Additional copyrights may follow
@@ -55,14 +56,10 @@ char* ompi_coll_tuned_dynamic_rules_filename = (char*) NULL;
5556
int ompi_coll_tuned_init_tree_fanout = 4;
5657
int ompi_coll_tuned_init_chain_fanout = 4;
5758
int ompi_coll_tuned_init_max_requests = 128;
58-
int ompi_coll_tuned_alltoall_small_msg = 200;
59-
int ompi_coll_tuned_alltoall_intermediate_msg = 3000;
6059

6160
/* Set it to the same value as intermediate msg by default, so it does not affect
6261
* default algorithm selection. Changing this value will force using linear with
6362
* sync algorithm on certain message sizes. */
64-
int ompi_coll_tuned_alltoall_large_msg = 3000;
65-
int ompi_coll_tuned_alltoall_min_procs = 0; /* disable by default */
6663
int ompi_coll_tuned_alltoall_max_requests = 0; /* no limit for alltoall by default */
6764

6865
/* Disable by default */
@@ -156,23 +153,22 @@ static int tuned_register(void)
156153
MCA_BASE_VAR_SCOPE_READONLY,
157154
&ompi_coll_tuned_init_chain_fanout);
158155

159-
ompi_coll_tuned_alltoall_small_msg = 200;
156+
int deprecated_mca_params = -1;
160157
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
161158
"alltoall_small_msg",
162159
"threshold (if supported) to decide if small MSGs alltoall algorithm will be used",
163-
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
160+
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_DEPRECATED,
164161
OPAL_INFO_LVL_6,
165162
MCA_BASE_VAR_SCOPE_READONLY,
166-
&ompi_coll_tuned_alltoall_small_msg);
163+
&deprecated_mca_params);
167164

168-
ompi_coll_tuned_alltoall_intermediate_msg = 3000;
169165
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
170166
"alltoall_intermediate_msg",
171167
"threshold (if supported) to decide if intermediate MSGs alltoall algorithm will be used",
172-
MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
168+
MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_DEPRECATED,
173169
OPAL_INFO_LVL_6,
174170
MCA_BASE_VAR_SCOPE_READONLY,
175-
&ompi_coll_tuned_alltoall_intermediate_msg);
171+
&deprecated_mca_params);
176172

177173
(void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version,
178174
"use_dynamic_rules",

0 commit comments

Comments
 (0)