File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 2828#include < mpl/mpl.hpp>
2929
3030int 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
You can’t perform that action at this time.
0 commit comments