MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / main

Function main

subprojects/llama.cpp/tests/test-barrier.cpp:216–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214
215
216int main(int argc, char *argv[]) {
217
218 int n_threads = std::max(1, std::min(4, (int) std::thread::hardware_concurrency()));
219 int n_rounds = 100;
220
221 if (argc > 1) {
222 n_threads = std::atoi(argv[1]);
223 }
224
225 if (argc > 2) {
226 n_rounds = std::atoi(argv[2]);
227 }
228
229 test_barrier(n_threads, n_rounds);
230
231 test_active(n_threads, n_rounds * 100);
232
233 test_multi_graph(n_threads, n_rounds * 10);
234
235 return 0;
236}

Callers

nothing calls this directly

Calls 5

maxFunction · 0.85
minFunction · 0.85
test_barrierFunction · 0.85
test_activeFunction · 0.85
test_multi_graphFunction · 0.85

Tested by

no test coverage detected