From d764b5cca27e6c3e558b22ba0fa456d830b8486a Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Sat, 13 Jun 2015 01:31:02 +0200 Subject: [PATCH] lyra2: improve a bit the speed on SM 5.2 (simplified sp commit) --- lyra2/cuda_lyra2.cu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lyra2/cuda_lyra2.cu b/lyra2/cuda_lyra2.cu index 9f29c44..8e96f36 100644 --- a/lyra2/cuda_lyra2.cu +++ b/lyra2/cuda_lyra2.cu @@ -89,6 +89,9 @@ static void round_lyra(uint2 *s) __device__ __forceinline__ void reduceDuplexRowSetup(const int rowIn, const int rowInOut, const int rowOut, uint2 state[16], uint2 Matrix[96][8]) { +#if __CUDA_ARCH__ > 500 + #pragma unroll +#endif for (int i = 0; i < 8; i++) { #pragma unroll