From ba405d19840380119df2a3e3f5acf1f0c7f8c98e Mon Sep 17 00:00:00 2001 From: SChernykh Date: Fri, 5 Jun 2020 09:33:36 +0200 Subject: [PATCH] Print errors from KawPow DAG initialization --- src/backend/cuda/runners/CudaKawPowRunner.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/cuda/runners/CudaKawPowRunner.cpp b/src/backend/cuda/runners/CudaKawPowRunner.cpp index e1f28e5c..6cb11a26 100644 --- a/src/backend/cuda/runners/CudaKawPowRunner.cpp +++ b/src/backend/cuda/runners/CudaKawPowRunner.cpp @@ -67,9 +67,12 @@ bool xmrig::CudaKawPowRunner::set(const Job &job, uint8_t *blob) const uint64_t start_ms = Chrono::steadyMSecs(); const bool result = CudaLib::kawPowPrepare(m_ctx, cache.data(), cache.size(), cache.dag_size(epoch), height, dag_sizes); + if (!result) { + LOG_ERR("Failed to initialize DAG: %s", CudaLib::lastError(m_ctx)); + } const int64_t dt = Chrono::steadyMSecs() - start_ms; - if (dt > 500) { + if (dt > 1000) { LOG_INFO("%s " YELLOW("KawPow") " DAG for epoch " WHITE_BOLD("%u") " calculated " BLACK_BOLD("(%" PRIu64 "ms)"), Tags::nvidia(), epoch, dt); }