Skip to content

Commit

Permalink
Fix bug where timeout wasn't getting set for GPU harvesting (#389)
Browse files Browse the repository at this point in the history
The context timeout was being set after the function was already
returning for GPU harvesting. GPU harvesting was short-circuiting and
returning before this was being set

Make sure to configure the timeout earlier
  • Loading branch information
emlowe authored Aug 17, 2023
1 parent 10c8583 commit 37358df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prover_disk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class ContextQueue {
}
}
cfg.gpuDeviceIndex = gpu_index;
this->context_queue_timeout = context_queue_timeout;

for (uint32_t i = 0; i < context_count; i++) {

Expand Down Expand Up @@ -169,7 +170,7 @@ class ContextQueue {
}
}
}
this->context_queue_timeout = context_queue_timeout;

return false;
}

Expand Down

0 comments on commit 37358df

Please sign in to comment.