Skip to content

Commit

Permalink
add buffer partition
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryidk committed Feb 23, 2024
1 parent c06c5cd commit 96f8045
Show file tree
Hide file tree
Showing 8 changed files with 870 additions and 575 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(dramhit VERSION 0.1.0)

# Declare options
option(SANITIZE "Enable ASAN." OFF)
option(SANITIZE_TESTING "Enable ASAN for tests." ON)
option(SANITIZE_TESTING "Enable ASAN for tests." OFF)
option(BUILD_APP "Build the main application, dramhit." ON)
option(BUILD_TESTING "Build tests." OFF)
option(BUILD_EXAMPLE "Build examples." OFF)
Expand All @@ -13,10 +13,10 @@ option(VTUNE "Use VTUNE to do performance monitering." OFF)
option(AGGR "Use aggregation hashtable (histogram)" ON)
option(BQUEUE "Enable bqueue tests" OFF)
option(XORWOW "Xorwow" OFF)
option(BQ_ZIPFIAN "Enable global zipfian distribution generation" ON)
option(BQ_ZIPFIAN "Enable global zipfian distribution generation" OFF)
option(BQ_ZIPFIAN_LOCAL "Enable local zipfian distribution generation" OFF)
option(CALC_STATS "Enable hashtable statistics" ON)
option(ZIPF_FAST "Enable faster zipfian distribution generation" ON)
option(ZIPF_FAST "Enable faster zipfian distribution generation" OFF)
option(LATENCY_COLLECTION "Enable latency data collection" OFF)
option(BQ_KMER_TEST "Bqueue kmer test" OFF)

Expand Down
2 changes: 1 addition & 1 deletion include/Application.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Application {
std::vector<std::thread> threads;
Shard *shards;
MsrHandler *msr_ctrl;
RadixContext radixContext;
RadixContext *radixContext;

public:
std::vector<numa_node> nodes;
Expand Down
1 change: 1 addition & 0 deletions include/input_reader/fastq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class FastqReader : public FileReader {
}
};


/// Reads KMers from a Fastq file.
template <size_t K>
class FastqKMerReader : public InputReaderU64 {
Expand Down
21 changes: 13 additions & 8 deletions include/tests/KmerTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,21 @@ class KmerTest {
void count_kmer(Shard *sh, const Configuration &config, BaseHashTable *ht,
std::barrier<VoidFn> *barrier);

void count_kmer_radix(Shard *sh, const Configuration &config,
std::barrier<VoidFn> *barrier, RadixContext &context);
// void count_kmer_radix(Shard *sh, const Configuration &config,
// std::barrier<VoidFn> *barrier, RadixContext &context);

void count_kmer_radix_custom(Shard *sh, const Configuration &config,
std::barrier<VoidFn> *barrier,
RadixContext &context);
// void count_kmer_radix_custom(Shard *sh, const Configuration &config,
// std::barrier<VoidFn> *barrier,
// RadixContext &context);

void count_kmer_radix_jerry(Shard *sh, const Configuration &config,
std::barrier<VoidFn> *barrier,
RadixContext &context, BaseHashTable *ht);
// void count_kmer_radix_partition(Shard *sh, const Configuration &config,
// std::barrier<VoidFn> *barrier,
// RadixContext &context, BaseHashTable *ht);


void count_kmer_radix_partition_global(Shard* sh, const Configuration& config,
std::barrier<VoidFn>* barrier,
RadixContext* context, BaseHashTable* ht);
};

} // namespace kmercounter
Expand Down
Loading

0 comments on commit 96f8045

Please sign in to comment.