1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-22 05:31:11 +00:00

Always assume 8 compute unit for metal GPUs

This commit is contained in:
Jens Steube 2022-11-09 16:09:57 +01:00
parent ac98130fef
commit 8f0d69ea9c

View File

@ -5858,6 +5858,10 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
continue; continue;
} }
// this is a hack for sure, but what can we do if they report just 1.
// But 8 is a number that is pretty good since most real values are divisible by 8.
if (device_processors == 1) device_processors = 8;
device_param->device_processors = device_processors; device_param->device_processors = device_processors;
// device_host_unified_memory // device_host_unified_memory