From 2ee8bc9791be912206c2120b15a72206ec2476b3 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Fri, 24 Jun 2016 10:14:58 +0200 Subject: [PATCH] nvapi: do not print that on normal -D --- Algo256/decred.cu | 5 ++--- configure.sh | 2 +- nvml.cpp | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Algo256/decred.cu b/Algo256/decred.cu index 9e5c488..e0322ca 100644 --- a/Algo256/decred.cu +++ b/Algo256/decred.cu @@ -367,9 +367,6 @@ extern "C" int scanhash_decred(int thr_id, struct work* work, uint32_t max_nonce const dim3 grid((throughput + TPB-1)/(TPB)); const dim3 block(TPB); - if (opt_benchmark) { - ptarget[6] = swab32(0xff); - } if (!init[thr_id]){ cudaSetDevice(dev_id); if (opt_cudaschedule == -1 && gpu_threads == 1) { @@ -431,6 +428,8 @@ extern "C" int scanhash_decred(int thr_id, struct work* work, uint32_t max_nonce } *pnonce = work->nonces[0]; return rc; + } else { + gpulog(LOG_WARNING, thr_id, "result %u for %08x does not validate on CPU!", i, h_resNonce[thr_id][i]); } } } diff --git a/configure.sh b/configure.sh index d098a24..c0c1977 100755 --- a/configure.sh +++ b/configure.sh @@ -9,5 +9,5 @@ extracflags="-march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16" CUDA_CFLAGS="-O3 -lineno -Xcompiler -Wall -D_FORCE_INLINES" \ - ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda --with-nvml=libnvidia-ml.so + ./configure CXXFLAGS="-O3 $extracflags" --with-cuda=/usr/local/cuda-6.5 --with-nvml=libnvidia-ml.so diff --git a/nvml.cpp b/nvml.cpp index 9fb3bb2..fffdefc 100644 --- a/nvml.cpp +++ b/nvml.cpp @@ -1202,7 +1202,6 @@ int nvapi_init() gpulog(LOG_INFO, n, "NVAPI power limit is set to %u%%", res); } if (device_pstate[dev_id]) { - if (opt_debug) nvapi_pstateinfo(nvapi_dev_map[dev_id]); // todo... } }