MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / main

Function main

examples/isolated/reporting_environments.cpp:122–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
122int 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}

Callers

nothing calls this directly

Calls 8

finalizeQuESTEnvFunction · 0.85
printCmdArgInfoFunction · 0.70
demo_serialFunction · 0.70
demo_multithreadedFunction · 0.70
demo_gpuAcceleratedFunction · 0.70
demo_distributedFunction · 0.70
demo_allFunction · 0.70
demo_autoFunction · 0.70

Tested by

no test coverage detected