Skip to content

Commit

Permalink
fix backend + benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohoch committed Nov 5, 2024
1 parent 45f24f5 commit 0d46f1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion exe/backend/src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int main(int argc, char const* argv[]) {
pl->build_rtree(w);
}

auto const l = lookup{w};
auto const l = lookup{w, opt.data_dir_, cista::mmap::protection::READ};

auto ioc = boost::asio::io_context{};
auto pool = boost::asio::io_context{};
Expand Down
8 changes: 5 additions & 3 deletions exe/benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ int main(int argc, char const* argv[]) {
auto const start =
node_idx_t{cista::hash_combine(h, ++n, i.load()) % w.n_nodes()};
d.reset(opt.max_dist_);
d.add_start(car::label{car::node{start, 0, direction::kForward}, 0U});
d.add_start(car::label{car::node{start, 0, direction::kBackward}, 0U});
d.run<direction::kForward, false>(*w.r_, opt.max_dist_, nullptr,
d.add_start(w,
car::label{car::node{start, 0, direction::kForward}, 0U});
d.add_start(w,
car::label{car::node{start, 0, direction::kBackward}, 0U});
d.run<direction::kForward, false>(w, *w.r_, opt.max_dist_, nullptr,
nullptr);
}
});
Expand Down

0 comments on commit 0d46f1f

Please sign in to comment.