1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-29 19:38:18 +00:00

Add kernel accel minimum limit check

This commit is contained in:
Jens Steube 2019-11-19 20:38:31 +01:00
parent 424777ae28
commit 00b9f4c557

View File

@ -9414,7 +9414,12 @@ int backend_session_begin (hashcat_ctx_t *hashcat_ctx)
kernel_accel_max = MIN (kernel_accel_max, accel_limit);
kernel_accel_min = MIN (kernel_accel_min, kernel_accel_max);
if (kernel_accel_min > kernel_accel_max)
{
event_log_error (hashcat_ctx, "* Device #%u: Too many compute units to keep minimum kernel accel limit. Retry with lower --backend-kernel-threads value.", device_id + 1);
return -1;
}
// find out if we would request too much memory on memory blocks which are based on kernel_accel