From d322ee4fc4a4b5d56bec6fb0f3f8f61b15e860ff Mon Sep 17 00:00:00 2001
From: psychocrypt <psychocryptHPC@gmail.com>
Date: Thu, 7 Feb 2019 21:24:21 +0100
Subject: [PATCH] OpenCL: fix groestl

@xmrig provided the information that the driver 19.2.1 for vega also
create invalid results if pragma unroll is used for the groestl algo.
---
 xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl | 1 -
 1 file changed, 1 deletion(-)

diff --git a/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl b/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl
index 2c775e7..79828d7 100644
--- a/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl
+++ b/xmrstak/backend/amd/amd_gpu/opencl/cryptonight.cl
@@ -1248,7 +1248,6 @@ __kernel void Groestl(__global ulong *states, __global uint *BranchBuf, __global
 
         State[7] = 0x0001000000000000UL;
 
-        #pragma unroll 4
         for(uint i = 0; i < 4; ++i)
         {
             volatile ulong H[8], M[8];
-- 
GitLab