mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 07:08:19 +00:00
Make sure not to abort entire benchmark if a mode was marked as unstable
This commit is contained in:
parent
dc9279c95c
commit
c43ef406a9
@ -1051,6 +1051,7 @@ typedef struct hc_device_param
|
||||
u32 platform_devices_id; // for mapping with hms devices
|
||||
|
||||
bool skipped;
|
||||
bool unstable_warning;
|
||||
|
||||
st_status_t st_status;
|
||||
|
||||
|
14
src/opencl.c
14
src/opencl.c
@ -4504,6 +4504,8 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
device_param->skipped = true;
|
||||
|
||||
device_param->unstable_warning = true;
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@ -6748,7 +6750,7 @@ int opencl_session_begin (hashcat_ctx_t *hashcat_ctx)
|
||||
|
||||
// Prevent exit from benchmark mode if all devices are skipped due to unstable hash-modes (macOS)
|
||||
|
||||
if (hardware_power_all == 0) return -1;
|
||||
// if (hardware_power_all == 0) return -1;
|
||||
|
||||
opencl_ctx->hardware_power_all = hardware_power_all;
|
||||
|
||||
@ -6926,7 +6928,15 @@ void opencl_session_reset (hashcat_ctx_t *hashcat_ctx)
|
||||
{
|
||||
hc_device_param_t *device_param = &opencl_ctx->devices_param[device_id];
|
||||
|
||||
if (device_param->skipped == true) continue;
|
||||
if (device_param->skipped == true)
|
||||
{
|
||||
if (device_param->unstable_warning == true)
|
||||
{
|
||||
device_param->skipped = false;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
device_param->speed_pos = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user