Skip to content

Commit 877b7aa

Browse files
author
djm34
committed
support for compute_30 cards, remove stale rejection logic responsible for large discrepencies between nominal hashrate and the one reported
by pools
1 parent 1b8da27 commit 877b7aa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ccminer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ int opt_time_limit = -1;
108108
int opt_shares_limit = -1;
109109
time_t firstwork_time = 0;
110110
int opt_timeout = 300; // curl
111-
int opt_scantime = 10;
111+
int opt_scantime = 30;
112112
static json_t *opt_config;
113113
static const bool opt_time = true;
114114
volatile enum sha_algos opt_algo = ALGO_AUTO;
@@ -787,6 +787,7 @@ static bool submit_upstream_work(CURL *curl, struct work *work)
787787
int idnonce = 0;
788788

789789
/* discard if a newer block was received */
790+
/*
790791
stale_work = work->height && work->height < g_work.height;
791792
if (have_stratum && !stale_work && opt_algo != ALGO_ZR5 && opt_algo != ALGO_SCRYPT_JANE) {
792793
pthread_mutex_lock(&g_work_lock);
@@ -824,7 +825,7 @@ static bool submit_upstream_work(CURL *curl, struct work *work)
824825
applog(LOG_WARNING, "stale work detected, discarding");
825826
return true;
826827
}
827-
828+
*/
828829
if (pool->type & POOL_STRATUM) {
829830
uint32_t sent = 0;
830831
uint32_t ntime, nonce;

ccminer.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
<MaxRegCount>80</MaxRegCount>
156156
<PtxAsOptionV>true</PtxAsOptionV>
157157
<Keep>true</Keep>
158-
<CodeGeneration>compute_61,sm_61;compute_60,sm_60;compute_52,sm_52;compute_50,sm_50;compute_35,sm_35</CodeGeneration>
158+
<CodeGeneration>compute_61,sm_61;compute_60,sm_60;compute_52,sm_52;compute_50,sm_50;compute_35,sm_35;compute_30,sm_30</CodeGeneration>
159159
<AdditionalOptions>--ptxas-options="-O2" %(AdditionalOptions)</AdditionalOptions>
160160
<Optimization>O2</Optimization>
161161
<CompileOut>$(IntDir)Cuda\%(Filename)%(Extension).obj</CompileOut>

0 commit comments

Comments
 (0)