|
28 | 28 | /* alltoall algorithm variables */ |
29 | 29 | static int coll_tuned_alltoall_forced_algorithm = 0; |
30 | 30 | static int coll_tuned_alltoall_segment_size = 0; |
31 | | -static int coll_tuned_alltoall_max_requests; |
32 | 31 | static int coll_tuned_alltoall_tree_fanout; |
33 | 32 | static int coll_tuned_alltoall_chain_fanout; |
34 | 33 |
|
@@ -115,25 +114,39 @@ int ompi_coll_tuned_alltoall_intra_check_forced_init (coll_tuned_force_algorithm |
115 | 114 | MCA_BASE_VAR_SCOPE_ALL, |
116 | 115 | &coll_tuned_alltoall_chain_fanout); |
117 | 116 |
|
118 | | - coll_tuned_alltoall_max_requests = 0; /* no limit for alltoall by default */ |
| 117 | + (void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version, |
| 118 | + "alltoall_large_msg", |
| 119 | + "use pairwise exchange algorithm for messages larger than this value", |
| 120 | + MCA_BASE_VAR_TYPE_INT, NULL, 0, 0, |
| 121 | + OPAL_INFO_LVL_6, |
| 122 | + MCA_BASE_VAR_SCOPE_READONLY, |
| 123 | + &ompi_coll_tuned_alltoall_large_msg); |
| 124 | + |
| 125 | + (void) mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version, |
| 126 | + "alltoall_min_procs", |
| 127 | + "use pairwise exchange algorithm for communicators larger than this value", |
| 128 | + MCA_BASE_VAR_TYPE_INT, NULL, 0, 0, |
| 129 | + OPAL_INFO_LVL_6, |
| 130 | + MCA_BASE_VAR_SCOPE_READONLY, |
| 131 | + &ompi_coll_tuned_alltoall_min_procs); |
| 132 | + |
119 | 133 | mca_param_indices->max_requests_param_index = |
120 | 134 | mca_base_component_var_register(&mca_coll_tuned_component.super.collm_version, |
121 | 135 | "alltoall_algorithm_max_requests", |
122 | 136 | "Maximum number of outstanding send or recv requests. Only has meaning for synchronized algorithms.", |
123 | 137 | MCA_BASE_VAR_TYPE_INT, NULL, 0, MCA_BASE_VAR_FLAG_SETTABLE, |
124 | 138 | OPAL_INFO_LVL_5, |
125 | 139 | MCA_BASE_VAR_SCOPE_ALL, |
126 | | - &coll_tuned_alltoall_max_requests); |
| 140 | + &ompi_coll_tuned_alltoall_max_requests); |
127 | 141 | if (mca_param_indices->max_requests_param_index < 0) { |
128 | 142 | return mca_param_indices->max_requests_param_index; |
129 | 143 | } |
130 | 144 |
|
131 | | - if (coll_tuned_alltoall_max_requests < 0) { |
| 145 | + if (ompi_coll_tuned_alltoall_max_requests < 0) { |
132 | 146 | if( 0 == ompi_comm_rank( MPI_COMM_WORLD ) ) { |
133 | | - opal_output( 0, "Maximum outstanding requests must be positive number greater than 1. Switching to system level default %d \n", |
134 | | - ompi_coll_tuned_init_max_requests ); |
| 147 | + opal_output( 0, "Maximum outstanding requests must be positive number greater than 1. Switching to 0 \n"); |
135 | 148 | } |
136 | | - coll_tuned_alltoall_max_requests = 0; |
| 149 | + ompi_coll_tuned_alltoall_max_requests = 0; |
137 | 150 | } |
138 | 151 |
|
139 | 152 | return (MPI_SUCCESS); |
|
0 commit comments