From eca08bc7514f527b8ba3f5ba13f8e6d029587916 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Wed, 29 May 2024 00:57:35 +0300 Subject: [PATCH] Do not rerun benchmark for disabled backends --- src/core/MoBenchmark.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/MoBenchmark.cpp b/src/core/MoBenchmark.cpp index de9eaae8..471b754a 100644 --- a/src/core/MoBenchmark.cpp +++ b/src/core/MoBenchmark.cpp @@ -138,6 +138,7 @@ void MoBenchmark::start() { for (auto backend : m_controller->miner()->backends()) if (backend->isEnabled() && backend->isEnabled(algo)) ++ m_enabled_backend_count; if (m_enabled_backend_count == 0) { LOG_INFO("%s " BRIGHT_BLACK_BG(WHITE_BOLD_S " Algo " MAGENTA_BOLD_S "%s" WHITE_BOLD_S " is skipped due to a disabled backend"), Tags::benchmark(), algo.name()); + algo_perf[algo.id()] = -1.0f; // to avoid re-running benchmark next time run_next_bench_algo(); return; }