Skip to content

Commit

Permalink
fix: do not depend on xxhash
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSeemaier committed Nov 13, 2024
1 parent abd14ba commit 5bb6cbc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions kagen/generators/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "kagen/edgeweight_generators/voiding_generator.h"
#include "kagen/kagen.h"
#include "kagen/tools/converter.h"
#include "kagen/tools/random_permutation.h"
#include "kagen/vertexweight_generators/default_generator.h"
#include "kagen/vertexweight_generators/uniform_random_generator.h"
#include "kagen/vertexweight_generators/vertex_weight_generator.h"
Expand All @@ -19,6 +18,10 @@
#include <algorithm>
#include <cmath>

#ifdef KAGEN_XXHASH_FOUND
#include "kagen/tools/random_permutation.h"
#endif

namespace kagen {
Generator::~Generator() = default;

Expand Down Expand Up @@ -251,7 +254,7 @@ void Generator::PermuteVertices(const PGeneratorConfig& config, MPI_Comm comm) {
throw std::runtime_error(
"Graph is vertex weight but this is not yet supported by the vertex permutation routine!");

#ifdef KAGEN_XXHASH_FOUND
#ifdef KAGEN_XXHASH_FOUND
int size = -1;
int rank = -1;
MPI_Comm_rank(comm, &rank);
Expand Down Expand Up @@ -296,7 +299,7 @@ void Generator::PermuteVertices(const PGeneratorConfig& config, MPI_Comm comm) {
}
}
SetVertexRange(recv_range);
#endif // KAGEN_XXHASH_FOUND
#endif // KAGEN_XXHASH_FOUND
}

std::unique_ptr<kagen::VertexWeightGenerator>
Expand Down

0 comments on commit 5bb6cbc

Please sign in to comment.