From 48631ed0e66791d297739f3528651dcf26709ad3 Mon Sep 17 00:00:00 2001 From: djm34 Date: Wed, 12 Dec 2018 20:30:45 +0200 Subject: [PATCH] test release --- RUN-ZCOIN-MTP.cmd | 2 +- cuda_mtp/mtp.cu | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RUN-ZCOIN-MTP.cmd b/RUN-ZCOIN-MTP.cmd index b412c38..5dd5ee3 100644 --- a/RUN-ZCOIN-MTP.cmd +++ b/RUN-ZCOIN-MTP.cmd @@ -1,5 +1,5 @@ rem x64\Release\ccminer -a mtp -o http://127.0.0.1:8382 -u djm34 -p password --coinbase-addr aDn7MMYjVQqenT11VFDYHfFdwXmSTRUTak -d 1070 --no-getwork -i 18 - x64\Release\ccminer -a mtp -o stratum+tcp://zcoin.mintpond.com:3000 -u aDn7MMYjVQqenT11VFDYHfFdwXmSTRUTak.worker -p 0 -i 16 -d 0,1 + x64\Release\ccminer -a mtp -o stratum+tcp://zcoin.mintpond.com:3000 -u aDn7MMYjVQqenT11VFDYHfFdwXmSTRUTak.worker -p 0 -i 16 -d 0,1 --quiet pause diff --git a/cuda_mtp/mtp.cu b/cuda_mtp/mtp.cu index dc5d7f5..9a24d6a 100644 --- a/cuda_mtp/mtp.cu +++ b/cuda_mtp/mtp.cu @@ -37,7 +37,7 @@ extern "C" int scanhash_mtp(int nthreads,int thr_id, struct work* work, uint32_t // unsigned char TheMerkleRoot[16]; unsigned char mtpHashValue[32]; - int real_maxnonce = UINT32_MAX / nthreads * (thr_id + 1); + if (JobId==0) pthread_barrier_init(&barrier, NULL, nthreads); @@ -47,7 +47,7 @@ if (JobId==0) uint32_t *pdata = work->data; uint32_t *ptarget = work->target; const uint32_t first_nonce = pdata[19]; - + int real_maxnonce = UINT32_MAX / nthreads * (thr_id + 1); if (opt_benchmark) ptarget[7] = 0x00ff;