Skip to content

Commit

Permalink
argon2-opencl further fix for macOS NVIDIA
Browse files Browse the repository at this point in the history
  • Loading branch information
solardiz committed Apr 6, 2024
1 parent 3b26d3b commit c042fa3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/opencl_argon2_fmt_plug.c
Expand Up @@ -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;
Expand Down

0 comments on commit c042fa3

Please sign in to comment.