blake: no need to fail on init, no big alloc
This commit is contained in:
parent
c3d10db873
commit
a7d54cd7ef
@ -411,8 +411,10 @@ extern "C" int scanhash_blake256(int thr_id, struct work* work, uint32_t max_non
|
||||
if (!init[thr_id]) {
|
||||
if (active_gpus > 1)
|
||||
cudaSetDevice(device_map[thr_id]);
|
||||
CUDA_CALL_OR_RET_X(cudaMallocHost(&h_resNonce[thr_id], NBN * sizeof(uint32_t)), 0);
|
||||
CUDA_CALL_OR_RET_X(cudaMalloc(&d_resNonce[thr_id], NBN * sizeof(uint32_t)), 0);
|
||||
CUDA_LOG_ERROR();
|
||||
cudaMallocHost(&h_resNonce[thr_id], NBN * sizeof(uint32_t));
|
||||
cudaMalloc(&d_resNonce[thr_id], NBN * sizeof(uint32_t));
|
||||
CUDA_LOG_ERROR();
|
||||
init[thr_id] = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user