1
mirror of https://github.com/hashcat/hashcat synced 2024-11-20 23:27:31 +01:00

Alias Devices: Show a warning in case the user specifically listed a device to use which in a later step is skipped because it is an alias of another active device

This commit is contained in:
Jens Steube 2021-06-15 14:06:24 +02:00
parent a7a3cf024e
commit 2d7f67fd23
2 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,7 @@
## Improvements
##
- Alias Devices: Show a warning in case the user specifically listed a device to use which in a later step is skipped because it is an alias of another active device
- Backend Information: Added new column showing the PCI Address per CUDA/OpenCL device to easier identify broken cards
* changes v6.2.1 -> v6.2.2

View File

@ -131,6 +131,17 @@ static int backend_ctx_find_alias_devices (hashcat_ctx_t *hashcat_ctx)
backend_ctx->opencl_devices_active--;
backend_ctx->backend_devices_active--;
// show a warning for specifically listed devices if they are an alias
if (backend_ctx->backend_devices_filter != (u64) -1)
{
if (backend_ctx->backend_devices_filter & (1ULL << alias_device->device_id))
{
event_log_warning (hashcat_ctx, "The device #%d specifically listed was skipped because it is an alias of device #%d", alias_device->device_id + 1, backend_device->device_id + 1);
event_log_warning (hashcat_ctx, NULL);
}
}
}
}