Skip to content

Commit

Permalink
threads: fix whitespaces in barrier test
Browse files Browse the repository at this point in the history
  • Loading branch information
max-krasnyansky committed Sep 16, 2024
1 parent 35ee437 commit b71d8a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test-barrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "threadpool create failed : n_threads %d\n", n_threads);
exit(1);
}

// Create compute plan
struct ggml_cplan cplan = ggml_graph_plan(gf, n_threads, threadpool);

std::vector<uint8_t> work_data(cplan.work_size);
cplan.work_data = work_data.data();

std::cerr << "graph-compute with"
<< "\n n_threads: " << n_threads
<< "\n n_threads: " << n_threads
<< "\n n_nodes: " << n_nodes
<< "\n n_rounds: " << n_rounds
<< "\n";
Expand All @@ -81,7 +81,7 @@ int main(int argc, char *argv[]) {

auto usec = std::chrono::duration_cast<std::chrono::microseconds>(t1-t0).count();
auto nsec = std::chrono::duration_cast<std::chrono::nanoseconds>(t1-t0).count();
std::cerr << "graph-compute took " << usec << " usec "
std::cerr << "graph-compute took " << usec << " usec "
<< "\n " << (float) usec / n_rounds << " usec per-iter"
<< "\n " << (float) nsec / (n_rounds * n_nodes) << " nsec per-node"
<< "\n";
Expand Down

0 comments on commit b71d8a0

Please sign in to comment.