Skip to content

Commit 015d129

Browse files
committed
keccak second nonce, and higher intensity
1 parent cf886b5 commit 015d129

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

Algo256/keccak256.cu

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ extern "C" int scanhash_keccak256(int thr_id, struct work* work, uint32_t max_no
7272

7373
if(!use_compat_kernels[thr_id]) {
7474
uint32_t intensity = 23;
75-
if (strstr(device_name[dev_id], "GTX 1080")) intensity = 25;
75+
if (strstr(device_name[dev_id], "GTX 1070")) intensity = 25;
76+
if (strstr(device_name[dev_id], "GTX 1080")) intensity = 26;
7677
throughput = cuda_default_throughput(thr_id, 1U << intensity);
7778
keccak256_cpu_init(thr_id);
7879
} else {
@@ -120,7 +121,17 @@ extern "C" int scanhash_keccak256(int thr_id, struct work* work, uint32_t max_no
120121
if (vhash[7] <= ptarget[7] && fulltest(vhash, ptarget)) {
121122
work->valid_nonces = 1;
122123
work_set_target_ratio(work, vhash);
123-
pdata[19] = work->nonces[0] + 1;
124+
if (!use_compat_kernels[thr_id] && work->nonces[1] != UINT32_MAX) {
125+
be32enc(&endiandata[19], work->nonces[1]);
126+
keccak256_hash(vhash, endiandata);
127+
if (vhash[7] <= ptarget[7] && fulltest(vhash, ptarget)) {
128+
work->valid_nonces++;
129+
bn_set_target_ratio(work, vhash, 1);
130+
}
131+
pdata[19] = max(work->nonces[0], work->nonces[1]) + 1;
132+
} else {
133+
pdata[19] = work->nonces[0] + 1;
134+
}
124135
return work->valid_nonces;
125136
}
126137
else if (vhash[7] > Htarg) {

ccminer.vcxproj.filters

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@
824824
<Filter>Source Files\CUDA\Algo256</Filter>
825825
</CudaCompile>
826826
<CudaCompile Include="Algo256\keccak256.cu">
827-
<Filter>Source Files\CUDA</Filter>
827+
<Filter>Source Files\CUDA\Algo256</Filter>
828828
</CudaCompile>
829829
<CudaCompile Include="Algo256\cuda_blake256.cu">
830830
<Filter>Source Files\CUDA\Algo256</Filter>

res/ccminer.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ IDI_ICON1 ICON "ccminer.ico"
6060
//
6161

6262
VS_VERSION_INFO VERSIONINFO
63-
FILEVERSION 2,2,2,0
64-
PRODUCTVERSION 2,2,2,0
63+
FILEVERSION 2,2,3,0
64+
PRODUCTVERSION 2,2,3,0
6565
FILEFLAGSMASK 0x3fL
6666
#ifdef _DEBUG
6767
FILEFLAGS 0x21L
@@ -76,10 +76,10 @@ BEGIN
7676
BEGIN
7777
BLOCK "040904e4"
7878
BEGIN
79-
VALUE "FileVersion", "2.2.2"
79+
VALUE "FileVersion", "2.2.3"
8080
VALUE "LegalCopyright", "Copyright (C) 2017"
8181
VALUE "ProductName", "ccminer"
82-
VALUE "ProductVersion", "2.2.2"
82+
VALUE "ProductVersion", "2.2.3"
8383
END
8484
END
8585
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)