small opencl code change #68

Closed
nerdralph opened this Issue Jul 1, 2016 · 1 comment

Projects

None yet

2 participants

@nerdralph
nerdralph commented Jul 1, 2016 edited

No need to zero index 8 since it gets set after the loop.

diff --git a/libethash-cl/ethash_cl_miner_kernel.cl b/libethash-cl/ethash_cl_min
index 390a021..95d7686 100644
--- a/libethash-cl/ethash_cl_miner_kernel.cl
+++ b/libethash-cl/ethash_cl_miner_kernel.cl
@@ -348,7 +348,7 @@ __kernel void ethash_search(

 static void SHA3_512(uint2* s, uint isolate)
 {
-       for (uint i = 8; i != 25; ++i)
+       for (uint i = 9; i != 25; ++i)
        {
                s[i] = (uint2){ 0, 0 };
        }
@Genoil
Owner
Genoil commented Jul 2, 2016

this will go into 1.1.8 thanks

@Genoil Genoil closed this Jul 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment