From fb8182a10eb0e6adfa0c8c20a8745cf1bcc4d3fa Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Thu, 11 Jul 2024 21:40:00 +0200 Subject: [PATCH] wip --- include/customizer/cell_customizer.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/customizer/cell_customizer.hpp b/include/customizer/cell_customizer.hpp index dfb927cdd..d92bd411e 100644 --- a/include/customizer/cell_customizer.hpp +++ b/include/customizer/cell_customizer.hpp @@ -117,16 +117,17 @@ class CellCustomizer CellMetric &metric) const { // std::cerr << "Customizing cells\n"; - // Heap heap_exemplar(graph.GetNumberOfNodes()); - // HeapPtr heaps(heap_exemplar); + const auto number_of_nodes = graph.GetNumberOfNodes(); + HeapPtr heaps([number_of_nodes]{ + return Heap{number_of_nodes}; + }); for (std::size_t level = 1; level < partition.GetNumberOfLevels(); ++level) { tbb::parallel_for(tbb::blocked_range(0, partition.GetNumberOfCells(level)), [&](const tbb::blocked_range &range) { - Heap heap{graph.GetNumberOfNodes()}; - // auto &heap = heaps.local(); + auto &heap = heaps.local(); for (auto id = range.begin(), end = range.end(); id != end; ++id) { Customize(