You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
longNCOL=0, /* number of collectives for which rules are provided */
73
74
COLID=0, /* identifies the collective type to associate the rules with */
@@ -106,19 +107,14 @@ int ompi_coll_tuned_read_rules_config_file (char *fname, ompi_coll_alg_rule_t**
106
107
return (-2);
107
108
}
108
109
109
-
if (n_collectives<1) {
110
-
OPAL_OUTPUT((ompi_coll_tuned_stream,"Gave %d as max number of collectives in the rule table configuration file for tuned collectives!... ignoring!\n", n_collectives));
OPAL_OUTPUT((ompi_coll_tuned_stream,"Cannot allocate rules for file [%s]\n", fname));
124
120
goto on_file_error;
@@ -134,8 +130,8 @@ int ompi_coll_tuned_read_rules_config_file (char *fname, ompi_coll_alg_rule_t**
134
130
OPAL_OUTPUT((ompi_coll_tuned_stream,"Could not read number of collectives in configuration file around line %d\n", fileline));
135
131
goto on_file_error;
136
132
}
137
-
if (NCOL>n_collectives) {
138
-
OPAL_OUTPUT((ompi_coll_tuned_stream,"Number of collectives in configuration file %ld is greater than number of MPI collectives possible %d ??? error around line %d\n", NCOL, n_collectives, fileline));
133
+
if (NCOL>COLLCOUNT) {
134
+
OPAL_OUTPUT((ompi_coll_tuned_stream,"Number of collectives in configuration file %ld is greater than number of MPI collectives possible %d ??? error around line %d\n", NCOL, COLLCOUNT, fileline));
139
135
goto on_file_error;
140
136
}
141
137
@@ -146,8 +142,8 @@ int ompi_coll_tuned_read_rules_config_file (char *fname, ompi_coll_alg_rule_t**
146
142
OPAL_OUTPUT((ompi_coll_tuned_stream,"Could not read next Collective id in configuration file around line %d\n", fileline));
147
143
goto on_file_error;
148
144
}
149
-
if (COLID>=n_collectives) {
150
-
OPAL_OUTPUT((ompi_coll_tuned_stream,"Collective id in configuration file %ld is greater than MPI collectives possible %d. Error around line %d\n", COLID, n_collectives, fileline));
145
+
if (COLID>=COLLCOUNT) {
146
+
OPAL_OUTPUT((ompi_coll_tuned_stream,"Collective id in configuration file %ld is greater than MPI collectives possible %d. Error around line %d\n", COLID, COLLCOUNT, fileline));
151
147
goto on_file_error;
152
148
}
153
149
@@ -296,7 +292,7 @@ int ompi_coll_tuned_read_rules_config_file (char *fname, ompi_coll_alg_rule_t**
296
292
OPAL_OUTPUT((ompi_coll_tuned_stream,"Fix errors as listed above and try again.\n"));
297
293
298
294
/* deallocate memory if allocated */
299
-
if (alg_rules) ompi_coll_tuned_free_all_rules (alg_rules, n_collectives);
295
+
if (alg_rules) ompi_coll_tuned_free_all_rules (alg_rules);
0 commit comments