Skip to content

Commit

Permalink
argon2-opencl: Move thread_input variable within #if
Browse files Browse the repository at this point in the history
  • Loading branch information
solardiz committed Dec 30, 2023
1 parent 37ea39d commit 3369f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run/opencl/argon2_kernel.cl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3369f01

Please sign in to comment.