From c042fa3e31217a96160dd9f35762dbbea57bdc56 Mon Sep 17 00:00:00 2001 From: Solar Designer Date: Sat, 6 Apr 2024 20:10:16 +0200 Subject: [PATCH] argon2-opencl further fix for macOS NVIDIA --- src/opencl_argon2_fmt_plug.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/opencl_argon2_fmt_plug.c b/src/opencl_argon2_fmt_plug.c index 3486f02997f..22e0568daa8 100644 --- a/src/opencl_argon2_fmt_plug.c +++ b/src/opencl_argon2_fmt_plug.c @@ -478,7 +478,11 @@ static void reset(struct db_main *db) // Select mode of operation uint32_t sm_version; get_compute_capability(gpu_id, &sm_version, NULL); +#ifdef __APPLE__ + DEVICE_USE_LOCAL_MEMORY = 1; +#else DEVICE_USE_LOCAL_MEMORY = !(gpu_nvidia(device_info[gpu_id]) && sm_version >= 3); +#endif // Find [max/min]_lanes and max_memory_size max_salt_lanes = 0;