Browse Source

blake: no need to fail on init, no big alloc

2upstream
Tanguy Pruvot 9 years ago
parent
commit
a7d54cd7ef
  1. 6
      Algo256/blake256.cu

6
Algo256/blake256.cu

@ -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;
}

Loading…
Cancel
Save