From a7d54cd7efd07c4c8a8c7f5a75b56bd051ab8e76 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 15 Oct 2015 20:10:58 +0200 Subject: [PATCH] blake: no need to fail on init, no big alloc --- Algo256/blake256.cu | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Algo256/blake256.cu b/Algo256/blake256.cu index ad2a493..191db70 100644 --- a/Algo256/blake256.cu +++ b/Algo256/blake256.cu @@ -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; }