1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-22 04:24:29 +00:00

blake2s fix and more missing cuda arch (for the benchmarks)

This commit is contained in:
Tanguy Pruvot 2017-03-08 13:13:43 +01:00
parent 2cdf2ddd43
commit e388c11c02
3 changed files with 4 additions and 1 deletions

View File

@ -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
return rc;
} else if (vhashcpu[6] > ptarget[6]) {
} else if (vhashcpu[7] > ptarget[7]) {
gpu_increment_reject(thr_id);
if (!opt_quiet)
gpulog(LOG_WARNING, thr_id, "result for %08x does not validate on CPU!", resNonces[0]);

View File

@ -242,6 +242,7 @@ void blake256_cpu_setBlock_80(uint32_t *pdata)
__host__
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(sigma, c_sigma, sizeof(c_sigma), 0, cudaMemcpyHostToDevice);
}

View File

@ -1471,6 +1471,8 @@ static __thread uint32_t *Trans3 = NULL; // 2 streams
__host__
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(&hash1, 32 * 128 * sizeof(uint64_t) * min(8192, threads)));
CUDA_SAFE_CALL(cudaMalloc(&Trans1, 32 * sizeof(uint64_t) * threads));