From 98f2f8c74506cda0a093347da6c0c66df7d59652 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Fri, 29 May 2015 15:39:41 +0200 Subject: [PATCH] nvml warning fix and disable scrypt gpu test --- nvml.cpp | 1 + util.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nvml.cpp b/nvml.cpp index 62df1cc..de8c8a5 100644 --- a/nvml.cpp +++ b/nvml.cpp @@ -363,6 +363,7 @@ int nvml_reset_clocks(nvml_handle *nvmlh, int dev_id) return -1; } gpu_clocks_changed[dev_id] = 0; + return 1; } int nvml_get_gpucount(nvml_handle *nvmlh, int *gpucount) diff --git a/util.cpp b/util.cpp index cf7c2a5..ed583a6 100644 --- a/util.cpp +++ b/util.cpp @@ -1770,9 +1770,9 @@ void do_gpu_tests(void) //memcpy(buf, zrtest, 80); //scanhash_zr5(0, (uint32_t*)buf, tgt, zrtest[19]+1, &done); - struct timeval tv; - memset(buf, 0, sizeof buf); - scanhash_scrypt_jane(0, (uint32_t*)buf, tgt, NULL, 1, &done, &tv, &tv); + //struct timeval tv; + //memset(buf, 0, sizeof buf); + //scanhash_scrypt_jane(0, (uint32_t*)buf, tgt, NULL, 1, &done, &tv, &tv); memset(buf, 0, sizeof buf); scanhash_x11(0, (uint32_t*)buf, tgt, 1, &done);