From 903c1136c8106bdd8952e1fe6f68d60b91a211dd Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Fri, 5 May 2023 19:31:24 +0200 Subject: [PATCH] Fixed build failed for 31000/Blake2s with vector width > 1 --- OpenCL/inc_hash_blake2s.cl | 2 +- OpenCL/m31000_a0-optimized.cl | 2 -- docs/changes.txt | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/OpenCL/inc_hash_blake2s.cl b/OpenCL/inc_hash_blake2s.cl index cf67e5f78..5fb60f979 100644 --- a/OpenCL/inc_hash_blake2s.cl +++ b/OpenCL/inc_hash_blake2s.cl @@ -447,7 +447,7 @@ DECLSPEC void blake2s_transform_vector (PRIVATE_AS u32x *h, PRIVATE_AS const u32 v[ 9] = BLAKE2S_IV_01; v[10] = BLAKE2S_IV_02; v[11] = BLAKE2S_IV_03; - v[12] = BLAKE2S_IV_04 ^ t0; + v[12] = make_u32x (BLAKE2S_IV_04) ^ t0; v[13] = BLAKE2S_IV_05; // ^ t1; v[14] = BLAKE2S_IV_06 ^ f0; v[15] = BLAKE2S_IV_07; // ^ f1; diff --git a/OpenCL/m31000_a0-optimized.cl b/OpenCL/m31000_a0-optimized.cl index e3b9926ac..52d4d7852 100644 --- a/OpenCL/m31000_a0-optimized.cl +++ b/OpenCL/m31000_a0-optimized.cl @@ -48,8 +48,6 @@ KERNEL_FQ void m31000_m04 (KERN_ATTR_RULES ()) { u32x w0[4] = { 0 }; u32x w1[4] = { 0 }; - u32x w2[4] = { 0 }; - u32x w3[4] = { 0 }; const u32x out_len = apply_rules_vect_optimized (pw_buf0, pw_buf1, pw_len, rules_buf, il_pos, w0, w1); diff --git a/docs/changes.txt b/docs/changes.txt index 3965c968d..dcbd98533 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -59,6 +59,7 @@ - Fixed build failed for 18400 with Apple Metal - Fixed build failed for 18600 with Apple Metal - Fixed build failed for 31700 with Apple Metal +- Fixed build failed for 31000/Blake2s with vector width > 1 - Fixed display problem of the "Optimizers applied" list for algorithms using OPTI_TYPE_SLOW_HASH_SIMD_INIT2 and/or OPTI_TYPE_SLOW_HASH_SIMD_LOOP2 - Fixed incompatible pointer types (salt1 and salt2 buf) in 31700 a3 kernel - Fixed incompatible pointer types (salt1 and salt2 buf) in 3730 a3 kernel