From 518fcb387a84ef012cf1f4dd7389761e32b3e27f Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 3 May 2016 10:23:32 +0200 Subject: [PATCH] Fix -m 10100 multihash and benchmark --- OpenCL/m10100_a0.cl | 16 ++++++++-------- OpenCL/m10100_a1.cl | 16 ++++++++-------- OpenCL/m10100_a3.cl | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/OpenCL/m10100_a0.cl b/OpenCL/m10100_a0.cl index d1bd6e94a..269aff360 100644 --- a/OpenCL/m10100_a0.cl +++ b/OpenCL/m10100_a0.cl @@ -151,10 +151,10 @@ __kernel void m10100_m04 (__global pw_t *pws, __global kernel_rule_t * rules_bu const u32x a = l32_from_64 (v); const u32x b = h32_from_64 (v); - const u32x c = 0; - const u32x d = 0; - COMPARE_M_SIMD (a, b, c, d); + const u32x z = 0; + + COMPARE_M_SIMD (a, b, z, z); } } @@ -218,8 +218,8 @@ __kernel void m10100_s04 (__global pw_t *pws, __global kernel_rule_t * rules_bu { digests_buf[digests_offset].digest_buf[DGST_R0], digests_buf[digests_offset].digest_buf[DGST_R1], - digests_buf[digests_offset].digest_buf[DGST_R2], - digests_buf[digests_offset].digest_buf[DGST_R3] + 0, + 0 }; /** @@ -290,10 +290,10 @@ __kernel void m10100_s04 (__global pw_t *pws, __global kernel_rule_t * rules_bu const u32x a = l32_from_64 (v); const u32x b = h32_from_64 (v); - const u32x c = 0; - const u32x d = 0; - COMPARE_S_SIMD (a, b, c, d); + const u32x z = 0; + + COMPARE_S_SIMD (a, b, z, z); } } diff --git a/OpenCL/m10100_a1.cl b/OpenCL/m10100_a1.cl index 28bffece7..345ad16b2 100644 --- a/OpenCL/m10100_a1.cl +++ b/OpenCL/m10100_a1.cl @@ -209,10 +209,10 @@ __kernel void m10100_m04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, const u32x a = l32_from_64 (v); const u32x b = h32_from_64 (v); - const u32x c = 0; - const u32x d = 0; - COMPARE_M_SIMD (a, b, c, d); + const u32x z = 0; + + COMPARE_M_SIMD (a, b, z, z); } } @@ -276,8 +276,8 @@ __kernel void m10100_s04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, { digests_buf[digests_offset].digest_buf[DGST_R0], digests_buf[digests_offset].digest_buf[DGST_R1], - digests_buf[digests_offset].digest_buf[DGST_R2], - digests_buf[digests_offset].digest_buf[DGST_R3] + 0, + 0 }; /** @@ -408,10 +408,10 @@ __kernel void m10100_s04 (__global pw_t *pws, __global kernel_rule_t *rules_buf, const u32x a = l32_from_64 (v); const u32x b = h32_from_64 (v); - const u32x c = 0; - const u32x d = 0; - COMPARE_S_SIMD (a, b, c, d); + const u32x z = 0; + + COMPARE_S_SIMD (a, b, z, z); } } diff --git a/OpenCL/m10100_a3.cl b/OpenCL/m10100_a3.cl index 98a8e7587..116a7cfab 100644 --- a/OpenCL/m10100_a3.cl +++ b/OpenCL/m10100_a3.cl @@ -119,10 +119,10 @@ void m10100m (u32 w[16], const u32 pw_len, __global pw_t *pws, __global kernel_r const u32x a = l32_from_64 (v); const u32x b = h32_from_64 (v); - const u32x c = 0; - const u32x d = 0; - COMPARE_M_SIMD (a, b, c, d); + const u32x z = 0; + + COMPARE_M_SIMD (a, b, z, z); } } @@ -161,8 +161,8 @@ void m10100s (u32 w[16], const u32 pw_len, __global pw_t *pws, __global kernel_r { digests_buf[digests_offset].digest_buf[DGST_R0], digests_buf[digests_offset].digest_buf[DGST_R1], - digests_buf[digests_offset].digest_buf[DGST_R2], - digests_buf[digests_offset].digest_buf[DGST_R3] + 0, + 0 }; /** @@ -221,10 +221,10 @@ void m10100s (u32 w[16], const u32 pw_len, __global pw_t *pws, __global kernel_r const u32x a = l32_from_64 (v); const u32x b = h32_from_64 (v); - const u32x c = 0; - const u32x d = 0; - COMPARE_S_SIMD (a, b, c, d); + const u32x z = 0; + + COMPARE_S_SIMD (a, b, z, z); } }