From 877b7aa0f65bfa71ee6218eb833309417f792041 Mon Sep 17 00:00:00 2001 From: djm34 Date: Sat, 3 Jun 2017 18:29:36 +0200 Subject: [PATCH] support for compute_30 cards, remove stale rejection logic responsible for large discrepencies between nominal hashrate and the one reported by pools --- ccminer.cpp | 5 +++-- ccminer.vcxproj | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ccminer.cpp b/ccminer.cpp index bede7a4..a0903fa 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -108,7 +108,7 @@ int opt_time_limit = -1; int opt_shares_limit = -1; time_t firstwork_time = 0; int opt_timeout = 300; // curl -int opt_scantime = 10; +int opt_scantime = 30; static json_t *opt_config; static const bool opt_time = true; volatile enum sha_algos opt_algo = ALGO_AUTO; @@ -787,6 +787,7 @@ static bool submit_upstream_work(CURL *curl, struct work *work) int idnonce = 0; /* discard if a newer block was received */ +/* stale_work = work->height && work->height < g_work.height; if (have_stratum && !stale_work && opt_algo != ALGO_ZR5 && opt_algo != ALGO_SCRYPT_JANE) { pthread_mutex_lock(&g_work_lock); @@ -824,7 +825,7 @@ static bool submit_upstream_work(CURL *curl, struct work *work) applog(LOG_WARNING, "stale work detected, discarding"); return true; } - +*/ if (pool->type & POOL_STRATUM) { uint32_t sent = 0; uint32_t ntime, nonce; diff --git a/ccminer.vcxproj b/ccminer.vcxproj index b42cbda..86af3b8 100644 --- a/ccminer.vcxproj +++ b/ccminer.vcxproj @@ -155,7 +155,7 @@ 80 true true - compute_61,sm_61;compute_60,sm_60;compute_52,sm_52;compute_50,sm_50;compute_35,sm_35 + compute_61,sm_61;compute_60,sm_60;compute_52,sm_52;compute_50,sm_50;compute_35,sm_35;compute_30,sm_30 --ptxas-options="-O2" %(AdditionalOptions) O2 $(IntDir)Cuda\%(Filename)%(Extension).obj