From 1bbda76c2a89ba909ea234d2c9a668ef7f71458d Mon Sep 17 00:00:00 2001 From: Tobias Wiersema Date: Sun, 13 Jul 2025 19:57:41 +0200 Subject: [PATCH] Removed REAL_SHM code to fix memory corruption Code originally taken from module 28300 was obviously conflicting with OPTS_TYPE_DYNAMIC_SHARED and thus corrupting the local memory when REAL_SHM was set. --- OpenCL/m30601-pure.cl | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/OpenCL/m30601-pure.cl b/OpenCL/m30601-pure.cl index 64651c897..114e33b88 100644 --- a/OpenCL/m30601-pure.cl +++ b/OpenCL/m30601-pure.cl @@ -498,23 +498,8 @@ KERNEL_FQ void FIXED_THREAD_COUNT(FIXED_LOCAL_SIZE) m30601_init (KERN_ATTR_TMPS_ const u64 lid = get_local_id (0); const u64 lsz = get_local_size (0); - #ifdef REAL_SHM - - LOCAL_VK u32 s_bin2base64[0x40]; - - for (u32 i = lid; i < 0x40; i += lsz) - { - s_bin2base64[i] = bin2base64[i]; - } - - SYNC_THREADS (); - - #else - CONSTANT_AS u32a *s_bin2base64 = bin2base64; - - #endif - + if (gid >= GID_CNT) return; u32 pw[64] = { 0 };