From c7923fe8ba427bdaeddf5f86991645f6e896dd7c Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Fri, 24 Nov 2023 23:03:00 +0200 Subject: [PATCH] Fix RAM usage for Intel iGPUs --- src/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend.c b/src/backend.c index f2545dfc9..6137d2767 100644 --- a/src/backend.c +++ b/src/backend.c @@ -8029,7 +8029,7 @@ int backend_ctx_devices_init (hashcat_ctx_t *hashcat_ctx, const int comptime) device_param->device_available_mem = device_param->device_global_mem - MAX_ALLOC_CHECKS_SIZE; - if (device_param->opencl_device_type & CL_DEVICE_TYPE_GPU) + if ((device_param->opencl_device_type & CL_DEVICE_TYPE_GPU) && ((device_param->opencl_platform_vendor_id != VENDOR_ID_INTEL_SDK) || (device_param->device_host_unified_memory == 0))) { // OK, so the problem here is the following: // There's just CL_DEVICE_GLOBAL_MEM_SIZE to ask OpenCL about the total memory on the device,