mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-16 18:51:00 +00:00
Autotune: 200 loops should be fine for a start
This commit is contained in:
parent
515385c57d
commit
f1e0cd6d56
@ -2833,11 +2833,11 @@ static void autotune (hc_device_param_t *device_param)
|
||||
|
||||
u32 kernel_loops_tmp;
|
||||
|
||||
for (kernel_loops_tmp = kernel_loops_max; kernel_loops_tmp >= kernel_loops_min; kernel_loops_tmp >>= 1)
|
||||
for (kernel_loops_tmp = MIN (kernel_loops_max, 200); kernel_loops_tmp >= kernel_loops_min; kernel_loops_tmp >>= 1)
|
||||
{
|
||||
const double exec_ms = try_run (device_param, kernel_accel_min, kernel_loops_tmp, 1);
|
||||
|
||||
if ((exec_ms * 3) < target_ms) break;
|
||||
if (exec_ms < target_ms) break;
|
||||
|
||||
if (kernel_loops_tmp == kernel_loops_min) break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user