From 35ff3047e401a5cb1af4ff0ab5172e38e444a2e3 Mon Sep 17 00:00:00 2001 From: qasikfwn <51647241+qasikfwn@users.noreply.github.com> Date: Fri, 25 Jul 2025 14:11:01 +1000 Subject: [PATCH] Fix SIMD for 34200, 34201 a3 pure kernels --- OpenCL/m34200_a3-pure.cl | 8 ++++---- OpenCL/m34201_a3-pure.cl | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/OpenCL/m34200_a3-pure.cl b/OpenCL/m34200_a3-pure.cl index a8b71adba..5b5491a8e 100755 --- a/OpenCL/m34200_a3-pure.cl +++ b/OpenCL/m34200_a3-pure.cl @@ -3,14 +3,14 @@ * License.....: MIT */ -//#define NEW_SIMD_CODE +#define NEW_SIMD_CODE #ifdef KERNEL_STATIC #include M2S(INCLUDE_PATH/inc_vendor.h) #include M2S(INCLUDE_PATH/inc_types.h) #include M2S(INCLUDE_PATH/inc_platform.cl) #include M2S(INCLUDE_PATH/inc_common.cl) -#include M2S(INCLUDE_PATH/inc_scalar.cl) +#include M2S(INCLUDE_PATH/inc_simd.cl) #endif DECLSPEC u64 MurmurHash64A (const u64 seed, PRIVATE_AS const u32 *data, const u32 len) @@ -118,7 +118,7 @@ KERNEL_FQ KERNEL_FA void m34200_mxx (KERN_ATTR_VECTOR ()) const u32x r1 = h32_from_64 (hash); const u32x z = 0; - COMPARE_M_SCALAR (r0, r1, z, z); + COMPARE_M_SIMD (r0, r1, z, z); } } @@ -187,6 +187,6 @@ KERNEL_FQ KERNEL_FA void m34200_sxx (KERN_ATTR_VECTOR ()) const u32x r1 = h32_from_64 (hash); const u32x z = 0; - COMPARE_S_SCALAR (r0, r1, z, z); + COMPARE_S_SIMD (r0, r1, z, z); } } diff --git a/OpenCL/m34201_a3-pure.cl b/OpenCL/m34201_a3-pure.cl index 35281b8c4..fc6544a49 100755 --- a/OpenCL/m34201_a3-pure.cl +++ b/OpenCL/m34201_a3-pure.cl @@ -3,14 +3,14 @@ * License.....: MIT */ -//#define NEW_SIMD_CODE +#define NEW_SIMD_CODE #ifdef KERNEL_STATIC #include M2S(INCLUDE_PATH/inc_vendor.h) #include M2S(INCLUDE_PATH/inc_types.h) #include M2S(INCLUDE_PATH/inc_platform.cl) #include M2S(INCLUDE_PATH/inc_common.cl) -#include M2S(INCLUDE_PATH/inc_scalar.cl) +#include M2S(INCLUDE_PATH/inc_simd.cl) #endif DECLSPEC u64 MurmurHash64A (PRIVATE_AS const u32 *data, const u32 len) @@ -109,7 +109,7 @@ KERNEL_FQ KERNEL_FA void m34201_mxx (KERN_ATTR_VECTOR ()) const u32x r1 = h32_from_64 (hash); const u32x z = 0; - COMPARE_M_SCALAR (r0, r1, z, z); + COMPARE_M_SIMD (r0, r1, z, z); } } @@ -169,6 +169,6 @@ KERNEL_FQ KERNEL_FA void m34201_sxx (KERN_ATTR_VECTOR ()) const u32x r1 = h32_from_64 (hash); const u32x z = 0; - COMPARE_S_SCALAR (r0, r1, z, z); + COMPARE_S_SIMD (r0, r1, z, z); } }