Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hmusta committed Mar 21, 2024
1 parent 258bca3 commit 4a93cac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions metagraph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ include_directories(
external-libraries/zlib
external-libraries/sdust
external-libraries/simde-no-tests
external-libraries/sshash
external-libraries/sshash/include
external-libraries/sshash/external/pthash
external-libraries/sshash/external/pthash/external/essentials/include
${PROJECT_SOURCE_DIR}/src
)
Expand Down
3 changes: 2 additions & 1 deletion metagraph/src/graph/representation/hash/dbg_sshash.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "dbg_sshash.hpp"
#include <dictionary.hpp>

#include <query/streaming_query_regular_parsing.hpp>


namespace mtg {
namespace graph {
Expand All @@ -15,7 +17,6 @@ DBGSSHash::DBGSSHash(std::string const& input_filename, size_t k, Mode mode):k_(
build_config.k = k;//
// quick fix for value of m... k/2 but odd
build_config.m = (k_+1)/2;
build_config.num_threads = get_num_threads();
if(build_config.m % 2 == 0) build_config.m++;
dict_ = std::make_unique<sshash::dictionary>();
dict_->build(input_filename, build_config);
Expand Down
2 changes: 1 addition & 1 deletion metagraph/src/graph/representation/hash/dbg_sshash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <iostream>
#include <tsl/ordered_set.h>
#include "common/utils/string_utils.hpp"
#include "common/logger.hpp"
#include "graph/representation/base/sequence_graph.hpp"
#include "../external-libraries/sshash/external/pthash/external/essentials/include/essentials.hpp"

namespace sshash{
class dictionary;
Expand Down

0 comments on commit 4a93cac

Please sign in to comment.