Skip to content

Commit 20292c8

Browse files
committed
Update usage instructions in runner.cpp to include matrix size parameter
1 parent e1ed3d0 commit 20292c8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

standalone/runner.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@
2828
#include <mpl/mpl.hpp>
2929

3030
int main(int argc, char** argv) {
31-
if(argc < 2) {
32-
std::cout << "Usage: runner ge|gex|po|pox|gb|db|pb [n]\n";
33-
std::cout << "Example: runner ge 3\n";
31+
if(argc < 4) {
32+
std::cout << "Usage: runner ge|gex|po|pox|gb|db|pb [n] [m]\n\n";
33+
std::cout << " Generate a matrix of size [m] and solve it with [n] processes using ge|gex|po|pox|gb|db|pb solver.\n";
34+
std::cout << "Example: runner ge 3 100\n";
3435
return 0;
3536
}
36-
constexpr auto N = 6, NRHS = 1;
37+
constexpr auto NRHS = 1;
38+
39+
const auto N = std::stoi(argv[3]);
3740

3841
std::vector<double> A, B(N * NRHS, 1.);
3942
std::vector<int> config;
@@ -104,7 +107,7 @@ int main(int argc, char** argv) {
104107
for(auto I = 0; I < N; ++I) A[I + I * KLU] = I + 1.;
105108
}
106109
else {
107-
std::cout << "Usage: runner ge|gex|po|pox|gb|db|pb [n]\n";
110+
std::cout << "Usage: runner ge|gex|po|pox|gb|db|pb [n] [m]\n";
108111
return 0;
109112
}
110113

0 commit comments

Comments
 (0)