Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No queue. #353

Draft
wants to merge 4 commits into
base: fc.proving
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/prover_disk.hpp
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