Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SiarheiFedartsou committed Jul 11, 2024
1 parent 69bc6c0 commit fb8182a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/customizer/cell_customizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::size_t>(0, partition.GetNumberOfCells(level)),
[&](const tbb::blocked_range<std::size_t> &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(
Expand Down

0 comments on commit fb8182a

Please sign in to comment.