From 35a7f71e9aead33028ed72269c4d5e77700d0b4e Mon Sep 17 00:00:00 2001 From: bobbyning Date: Fri, 25 Sep 2026 10:09:12 +0800 Subject: [PATCH] Log effective gpu-chunk and search-timeout in workerpoh startup line. The startup searcher line (workerpoh: searcher=... mode=... backend=... hybrid_sign=...) is the first thing a miner reads when tuning GPU parameters, but it does not show which -gpu-chunk / -search-timeout-ms are actually in effect. When tuning comes from env defaults or rig profiles instead of explicit flags, a misconfigured value is invisible: the line looks identical whether tuning applied or not, and per-launch overhead at small chunks silently caps hashrate. Append chunk= search_timeout_ms= to the startup line so the effective values are visible immediately, in both cpu and gpu modes. One Fprintf change; behavior otherwise unchanged. Verified: go vet, full package tests, build, and smoke runs (cpu mode) print the new fields; combined with the GPU_CHUNK env-default fix the line reflects env-provided values. --- cmd/workerpoh/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/workerpoh/main.go b/cmd/workerpoh/main.go index 1462a202..262ce0de 100644 --- a/cmd/workerpoh/main.go +++ b/cmd/workerpoh/main.go @@ -768,8 +768,8 @@ func main() { srch, cleanup, mode := pickSearcher(preferredBackend, *gpuDevice, *gpuDisable) defer cleanup() syncWorkerGPUBackendFromSearcher(srch, mode) - fmt.Fprintf(os.Stderr, "workerpoh: searcher=%s mode=%s backend=%s hybrid_sign=%v\n", - srch.Label(), mode, effectiveGPUBackend(), signHybrid) + fmt.Fprintf(os.Stderr, "workerpoh: searcher=%s mode=%s backend=%s hybrid_sign=%v chunk=%d search_timeout_ms=%d\n", + srch.Label(), mode, effectiveGPUBackend(), signHybrid, *gpuChunk, *searchTimeoutMS) if mode == "gpu" && gpuBackendConfigured() { calibMod := uint64(19_485_298) if v := strings.TrimSpace(os.Getenv("HACKME_GPU_CALIBRATE_MOD")); v != "" {