| 120 | |
| 121 | |
| 122 | int main(int argc, char* argv[]) { |
| 123 | |
| 124 | if (argc != 2) |
| 125 | return printCmdArgInfo(); |
| 126 | |
| 127 | int opt = std::stoi(argv[1]); |
| 128 | if (opt < 1 || opt > 6) |
| 129 | return printCmdArgInfo(); |
| 130 | |
| 131 | if (opt == 1) demo_serial(); |
| 132 | if (opt == 2) demo_multithreaded(); |
| 133 | if (opt == 3) demo_gpuAccelerated(); |
| 134 | if (opt == 4) demo_distributed(); |
| 135 | if (opt == 5) demo_all(); |
| 136 | if (opt == 6) demo_auto(); |
| 137 | |
| 138 | finalizeQuESTEnv(); |
| 139 | return 0; |
| 140 | } |
nothing calls this directly
no test coverage detected