Skip to content

Commit

Permalink
argon2-opencl: Use compiler barrier with ancient AMD drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
solardiz committed Dec 30, 2023
1 parent 3369f01 commit 62c27ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run/opencl/argon2_kernel.cl
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ ulong u64_shuffle(ulong v, uint thread_src, uint thread, __local ulong *buf)
// TODO: Test on other device types to add support
#if !gpu_nvidia(DEVICE_INFO) && !gpu_amd(DEVICE_INFO)
barrier(CLK_LOCAL_MEM_FENCE);
#elif gpu_amd(DEVICE_INFO) && DEV_VER_MAJOR < 2500
asm("" ::: "memory");
#endif
return buf[thread_src];
#endif
Expand Down

0 comments on commit 62c27ff

Please sign in to comment.