Skip to content

Commit 2e3e378

Browse files
committed
wip update help
1 parent e1958b3 commit 2e3e378

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

benchmark/spmv/spmv.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ int main(int argc, char* argv[])
2525
auto schema =
2626
json::parse(std::ifstream(GKO_ROOT "/benchmark/schema/spmv.json"));
2727

28-
initialize_argument_parsing(&argc, &argv, header, schema["examples"]);
28+
initialize_argument_parsing(&argc, &argv, header, schema["examples"],
29+
formats::format_description);
2930

3031
std::string extra_information =
3132
"The number of right hand sides is " + std::to_string(FLAGS_nrhs);

benchmark/utils/general.hpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,11 @@ std::unique_ptr<std::istream> input_stream;
119119
* @param header a header which describes the benchmark
120120
* @param examples the format of the benchmark input data
121121
*/
122-
void initialize_argument_parsing(int* argc, char** argv[], std::string& header,
123-
const json& examples, bool do_print = true)
122+
void initialize_argument_parsing(int* argc, char** argv[],
123+
const std::string& header,
124+
const json& examples,
125+
const std::string& extra_help = "",
126+
bool do_print = true)
124127
{
125128
if (do_print) {
126129
std::ostringstream doc;
@@ -137,7 +140,8 @@ void initialize_argument_parsing(int* argc, char** argv[], std::string& header,
137140
<< " to a file in the same format. The backup file can be used as "
138141
"\n"
139142
<< " input to this test suite, and the benchmarking will \n"
140-
<< " continue from the point where the backup file was created.";
143+
<< " continue from the point where the backup file was created.\n"
144+
<< extra_help;
141145

142146
gflags::SetUsageMessage(doc.str());
143147
std::ostringstream ver;

0 commit comments

Comments
 (0)