|
|
|
@ -411,8 +411,10 @@ extern "C" int scanhash_blake256(int thr_id, struct work* work, uint32_t max_non
@@ -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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|