From 0d46f1ffe2d9b36d77c3a8cdac52c40065d9b103 Mon Sep 17 00:00:00 2001 From: Pablo Hoch Date: Tue, 5 Nov 2024 14:19:53 +0100 Subject: [PATCH] fix backend + benchmark --- exe/backend/src/main.cc | 2 +- exe/benchmark.cc | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/exe/backend/src/main.cc b/exe/backend/src/main.cc index a1da4cd..ce58671 100644 --- a/exe/backend/src/main.cc +++ b/exe/backend/src/main.cc @@ -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{}; diff --git a/exe/benchmark.cc b/exe/benchmark.cc index 160181f..661c073 100644 --- a/exe/benchmark.cc +++ b/exe/benchmark.cc @@ -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(*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(w, *w.r_, opt.max_dist_, nullptr, nullptr); } });