mirror of
https://github.com/GOSTSec/ccminer
synced 2025-01-08 22:07:56 +00:00
readme + small warnings detected by vstudio
This commit is contained in:
parent
c8ff854456
commit
b47d9acaf5
@ -33,10 +33,6 @@ extern "C" void bmw_hash(void *state, const void *input)
|
|||||||
|
|
||||||
static bool init[MAX_GPUS] = { 0 };
|
static bool init[MAX_GPUS] = { 0 };
|
||||||
|
|
||||||
static __inline uint32_t swab32_if(uint32_t val, bool iftrue) {
|
|
||||||
return iftrue ? swab32(val) : val;
|
|
||||||
}
|
|
||||||
|
|
||||||
extern "C" int scanhash_bmw(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done)
|
extern "C" int scanhash_bmw(int thr_id, struct work* work, uint32_t max_nonce, unsigned long *hashes_done)
|
||||||
{
|
{
|
||||||
uint32_t _ALIGN(64) endiandata[20];
|
uint32_t _ALIGN(64) endiandata[20];
|
||||||
|
@ -269,6 +269,13 @@ features.
|
|||||||
|
|
||||||
>>> RELEASE HISTORY <<<
|
>>> RELEASE HISTORY <<<
|
||||||
|
|
||||||
|
Jan. 2017 (WIP)
|
||||||
|
Handle cryptonight, wildkeccak and cryptonight-lite
|
||||||
|
Rework the common skein512 (used in most algos except skein ;)
|
||||||
|
Store the share diff of second nonce(s) in most algos
|
||||||
|
Hardware monitoring thread to get more accurate power readings
|
||||||
|
Small changes for the quiet mode
|
||||||
|
|
||||||
Dec. 21th 2016 v1.8.4
|
Dec. 21th 2016 v1.8.4
|
||||||
Improve streebog based algos, veltor and sib (from alexis work)
|
Improve streebog based algos, veltor and sib (from alexis work)
|
||||||
Blake2s greetly improved (3x), thanks to alexis too...
|
Blake2s greetly improved (3x), thanks to alexis too...
|
||||||
|
@ -275,7 +275,7 @@ extern "C" int scanhash_wildkeccak(int thr_id, struct work* work, uint32_t max_n
|
|||||||
init[thr_id] = true;
|
init[thr_id] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
throughput = cuda_default_throughput(thr_id, WK_CUDABlocks*WK_CUDAThreads);
|
throughput = WK_CUDABlocks * WK_CUDAThreads;
|
||||||
|
|
||||||
cudaMemcpy(d_input[thr_id], pdata, 88, cudaMemcpyHostToDevice);
|
cudaMemcpy(d_input[thr_id], pdata, 88, cudaMemcpyHostToDevice);
|
||||||
// cudaMemset(d_retnonce[thr_id], 0xFF, 2*sizeof(uint32_t));
|
// cudaMemset(d_retnonce[thr_id], 0xFF, 2*sizeof(uint32_t));
|
||||||
@ -291,7 +291,7 @@ extern "C" int scanhash_wildkeccak(int thr_id, struct work* work, uint32_t max_n
|
|||||||
uint32_t h_retnonce[2] = { UINT32_MAX, UINT32_MAX };
|
uint32_t h_retnonce[2] = { UINT32_MAX, UINT32_MAX };
|
||||||
uint2 target = make_uint2(ptarget[6], ptarget[7]);
|
uint2 target = make_uint2(ptarget[6], ptarget[7]);
|
||||||
|
|
||||||
wildkeccak_kernel(thr_id, throughput, nonce, target, h_retnonce);
|
wildkeccak_kernel(thr_id, throughput, (uint32_t) nonce, target, h_retnonce);
|
||||||
/*
|
/*
|
||||||
wk <<<block, thread, 0, kernel_stream[thr_id]>>> (d_retnonce[thr_id], d_input[thr_id], d_scratchpad[thr_id],
|
wk <<<block, thread, 0, kernel_stream[thr_id]>>> (d_retnonce[thr_id], d_input[thr_id], d_scratchpad[thr_id],
|
||||||
(uint32_t)(scratchpad_size >> 2), nonce, ptarget[7]);
|
(uint32_t)(scratchpad_size >> 2), nonce, ptarget[7]);
|
||||||
|
Loading…
Reference in New Issue
Block a user