Workaround added for Intel OpenCL runtime: GPU support is broken, skip the device unless user forces to enable it

pull/970/head
jsteube 7 years ago
parent 33aeae6090
commit 78d73e64fe

@ -31,6 +31,12 @@
- Fixed mask length check in hybrid attack-modes: Do not include hash-mode dependant mask length checks
- Fixed potfile loading to accept blank passwords
##
## Workarounds
##
- Workaround added for Intel OpenCL runtime: GPU support is broken, skip the device unless user forces to enable it
##
## Technical
##

@ -2712,6 +2712,26 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime)
}
}
// Since some times we get reports from users about not working hashcat, dropping error messages like:
// CL_INVALID_COMMAND_QUEUE and CL_OUT_OF_RESOURCES
// Turns out that this is caused by Intel OpenCL runtime handling their GPU devices
// Disable such devices unless the user forces to use it
if (device_type & CL_DEVICE_TYPE_GPU)
{
if ((device_param->device_vendor_id == VENDOR_ID_INTEL_SDK) || (device_param->device_vendor_id == VENDOR_ID_INTEL_BEIGNET))
{
if (user_options->force == false)
{
if (user_options->quiet == false) event_log_warning (hashcat_ctx, "* Device #%u: Intel's OpenCL runtime (GPU only) is currently broken", device_id + 1);
if (user_options->quiet == false) event_log_warning (hashcat_ctx, " We need to wait for an update of their OpenCL drivers");
if (user_options->quiet == false) event_log_warning (hashcat_ctx, " You can use --force to override this but do not post error reports if you do so");
device_param->skipped = true;
}
}
}
// skipped
if ((opencl_ctx->devices_filter & (1u << device_id)) == 0)

Loading…
Cancel
Save