From 37358df5431d2c4ab5148ba8e19ad214d7ada791 Mon Sep 17 00:00:00 2001 From: Earle Lowe <30607889+emlowe@users.noreply.github.com> Date: Thu, 17 Aug 2023 13:21:45 -0700 Subject: [PATCH] Fix bug where timeout wasn't getting set for GPU harvesting (#389) 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 --- src/prover_disk.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/prover_disk.hpp b/src/prover_disk.hpp index abc3adae6..1e1ef2944 100644 --- a/src/prover_disk.hpp +++ b/src/prover_disk.hpp @@ -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++) { @@ -169,7 +170,7 @@ class ContextQueue { } } } - this->context_queue_timeout = context_queue_timeout; + return false; }