From f6e0f1494a32a424d681fb5330c28a2d92272a9a Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 29 Nov 2016 13:02:05 +0100 Subject: [PATCH] Add a warning using beignet driver --- src/opencl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/opencl.c b/src/opencl.c index 136097c6e..ccdb0a5e6 100644 --- a/src/opencl.c +++ b/src/opencl.c @@ -2903,6 +2903,16 @@ int opencl_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime) if (user_options->quiet == false) event_log_warning (hashcat_ctx, " For ideal hashcat performance on NVIDIA GPU you need Shader Model 5.0 or higher"); } } + + if ((strstr (device_param->device_opencl_version, "beignet")) || (strstr (device_param->device_version, "beignet"))) + { + event_log_error (hashcat_ctx, "* Device #%u: Intel beignet driver detected!", device_id + 1); + event_log_error (hashcat_ctx, ""); + event_log_error (hashcat_ctx, "The beignet driver has been marked as half-baked and likely to fail kernel compilation"); + event_log_error (hashcat_ctx, "You can use --force to override this but do not post error reports if you do so"); + + return -1; + } } }