@@ -111,7 +111,7 @@ class ConfigManager
111
111
112
112
// / \brief Returns a CalQL SELECT expression to compute metrics
113
113
// / in the option list.
114
- // / \param level The aggregation level ('serial', ' local', or 'cross')
114
+ // / \param level The aggregation level ('local' or 'cross')
115
115
// / \param in Base SELECT expression as required by the controller
116
116
// / \param use_alias Wether to add aliases to the expression
117
117
// / (as in SELECT x AS y)
@@ -122,13 +122,22 @@ class ConfigManager
122
122
123
123
// / \brief Returns a CalQL GROUP BY list for metrics in the option
124
124
// / list.
125
- // / \param level The aggregation level ('serial', ' local', or 'cross')
125
+ // / \param level The aggregation level ('local' or 'cross')
126
126
// / \param in Base GROUP BY list as required by the controller
127
127
// / \return The GROUP BY list (comma-separated string), but without the
128
128
// / 'GROUP BY' keyword
129
129
std::string
130
130
query_groupby (const char * level, const std::string& in) const ;
131
131
132
+ // / \brief Returns a CalQL LET list for metrics in the option
133
+ // / list.
134
+ // / \param level The aggregation level ('local' or 'cross')
135
+ // / \param in Base LET list as required by the controller
136
+ // / \return The LET clause ('LET' + comma-separated list of definitions),
137
+ // / or an empty string if there is no LET input
138
+ std::string
139
+ query_let (const char * level, const std::string& in) const ;
140
+
132
141
friend class ConfigManager ;
133
142
};
134
143
@@ -275,9 +284,6 @@ class ConfigManager
275
284
// / " \"config\" : { \"CALI_PAPI_COUNTERS\": \"PAPI_TOT_INS\" },"
276
285
// / " \"query_args\" : "
277
286
// / " ["
278
- // / " { \"level\": \"serial\", \"select\":"
279
- // / " [ { \"expr\": \"sum(sum#papi.PAPI_TOT_INS)\", \"as\": \"Instructions\" } ]"
280
- // / " },"
281
287
// / " { \"level\": \"local\", \"select\":"
282
288
// / " [ { \"expr\": \"sum(sum#papi.PAPI_TOT_INS)\" } ]"
283
289
// / " },"
@@ -316,9 +322,8 @@ class ConfigManager
316
322
// / added automatically based on the \a services entry.
317
323
// / \li \a query_args: Defines aggregation operations to compute
318
324
// / performance metrics. Specific to "metric" options. There are
319
- // / three aggregation levels: \e serial computes metrics for
320
- // / non-MPI programs, \e local computes process-local intermediate
321
- // / metrics in MPI programs, and \e cross computes cross-process
325
+ // / two aggregation levels: \e local computes process-local
326
+ // / metrics, and \e cross computes cross-process
322
327
// / metrics in MPI programs. For each level, specify metrics
323
328
// / using a list of "select" definitions, where \e expr defines an
324
329
// / aggregation using a CalQL expression, and \e as provides a
0 commit comments