mirror of
https://github.com/GOSTSec/ccminer
synced 2025-02-02 01:44:32 +00:00
blake2s fix and more missing cuda arch (for the benchmarks)
This commit is contained in:
parent
2cdf2ddd43
commit
e388c11c02
@ -531,7 +531,7 @@ extern "C" int scanhash_blake2s(int thr_id, struct work *work, uint32_t max_nonc
|
|||||||
}
|
}
|
||||||
pdata[19] = max(work->nonces[0], work->nonces[1]); // next scan start
|
pdata[19] = max(work->nonces[0], work->nonces[1]); // next scan start
|
||||||
return rc;
|
return rc;
|
||||||
} else if (vhashcpu[6] > ptarget[6]) {
|
} else if (vhashcpu[7] > ptarget[7]) {
|
||||||
gpu_increment_reject(thr_id);
|
gpu_increment_reject(thr_id);
|
||||||
if (!opt_quiet)
|
if (!opt_quiet)
|
||||||
gpulog(LOG_WARNING, thr_id, "result for %08x does not validate on CPU!", resNonces[0]);
|
gpulog(LOG_WARNING, thr_id, "result for %08x does not validate on CPU!", resNonces[0]);
|
||||||
|
@ -242,6 +242,7 @@ void blake256_cpu_setBlock_80(uint32_t *pdata)
|
|||||||
__host__
|
__host__
|
||||||
void blake256_cpu_init(int thr_id, uint32_t threads)
|
void blake256_cpu_init(int thr_id, uint32_t threads)
|
||||||
{
|
{
|
||||||
|
cuda_get_arch(thr_id);
|
||||||
cudaMemcpyToSymbol(u256, c_u256, sizeof(c_u256), 0, cudaMemcpyHostToDevice);
|
cudaMemcpyToSymbol(u256, c_u256, sizeof(c_u256), 0, cudaMemcpyHostToDevice);
|
||||||
cudaMemcpyToSymbol(sigma, c_sigma, sizeof(c_sigma), 0, cudaMemcpyHostToDevice);
|
cudaMemcpyToSymbol(sigma, c_sigma, sizeof(c_sigma), 0, cudaMemcpyHostToDevice);
|
||||||
}
|
}
|
||||||
|
@ -1471,6 +1471,8 @@ static __thread uint32_t *Trans3 = NULL; // 2 streams
|
|||||||
__host__
|
__host__
|
||||||
void neoscrypt_init(int thr_id, uint32_t threads)
|
void neoscrypt_init(int thr_id, uint32_t threads)
|
||||||
{
|
{
|
||||||
|
cuda_get_arch(thr_id);
|
||||||
|
|
||||||
CUDA_SAFE_CALL(cudaMalloc(&d_NNonce[thr_id], 2 * sizeof(uint32_t)));
|
CUDA_SAFE_CALL(cudaMalloc(&d_NNonce[thr_id], 2 * sizeof(uint32_t)));
|
||||||
CUDA_SAFE_CALL(cudaMalloc(&hash1, 32 * 128 * sizeof(uint64_t) * min(8192, threads)));
|
CUDA_SAFE_CALL(cudaMalloc(&hash1, 32 * 128 * sizeof(uint64_t) * min(8192, threads)));
|
||||||
CUDA_SAFE_CALL(cudaMalloc(&Trans1, 32 * sizeof(uint64_t) * threads));
|
CUDA_SAFE_CALL(cudaMalloc(&Trans1, 32 * sizeof(uint64_t) * threads));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user