From b8190e4aa77c2925b0199f3fbfc22571f279925b Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 17 May 2018 19:26:00 +0200 Subject: [PATCH] allium: add missing device cpu flag for linux --- lyra2/allium.cu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lyra2/allium.cu b/lyra2/allium.cu index 6492c92..65dbbe3 100644 --- a/lyra2/allium.cu +++ b/lyra2/allium.cu @@ -95,7 +95,11 @@ extern "C" int scanhash_allium(int thr_id, struct work* work, uint32_t max_nonce { int dev_id = device_map[thr_id]; cudaSetDevice(dev_id); - CUDA_LOG_ERROR(); + if (opt_cudaschedule == -1 && gpu_threads == 1) { + cudaDeviceReset(); + cudaSetDeviceFlags(cudaDeviceScheduleBlockingSync); + CUDA_LOG_ERROR(); + } int intensity = (device_sm[dev_id] >= 500 && !is_windows()) ? 17 : 16; if (device_sm[device_map[thr_id]] == 500) intensity = 15;