Skip to content

Commit

Permalink
refactor(fm): output gain cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSeemaier committed Sep 25, 2024
1 parent fedefa2 commit 49a8454
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions kaminpar-shm/refinement/gains/compact_hashing_gain_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ namespace kaminpar::shm {

template <
typename GraphType,
template <typename>
typename DeltaGainCacheType,
template <typename> typename DeltaGainCacheType,
bool iterate_nonadjacent_blocks,
bool iterate_exact_gains = false>
class CompactHashingGainCache {
SET_DEBUG(false);
SET_DEBUG(true);

// Abuse MSB bit in the _weighted_degrees[] array for locking
constexpr static UnsignedEdgeWeight kWeightedDegreeLock =
Expand Down
5 changes: 1 addition & 4 deletions kaminpar-shm/refinement/gains/dense_gain_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
#include <tbb/parallel_for.h>
#include <tbb/parallel_invoke.h>

#include "kaminpar-shm/datastructures/delta_partitioned_graph.h"
#include "kaminpar-shm/datastructures/partitioned_graph.h"
#include "kaminpar-shm/kaminpar.h"
#include "kaminpar-shm/refinement/gains/delta_gain_caches.h"

#include "kaminpar-common/datastructures/dynamic_map.h"
#include "kaminpar-common/inline.h"
#include "kaminpar-common/logger.h"
#include "kaminpar-common/timer.h"
Expand All @@ -25,8 +23,7 @@ namespace kaminpar::shm {

template <
typename GraphType,
template <typename>
typename DeltaGainCacheType,
template <typename> typename DeltaGainCacheType,
bool iterate_nonadjacent_blocks = true,
bool iterate_exact_gains = false>
class DenseGainCache {
Expand Down

0 comments on commit 49a8454

Please sign in to comment.