From 123fe287b6d92456d435ca169c5097bd10f4c6dd Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 28 May 2015 21:19:24 +0200 Subject: [PATCH] x11: temporary workaround for cuda 7.0 --- quark/cuda_bmw512.cu | 2 +- quark/cuda_skein512.cu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quark/cuda_bmw512.cu b/quark/cuda_bmw512.cu index 51376b6..b6caf30 100644 --- a/quark/cuda_bmw512.cu +++ b/quark/cuda_bmw512.cu @@ -464,7 +464,7 @@ void quark_bmw512_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNounce dim3 block(threadsperblock); int dev_id = device_map[thr_id]; - if (device_sm[dev_id] > 300 && cuda_arch[dev_id] > 300) + if (device_sm[dev_id] > 300 && cuda_arch[dev_id] > 300 && CUDA_VERSION < 7000) quark_bmw512_gpu_hash_64<<>>(threads, startNounce, (uint64_t*)d_hash, d_nonceVector); else quark_bmw512_gpu_hash_64_30<<>>(threads, startNounce, (uint64_t*)d_hash, d_nonceVector); diff --git a/quark/cuda_skein512.cu b/quark/cuda_skein512.cu index 1cb7f4d..a7a5685 100644 --- a/quark/cuda_skein512.cu +++ b/quark/cuda_skein512.cu @@ -880,7 +880,7 @@ void quark_skein512_cpu_hash_64(int thr_id, uint32_t threads, uint32_t startNoun int dev_id = device_map[thr_id]; // uint2 uint64 variants for SM 3.2+ - if (device_sm[dev_id] > 300 && cuda_arch[dev_id] > 300) + if (device_sm[dev_id] > 300 && cuda_arch[dev_id] > 300 && CUDA_VERSION < 7000) quark_skein512_gpu_hash_64 <<>> (threads, startNounce, (uint64_t*)d_hash, d_nonceVector); else quark_skein512_gpu_hash_64_sm3 <<>> (threads, startNounce, (uint64_t*)d_hash, d_nonceVector);