From 3369f01f252341a8ba48e0042b3460d42e496b17 Mon Sep 17 00:00:00 2001 From: Solar Designer Date: Sat, 30 Dec 2023 00:47:03 +0100 Subject: [PATCH] argon2-opencl: Move thread_input variable within #if --- run/opencl/argon2_kernel.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/opencl/argon2_kernel.cl b/run/opencl/argon2_kernel.cl index 804ffe49f3..52bbd293a7 100644 --- a/run/opencl/argon2_kernel.cl +++ b/run/opencl/argon2_kernel.cl @@ -415,9 +415,9 @@ __kernel void KERNEL_NAME(ARGON2_TYPE)(__global struct block_g* memory, uint pas /* select job's memory region: */ memory += (size_t)job_id * lanes * lane_blocks; +#if ARGON2_TYPE == ARGON2_I || ARGON2_TYPE == ARGON2_ID uint thread_input = 0; -#if ARGON2_TYPE == ARGON2_I || ARGON2_TYPE == ARGON2_ID switch (thread) { case 0: thread_input = pass;