Skip to content

Commit

Permalink
small changes for the 2.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Aug 13, 2017
1 parent 9a7d74e commit 2e56177
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion equi/equi-stratum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ bool equi_stratum_show_message(struct stratum_ctx *sctx, json_t *id, json_t *par
const char* data = json_string_value(val);
if (data && strlen(data)) {
char symbol[32] = { 0 };
int ss = sscanf(data, "equihash %s block %u", symbol, &sctx->job.height);
uint32_t height = 0;
int ss = sscanf(data, "equihash %s block %u", symbol, &height);
if (height && ss > 1) sctx->job.height = height;
if (opt_debug && ss > 1) applog(LOG_DEBUG, "%s", data);
}
}
Expand Down
8 changes: 4 additions & 4 deletions res/ccminer.rc
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ IDI_ICON1 ICON "ccminer.ico"
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,0,0,0
PRODUCTVERSION 2,0,0,0
FILEVERSION 2,2,0,0
PRODUCTVERSION 2,2,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x21L
Expand All @@ -76,10 +76,10 @@ BEGIN
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "FileVersion", "2.0"
VALUE "FileVersion", "2.2"
VALUE "LegalCopyright", "Copyright (C) 2017"
VALUE "ProductName", "ccminer"
VALUE "ProductVersion", "2.0"
VALUE "ProductVersion", "2.2"
END
END
BLOCK "VarFileInfo"
Expand Down
5 changes: 3 additions & 2 deletions skunk/skunk.cu
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ extern "C" int scanhash_skunk(int thr_id, struct work* work, uint32_t max_nonce,

skunk_cpu_init(thr_id, throughput);
use_compat_kernels[thr_id] = (cuda_arch[dev_id] < 500 || CUDART_VERSION < 7500 || CUDART_VERSION > 8000);
x13_fugue512_cpu_init(thr_id, throughput);
if (use_compat_kernels[thr_id]) x13_fugue512_cpu_init(thr_id, throughput);

CUDA_CALL_OR_RET_X(cudaMalloc(&d_hash[thr_id], (size_t) 64 * throughput), 0);
CUDA_CALL_OR_RET_X(cudaMalloc(&d_resNonce[thr_id], NBN * sizeof(uint32_t)), -1);
Expand Down Expand Up @@ -200,7 +200,8 @@ extern "C" void free_skunk(int thr_id)

cudaThreadSynchronize();

x13_fugue512_cpu_free(thr_id);
if (use_compat_kernels[thr_id])
x13_fugue512_cpu_free(thr_id);

cudaFree(d_hash[thr_id]);
cudaFree(d_resNonce[thr_id]);
Expand Down

0 comments on commit 2e56177

Please sign in to comment.