Skip to content

Commit

Permalink
PR 353 on top of fc.proving
Browse files Browse the repository at this point in the history
  • Loading branch information
wallentx committed Apr 20, 2023
1 parent 83b041f commit a03f26e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/prover_disk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ class ContextQueue {
ContextQueue() {}

ContextQueue(uint32_t context_count, uint32_t thread_count, bool no_cpu_affinity, const uint32_t maxCompressionLevel) {
init(context_count, thread_count, no_cpu_affinity, maxCompressionLevel);
}

void init(uint32_t context_count, uint32_t thread_count, bool no_cpu_affinity, const uint32_t maxCompressionLevel) {
GreenReaperConfig cfg = {};
cfg.threadCount = thread_count;
cfg.disableCpuAffinity = no_cpu_affinity;
Expand All @@ -87,6 +83,9 @@ class ContextQueue {
}
}

void init(uint32_t context_count, uint32_t thread_count, bool no_cpu_affinity, const uint32_t maxCompressionLevel) {
}

void push(GreenReaperContext* gr) {
std::unique_lock<std::mutex> lock(mutex);
queue.push(gr);
Expand All @@ -113,7 +112,7 @@ class ContextQueue {
std::mutex dequeue_lock;
};

ContextQueue decompresser_context_queue(4, 10, false, 7);
ContextQueue decompresser_context_queue(1, 4, false, 7);


// The DiskProver, given a correctly formatted plot file, can efficiently generate valid proofs
Expand Down

0 comments on commit a03f26e

Please sign in to comment.